nixos/sd-image-armv7l-multiplatform: Port RPi config.txt changes from aarch64 image
As was done in commit cd2e740dde9541ad5f1d9efd93bcb5a967379ece.
This commit is contained in:
parent
237ae9a0d1
commit
a008a9cb3b
@ -43,11 +43,18 @@ in
|
|||||||
sdImage = {
|
sdImage = {
|
||||||
populateBootCommands = let
|
populateBootCommands = let
|
||||||
configTxt = pkgs.writeText "config.txt" ''
|
configTxt = pkgs.writeText "config.txt" ''
|
||||||
|
# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
|
||||||
|
# when attempting to show low-voltage or overtemperature warnings.
|
||||||
|
avoid_warnings=1
|
||||||
|
|
||||||
[pi2]
|
[pi2]
|
||||||
kernel=u-boot-rpi2.bin
|
kernel=u-boot-rpi2.bin
|
||||||
|
|
||||||
[pi3]
|
[pi3]
|
||||||
kernel=u-boot-rpi3.bin
|
kernel=u-boot-rpi3.bin
|
||||||
|
|
||||||
|
# U-Boot used to need this to work, regardless of whether UART is actually used or not.
|
||||||
|
# TODO: check when/if this can be removed.
|
||||||
enable_uart=1
|
enable_uart=1
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user