🛠 Premier démarrage d'un CM4 Lite depuis la microSD de l'IO Board

Raspberry Pi Compute Module 4 (CM4, 2020) — Board Sheet · debutant · Schéma : IMG-compute-module-4-debutant-1-booter-cm4-lite-microsd.svg — CM4 Lite monté sur l'IO Board, microSD insérée, alimentation barillet 12 V, écran HDMI et câble Ethernet ; le jumper J2 (nRPI_BOOT) est bien retiré.

Objectives

Mount a Compute Module 4 on its IO Board and boot for the first time from the microSD slot — the simplest path when starting with a CM4 Lite (no eMMC). You will mainly learn how to decode a CM4 ordering code (format CM4xyzwww: x = wireless, y = RAM in GB, z = tens of GB of eMMC) and the golden rule of the CM4: a module with eMMC completely ignores the microSD slot, because the eMMC is wired to the primary SD controller.

Hardware

Complete Code

On the PC, flash Raspberry Pi OS 64-bit onto the microSD card using Raspberry Pi Imager (pre-setting hostname, SSH, and Wi-Fi is recommended). Ensure that no jumper is on J2 (nRPI_BOOT) — if present, it forces USB device mode and the module will never boot on its own. Insert the SD card, power the IO Board, connect the screen and network, then at the first shell:

# Vérifier que le système est bien sur la microSD et l'identité du module
lsblk -o NAME,SIZE,MOUNTPOINT | head        # /dev/mmcblk0p2 monté sur /
cat /proc/device-tree/compatible            # attendu : raspberrypi,4-compute-module
vcgencmd versionboot                        # le bootloader charge bcm2711-rpi-cm4.dtb
dmesg | grep -iE 'mmc|emmc'                 # mmc0 = microSD ; aucune eMMC sur un Lite
vcgencmd measure_temp                       # throttle à 85 °C, à surveiller

Expected Verification

lsblk shows the root on /dev/mmcblk0p2; /proc/device-tree/compatible contains raspberrypi,4-compute-module; the ACT LED blinks during boot and then turns off; vcgencmd versionboot mentions the DTB bcm2711-rpi-cm4.dtb (the fallback to bcm2711-rpi-4-b.dtb only occurs if it is missing).

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials