···42 populateBootCommands = let
43 configTxt = pkgs.writeText "config.txt" ''
44 kernel=u-boot-rpi3.bin
45+46+ # Boot in 64-bit mode.
47 arm_control=0x200
48+49+ # U-Boot used to need this to work, regardless of whether UART is actually used or not.
50+ # TODO: check when/if this can be removed.
51 enable_uart=1
52+53+ # Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
54+ # when attempting to show low-voltage or overtemperature warnings.
55+ avoid_warnings=1
56 '';
57 in ''
58 (cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)