rpiboot for Compute Module 5: What's New

rpiboot for Compute Module 5: What’s New

Compute Module 5 keeps the rpiboot workflow you already know, but it updates the boot enable signal, adds its own recovery directory, and brings a clear visual signal for a successful firmware update. If you are moving from CM4 to CM5, the overall loop will feel familiar, and the differences are easy to learn. This guide covers what changed for CM5: the nRPIBOOT signal on GPIO 20, the button option on carrier boards, the recovery5 and secure boot recovery5 directories, the green screen that confirms a firmware update, and mass storage access that can reach attached NVMe as well as eMMC.

The CM5 boot enable signal

On CM5, the nRPIBOOT signal is GPIO 20, not GPIO 40 as on CM4. That single number change is the detail most likely to catch a CM4 user out, so note it clearly in your own runbook. Fit the nRPIBOOT jumper for GPIO 20 on your carrier board before you connect USB or apply power, following the same jumper first, cable second, power third order used for earlier modules. The jumper tells the CM5 boot ROM to listen over USB, and rpiboot on the host can then discover the module and load its boot files.

Many CM5 carrier boards also give you a simpler option: hold the nRPIBOOT button while connecting the USB-C cable. That button does the same job as the jumper, but only while you hold it during connection, which suits quick one off flashes where fitting a jumper feels like extra work. Press and hold the button, connect USB-C, and keep holding until the host has picked up the device, then release. If rpiboot does not see the module, check that you held the button through the connection moment, since releasing too early is the button equivalent of a missing jumper.

CM5 firmware update with recovery5

CM5 firmware updates go through a dedicated recovery directory: rpiboot -d recovery5. That directory holds the CM5 specific recovery files, separate from the CM4 recovery directory, so using the right name matters. Run the command with the module in USB boot mode, let it load the recovery files, and watch for the result on a connected display. When a CM5 firmware update via recovery5 succeeds, you will see a green screen on HDMI. That green screen is your confirmation, and it is a welcome change from guessing based on terminal output alone.

Do not interrupt a recovery5 run. Let it reach the green screen, and only then move on to the next step. Powering off mid update can leave firmware in an incomplete state, and you would need to repeat the recovery to fix it. Once you see green, the firmware update is done, and you can proceed to normal use or to mass storage access. If you do not see the green screen, recheck the boot enable step, confirm you used recovery5 rather than the CM4 recovery directory, and run it again. The green screen check makes the retry decision simple.

Mass storage on CM5, including NVMe

After a firmware update, or for a straight flashing job, use rpiboot -d mass-storage-gadget64 to get storage access on CM5. That directory serves both CM4 and CM5 mass storage, and on CM5 it gives you access to the module’s storage, including attached NVMe where present. That NVMe access is a genuine step forward for CM5 users, since NVMe has become a popular storage choice on CM5 carrier boards, and reaching it through the same rpiboot mass storage path keeps your flashing workflow in one place.

The imaging routine after that stays familiar. Verify the drive that appears on your host, confirm its size matches the storage you expect, and write your OS image with dd or Raspberry Pi Imager. The safety rule about verifying the dd target applies with full force here, because a CM5 setup may show more than one storage device, and picking the wrong one has the same destructive result as on any other module. Check sizes, check device names, and only then write. When the write finishes, remove the boot enable jumper or release the button setup, and power cycle so the CM5 boots from its own storage.

Secure boot recovery on CM5

CM5 has its own secure boot recovery directory as well: rpiboot -d secure-boot-recovery5. Like its CM4 counterpart, it serves modules set up with secure boot, and it depends on signed files and a matching bootsig.bin. If that signature file is missing or mismatched, signing fails and recovery will not proceed. Keep the CM4 and CM5 directory names distinct in your notes, since typing the CM4 name for a CM5 module, or the reverse, loads the wrong recovery files and wastes a session. The “5” suffix is small on screen but decisive in practice.

As with CM4, most CM5 users will not need secure boot recovery in daily work. It exists for secured modules, and it should be used with the signed files that belong to that module’s secure boot setup. Record which of your modules use secure boot, keep their signed files together, and use the plain mass storage and recovery5 paths for everything else. That separation keeps your CM5 fleet manageable, and it stops a specialist recovery mode from creeping into routine flashing jobs where it does not belong.

What stays the same from CM4

Plenty of the CM5 experience is unchanged, which is good news if you already flash CM4 modules. The host side tool is the same rpiboot from the same usbboot repository. The default mass storage idea is the same. The Windows shortcut for CM4 and CM5 is shared, named rpiboot-CM4-CM5 – Mass Storage Gadget, and plain rpiboot on Windows defaults to mass-storage-gadget64. The Linux build steps are identical, and the need for sudo, a data carrying cable, and device verification before dd is exactly the same.

Think of CM5 as a familiar workflow with three updated facts: GPIO 20 for nRPIBOOT, recovery5 and secure-boot-recovery5 as the CM5 directory names, and a green HDMI screen that confirms firmware update success. Add the button option on carrier boards and NVMe reach through mass storage, and you have the full list of what is new. Everything else transfers directly from your CM4 habits, so the learning curve for CM5 is short, and your existing flashing notes need only a few edits to cover both modules.

Labeling your CM5 boards pays off just as quickly. Note the module type, the storage fitted, and the last OS or firmware state on a small sticker, and you will never have to guess what a board holds when you pick it up again. That habit matters even more on CM5, where NVMe and eMMC options can vary between carrier boards, and a quick label check can stop you writing an image to the wrong storage type or repeating a firmware update you already completed.

Conclusion

rpiboot for Compute Module 5 builds on the CM4 workflow with clear updates. Use GPIO 20 for nRPIBOOT, or hold the carrier board button while connecting USB-C, then run rpiboot to reach the module. Use rpiboot -d recovery5 for firmware updates and watch for the green screen on HDMI as your success signal, use rpiboot -d secure-boot-recovery5 only for secured modules with matching signed files, and use mass-storage-gadget64 for storage access, including attached NVMe. Finish by clearing the boot enable state and power cycling so the CM5 boots from its own storage. With those CM5 details in hand, you can flash, update, and recover CM5 modules with the same confidence you bring to CM4.

Read next:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top