1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00
Commit Graph

1394 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
a7441ec1cc motorola-surfna: Edit kernel configuration as needed 2020-12-28 06:04:18 -05:00
Samuel Dionne-Riel
b4150e7579 motorola-surfna: Normalized OEM kernel configuration
(But the 64 bit variant)
2020-12-28 06:04:18 -05:00
Samuel Dionne-Riel
4eacd4bbc8 motorola-surfna: Basic defconfig
To be normalized. Built this way:

```
cat \
    arch/arm64/configs/msm8937-perf_defconfig \
    arch/arm64/configs/ext_config/moto-msm8937.config \
    arch/arm64/configs/ext_config/moto-msm8937_64.config \
    arch/arm64/configs/ext_config/moto-msm8937-surfna.config \
    > surfna.64.defconfig
```
2020-12-28 06:04:18 -05:00
Samuel Dionne-Riel
0d5c580df8 motorola-surfna: Init kernel at 4.9.112 2020-12-28 06:04:18 -05:00
Samuel Dionne-Riel
fe5a135992 motorola-surfna: Clean-up device description 2020-12-28 06:04:18 -05:00
Samuel Dionne-Riel
f67bbf99d9 motorola-surfna: Import config from autoport
NOTE: this has been detected as armv7l as the kernel and system on the
device is built for 32 bit ARM. The SoC actually supports 64 bit.
2020-12-28 05:59:46 -05:00
Samuel Dionne-Riel
f2bebaa5a3 hardware-qualcomm: Add msm8940 2020-12-28 05:59:46 -05:00
Samuel Dionne-Riel
12be2e5f1c stage-0: Disable by default 2020-12-27 17:50:30 -05:00
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