-
-
Save cleverca22/ad65d9f54e5ef507bd1c5e52d139b247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[all] | |
BOOT_UART=1 | |
WAKE_ON_GPIO=1 | |
POWER_OFF_ON_HALT=0 | |
DHCP_TIMEOUT=45000 | |
DHCP_REQ_TIMEOUT=4000 | |
TFTP_FILE_TIMEOUT=30000 | |
TFTP_IP= | |
TFTP_PREFIX=0 | |
SD_BOOT_MAX_RETRIES=3 | |
NET_BOOT_MAX_RETRIES=5 | |
BOOT_ORDER=0x41 | |
[none] | |
FREEZE_VERSION=1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
nixpkgs = builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/038afc6.tar.gz"; | |
pkgs = import nixpkgs {}; | |
in { | |
changeConfig = { bootconf, eeprom, ts }: | |
pkgs.runCommand "eeprom.img" { | |
buildInputs = [ pkgs.raspberrypi-eeprom ]; | |
} '' | |
cp ${eeprom} pieeprom.bin | |
mkdir $out | |
# Apply config | |
rpi-eeprom-config --config ${bootconf} --out $out/pieeprom.bin pieeprom.bin | |
sha256sum $out/pieeprom.bin | cut -d' ' -f1 > $out/pieeprom.sig | |
echo 'ts: ${ts}' >> $out/pieeprom.sig | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md