Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created December 12, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/fa08a2c303a54c1d70871229ca246bd0 to your computer and use it in GitHub Desktop.
Save cleverca22/fa08a2c303a54c1d70871229ca246bd0 to your computer and use it in GitHub Desktop.
[clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ git rev-parse HEAD
7d9512c741162b19fecfcfa15b46dd4e73a3cd19
[clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ sha256sum pieeprom-2019-12-03.bin
4dc5e8307ffb72614f6a6ae45720ab663a841f3027317ceaa8526a5e077c99b3 pieeprom-2019-12-03.bin
[nix-shell:~/apps/rpi/rpi-eeprom/firmware/beta]$ ../../rpi-eeprom-config pieeprom-2019-12-03.bin
[all]
BOOT_UART=0
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
BOOT_ORDER=0x1
SD_BOOT_MAX_RETRIES=3
NET_BOOT_MAX_RETRIES=5
[none]
FREEZE_VERSION=0
# confirming the original contents
[nix-shell:~/apps/rpi/rpi-eeprom/firmware/beta]$ ../../rpi-eeprom-config pieeprom-2019-12-03.bin > bootconf.txt
[nix-shell:~/apps/rpi/rpi-eeprom/firmware/beta]$ ../../rpi-eeprom-config --out pieeprom-2019-12-03-patched.bin --config bootconf.txt pieeprom-2019-12-03.bin
[clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ sha256sum pieeprom-2019-12-03-patched.bin
9799bbe57a1435e9545dd414593303ec30937ed0320700f80adfc6e68dab8b9f pieeprom-2019-12-03-patched.bin
[clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ diffoscope pieeprom-2019-12-03.bin pieeprom-2019-12-03-patched.bin
# i can confirm that the only difference is the size of bootconf.txt, and the changes i intended to make (BOOT_UART=1 + BOOT_ORDER=0x21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment