raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

bootloader: Use rpi-eeprom submodule for bootloader binaries #211

Closed timg236 closed 2 months ago

timg236 commented 3 months ago

Remove duplication bootloader flash binaries by linking to the rpi-eeprom submodule directly.

Use the firmware/ directory as a layer of indirection to hopefully make it easier for people to select a different firmware release to the one selected by the submodule version.

N.B. This will require some updates to the debian package build rules but let's finish the refactoring first.

timg236 commented 3 months ago

@XECDesign @peterharperuk

Updated the APT following the submodule changes. I've also added support for an INSTALL_PREFIX and on BCM2712 look for the mass-storage-gadget64 under INSTALL_PREFIX if the directory flag is not specified. This is useful because it's not practical to embed the large boot.img file within the executable and the default behaviour on Pi5 would otherwise be to fail complaining about bootcode5.bin being missing.