3 ms·
On older Pi's, the Raspberry Pi had it's boot code completely burned into the SoC itself, permanently installed and unable to be tweaked post-launch. With the
by gjsman-1000 7y ago
On older Pi's, the Raspberry Pi had it's boot code completely burned into the SoC itself, permanently installed and unable to be tweaked post-launch.
With the Pi 4, this was no longer possible. The Pi 4 uses a much more complicated way of booting up as well as some RAM tricks inside the SoC to allow for more than 1GB of RAM to mostly work without redoing all of the SoC (e.g. the VPU and Hardware Codec Blocks still only sees 1GB of RAM, but they will never need more than 1GB of RAM, as far as I know). This Pi no longer uses the `bootcode.bin` file older Pis used for this reason.
Because of this, the Boot ROM is now a 500K EEPROM, which can be updated to allow things like USB boot, PXE boot, and similar to be added after launch. The USB Controller also has it's own EEPROM, which handles different things (I think).
- cesarb 7y ago> Because of this, the Boot ROM is now a 500K EEPROM [...] The USB Controller also has it's own EEPROM Can these two EEPROMs at least be flashed through test points, so they can be recovered without de-soldering if they're corrupted? (The RPi4 schematics on the site are next to useless.) That would also allow dumping both EEPROMs to compare them with a "known good" copy, in case there's any suspicion they've been maliciously modified.
- gjsman-1000 7y agohttps://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md https://www.raspberrypi.org/documentation/hardware/raspberry... This is all documentation on the SoC EEPROM available. (I don't believe there is any USB EEPROM information publicly available at the moment.) The good news: You don't need de-soldering to fix them. If you should corrupt the EEPROM, you can plug in an SD card with a special 'recovery.bin' file on it and it will re-flash the EEPROM itself. (This does mean that the Pi _technically_ has an extremely tiny boot ROM permanently installed in it still, but all it does is repair the boot EEPROM if it is damaged and start that boot EEPROM if it isn't damaged). You can also write-protect the EEPROMs with a special soldiered-on resistor on the board. As for dumping, no public info yet.