Samuel Dionne-Riel
479f431883
doc: List stage-0 support on the device page
...
The support is according to the default device configuration. For now
this means the kernel version, but a device can also configure it as
needed.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
02068b29a9
devices-metadata: Export stage-0 support
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
e533ce8864
modules: Make kernel package nullable
...
This is to use the value in the documentation.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
2c007dfb23
system-types/u-boot: Use stage-0
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
6a785b19e5
system-types/depthcharge: Use stage-0
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
9fc322894f
system-types/android: Use stage-0
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
0ece77292b
stage-0: defaults according to platform and kernel version
...
AArch64 Linux (arm64) didnd't support kexec up until 4.8
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
f1dd2a69c0
stage-0: init module for stage-0 bootloader build
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
e9dba7afb9
boot/init: Fix logic in symlink resolution
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
ebd095e019
boot/init: AutoResize only if needed
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
22ba517ac8
boot/init: Control the splash fades for kexec
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
fa4804e67d
boot/init: Add kernel cmdline helper
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
cb0d21d2fc
boot/init: booting from kexec communicated using cmdline
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
200e5aac1b
boot/init: Kexecing keeps the splash as-is
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
b82492a565
boot/init: Use kexec only in stage-0.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
eed796865e
boot/init: Use configurable stage value
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
6ad92214da
boot/init: switch_root can and will kexec
...
This is partly complete; we need to handle the situation where **only**
stage-0 should kexec into the next system.
This is yet to be implemented, but will be done through a configuration
that transforms the current bootloader-launched stage-1 into a stage-0,
while keeping the on-disk stage-1 stage-1.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
812b02dd32
boot/init: Fix partial teardown for splash
...
`#quit` would leave the `@pid` variable around, which in turn meant that
calling `#kill` after would fail since the process was already gone.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
ad4efeff2f
boot/splash: Allow skipping fade-out (sticky)
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
bece0564d8
boot/splash: Allow skipping fade-in
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
c72fd544e8
initrd-kernel: Disable some NixOS verifications
...
Not great to outright disable, but we're not always using compatible
kernels :/.
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
648eb09448
initrd-kernel: Allow disabling kernel for shared rootfs
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
f33b918c69
initrd: Make stage configurable
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
ab8b8af907
initrd: Add kexec tools
2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
393df47277
initrd: Allow disabling for shared rootfs
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
0999683e23
modules: Add shared-rootfs
...
Used to undo some of the close-knit integration work NixOS does, so we
can cheat an make a more generic rootfs.
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
d53c6e9868
nixos-disintegration: Neuter opinionated boot.kernelPackages
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
c45582e224
initrd: Fix where logging happens for a message
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
6227192812
release.nix: pre-built demo rootfs is generic
...
Which means there is no device-specific kernel/initrd on them.
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
350e5a7fff
examples/demo: Add file
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
cfb12d53c9
examples/hello: ignore power key, used for navigation
2020-12-27 17:38:29 -05:00
Samuel Dionne-Riel
91380a8b3d
Merge pull request #260 from samueldr-wip/devices/xiaomi-begonia/misc
...
xiaomi-begonia: kernel update + fixes
2020-12-27 17:32:51 -05:00
Samuel Dionne-Riel
54220bc004
xiaomi-begonia: work around poweroff issue
2020-12-27 17:31:08 -05:00
Samuel Dionne-Riel
a41d236dc1
xiaomi-begonia: kernel 4.14.184 -> 4.14.194
2020-12-27 17:31:08 -05:00
Samuel Dionne-Riel
073604a3b9
xiaomi-begonia: Stop using vendor ufdt_apply_overlay
...
This should fix native AArch64 builds.
2020-12-27 17:31:08 -05:00
Samuel Dionne-Riel
19d357d48f
ufdt-apply-overlay: Init at 2020-12-13
2020-12-27 17:31:08 -05:00
Samuel Dionne-Riel
17474b48f7
Merge pull request #261 from samueldr-wip/devices/razer-cheryl2/workaround-qol
...
razer-cheryl2: Workaround made more descriptive
2020-12-27 17:24:49 -05:00
Samuel Dionne-Riel
88b5267dd7
razer-cheryl2: Workaround made more descriptive
2020-12-27 16:39:52 -05:00
Samuel Dionne-Riel
93958aed79
Merge pull request #259 from samueldr-wip/fix/pinephone-native-kernel
...
kernel-builder: Strip another troublesome config
2020-12-25 23:38:49 -05:00
Samuel Dionne-Riel
9102540f5e
kernel-builder: Strip another troublesome config
...
This config currently breaks the build for native aarch64 pinephone
kernel builds, as it does not appear with cross-compilation.
2020-12-25 22:59:45 -05:00
Samuel Dionne-Riel
a4a36a42cb
Merge pull request #258 from samueldr-wip/feature/pinephone-5.10
...
pine64-pinephone: kernel 5.9 -> 5.10
2020-12-25 19:37:55 -05:00
Samuel Dionne-Riel
b687361aaf
pine64-pinephone: Normalized kernel config on top of 5.10
2020-12-25 16:49:27 -05:00
Samuel Dionne-Riel
90fb0d1df9
pine64-pinephone: Update patch for 5.10
2020-12-25 16:49:27 -05:00
Samuel Dionne-Riel
8650b4c3a6
pine64-pinephone: kernel 5.9 -> 5.10
2020-12-25 15:45:44 -05:00
Samuel Dionne-Riel
1bad3524bb
Merge pull request #188 from noneucat/pinephone-crust
...
pine64-pinephone-braveheart: implementation of Crust
2020-12-25 14:40:42 -05:00
Samuel Dionne-Riel
194384cc6a
Merge pull request #257 from noneucat/patch-1
...
Fix attribute 'selectBySystem' missing
2020-12-25 14:02:15 -05:00
Andy Chun @noneucat
0b518aeca5
pine64-pinephone: add Crust
2020-12-25 06:06:12 -08:00
Andy Chun
692544a5ef
Fix attribute 'selectBySystem' missing with lib.systems.elaborate
...
Closes #252 .
This uses the `lib.systems.elaborate` function which builds the
complete attrset as preferred by Nixpkgs by using
`lib.systems.elaborate`, rather than building a partial equivalent.
@noneucat originally implemented it the simplest way possible, re-using
parts of the now unneeded custom functions. We can, instead, simply
pass a system name to `elaborate`, which ends up doing the right thing.
Co-authored-by: Andy Chun <andy@lolc.at>
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2020-12-24 18:25:13 -05:00
Samuel Dionne-Riel
21f662ac08
Merge pull request #249 from samueldr-wip/fix/luks-error-reporting
...
boot: LUKS errors are "controlled"
2020-11-30 20:54:59 -05:00
Samuel Dionne-Riel
2ab969db37
boot: LUKS errors are "controlled"
...
This means that we shouldn't raise an exception, but rather fail
outright. The background being black means that things *failed
successfully*, as expected.
2020-11-30 20:45:03 -05:00