Commit dffe1b0f1f43a113d454ccc74e89fee0ba73d0b3

Authored by Tim Gover
1 parent 58582060

eeprom-erase: Add option to erase the SPI EEPROM

For test/debug purposes it's sometimes useful to erase the SPI
EEPROM using a chip-erase command. This has been available via
recovery.bin for a while but add it here for convenience.
eeprom-erase/README.md 0 โ†’ 100644
  1 +The `erase_eeprom` `config.txt` option causes `recovery.bin` to execute a chip-erase operation on the bootloader SPI EEPROM.
  2 +This is a test/debug option and there is no need to manually erase an EEPROM before flashing it.
  3 +
  4 +If the SPI EEPROM is erased then the Raspberry Pi will not boot until a new EEPROM image has been written via `RPIBOOT`
  5 +or the Raspberry Pi Imager (Pi4 and Pi400 only).
  6 +
  7 +```bash
  8 +cd erase-eeprom
  9 +../rpiboot -d .
  10 +```
... ...
eeprom-erase/bootcode4.bin 0 โ†’ 100644
No preview for this file type
eeprom-erase/config.txt 0 โ†’ 100644
  1 +erase_eeprom=1
  2 +uart_2ndstage=1
... ...