nixos/sd-image-aarch64.nix: Set avoid_warnings in RPi config.txt

Also add some comments on the existing config settings as well.
This commit is contained in:
Tuomas Tynkkynen 2018-01-24 16:43:16 +02:00
parent f7dd6951aa
commit cd2e740dde

View File

@ -42,8 +42,17 @@ in
populateBootCommands = let
configTxt = pkgs.writeText "config.txt" ''
kernel=u-boot-rpi3.bin
# Boot in 64-bit mode.
arm_control=0x200
# 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
# 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
'';
in ''
(cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)