raspberrypi / usbboot

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

mass-storage-gadget64-cm3: Create a 64-bit mass-storage gadget for CM3 #221

Closed timg236 closed 3 months ago

timg236 commented 4 months ago

For now put this in a separate directory but later it should be possible to combined this with the 2711/2712 mass-storage gadget

timg236 commented 4 months ago

@JamesH65 @nbuchwitz @tdewey-rpi

FYI there's now a 64-bit mass-storage gadget that works with CM3 / PiZero2. If it works then I think this can be folded into the generic mass-storage-gadget64 and eventually deprecate this 32-bit one.

sudo apt install git libusb-1.0-0-dev pkg-config build-essential
git clone --recurse-submodules --shallow-submodules --depth=1 https://github.com/raspberrypi/usbboot --branch=mass-storage-gadget64-cm3 usbboot-cm3
cd usbboot-cm3
make
cd mass-storage-gadget64-cm3
sudo ../rpiboot -d . -v
timg236 commented 4 months ago

See: https://github.com/raspberrypi/buildroot/commit/55a875d339c5193427875a29fe259768ae477717

nbuchwitz commented 4 months ago

I'm using the unpacked msg (from forked rpiboot boot.img) in production for a while now. Works without any issues, so really good to see this might become available in the stock rpiboot. 👍