Flashing a Compute Module sounds technical, but the actual workflow is a short loop you can repeat with confidence once you have done it a single time. You put the module into USB boot mode, run rpiboot on your host computer, and the module’s eMMC appears as an ordinary USB drive. Then you write your OS image to that drive, switch the module back to normal boot mode, and power cycle it. This guide walks you through that loop for the classic Compute Modules on an IO board, with the safety checks that keep your other disks safe. Follow the order, verify the device name before you write, and the whole job takes only a few minutes of active work.
Set the module into USB boot mode
For CM1, CM2, and CM3 on the Compute Module IO board, USB boot mode starts with a jumper. Set the J4 jumper, labeled USB SLAVE BOOT ENABLE, to EN. That setting tells the module’s boot ROM to listen over USB instead of trying to boot from eMMC. Next, connect the host computer to the USB slave port, labeled J15, using a USB cable that carries data. Then power the board. The order is worth getting right: jumper first, cable second, power third. If you power the board before the jumper is set, the module will try its normal boot path and rpiboot will never see it.
Double check the jumper position before you move on. Jumpers are small and easy to nudge, and a jumper sitting halfway or on the wrong pins looks correct at a glance. Push it firmly onto the EN pins and give the board a quick visual check. You should also confirm you are using the slave port, not a different USB connector on the board. The IO board has more than one USB related connector, and only the slave port carries the USB device link rpiboot needs. Getting these two physical details right removes the most common reason a module never appears.
Run rpiboot and find the eMMC
With the board powered in USB boot mode, run rpiboot on your host. On Linux, that is sudo ./rpiboot from the usbboot directory, and the sudo is required for USB access. rpiboot will discover the module, load the bootloader files and start.elf, and put the device into mass storage gadget mode. On your host, the eMMC will then appear as a USB drive. It commonly shows up as /dev/sda on Linux, but treat that as a hint, not a promise. The actual name depends on what else is attached to your machine.
Verify the device before you write anything. List your disks before you connect the module and again after rpiboot runs, then compare the two lists to spot the new entry. Check that its size matches the eMMC capacity you expect, since a size mismatch is a clear sign you are looking at the wrong disk. Tools like lsblk give you a readable list, and dmesg can confirm the kernel saw a new USB storage device. Spend a minute on this check. It is the single habit that separates a smooth flash from a painful mistake, and you will use it every time you flash a module.
Write the image with dd
Once you have confirmed the device path, write your raw OS image with dd. The example command is sudo dd if=image.img of=/dev/sda bs=4M, where you replace image.img with your actual image file and /dev/sda with the device you verified in the previous step. The bs=4M part sets a 4 megabyte block size, which keeps the write reasonably fast. dd prints progress only when you ask it to or when it finishes, so do not panic if the terminal looks quiet for a while. A full OS image takes several minutes to write, and interrupting it halfway leaves you with a partial image you will need to rewrite.
Wait for dd to finish completely and for the command prompt to return before you touch the board. When dd reports its final block counts, the write is done, but it is still good practice to let the system finish flushing cached data before you disconnect anything. You can run a sync command to be safe. After that, the eMMC holds a complete OS image, and the module is ready to boot from it. The writing step itself is simple, and almost every problem at this stage comes back to the device path, which is why the verification step before it matters so much.
The warning you must not skip
Here is the warning in plain terms: dd to the wrong device destroys data. dd does exactly what you tell it to do, with no confirmation prompt and no recycle bin. If you point it at your laptop’s main drive, an external backup drive, or another USB stick by mistake, it will overwrite that disk with the OS image and your old data will be gone. There is no undo button for that, and recovery after a full overwrite is rarely practical. That is why every careful guide repeats the same advice, and why this guide repeats it too.
Build a personal rule and stick to it on every flash. Never type a dd command from memory. Always list disks, identify the new eMMC entry, check its size, and then copy the device path from that listing into your command. If anything looks uncertain, stop and recheck instead of guessing. A two minute pause costs you nothing. A wrong device choice can cost you years of files. Keep backups of anything valuable on your host before you start flashing, and you will never have to learn this lesson the hard way.
Boot from eMMC and finish up
After the image is written, switch the module back to normal booting. Set the J4 jumper back to disabled, and unplug the slave port cable if you like, then power cycle the board. Power cycling means turning the power fully off and back on, not just pressing a reset button while the old state lingers. On the fresh power up, the boot ROM will look at eMMC first, find the OS you just wrote, and boot it normally. The module should now behave like any Raspberry Pi running that OS, with its storage on board and no host computer needed.
If the module does not boot on the first try, do not assume the flash failed. Recheck the jumper first, since a J4 left on EN will send the module straight back into USB boot mode on the next power up. Then check that the slave cable is unplugged or at least not holding the module in device mode, and power cycle again. If it still does not boot, you can repeat the whole loop: jumper to EN, rpiboot, verify the device, rewrite the image. The process is repeatable by design, so a second pass costs you little and often clears a glitch from the first attempt.
Conclusion
Flashing a Compute Module with rpiboot follows a loop you can trust. Set J4 to EN on the IO board, connect the host to the slave port J15, power the board, and run rpiboot so the eMMC appears on the host. Verify the device path with care, write the image with dd using a 4 megabyte block size, then set J4 back to disabled and power cycle so the module boots from eMMC. The only step that carries real risk is choosing the dd target, and the verification habit in this guide takes that risk down to almost nothing. Learn the loop once, and every Compute Module flash after it will feel like routine work.
Read next:

Pingback: How to Download and Install rpiboot
Pingback: rpiboot for Compute Module 4: Complete Guide
Pingback: rpiboot for Compute Module 5: What's New
Pingback: rpiboot Commands and Options Explained