🛠 Remplacer un CM4 par un CM5 : audit des incompatibilités (Annexe B)

Raspberry Pi Compute Module 5 (compute-module-5) · avance · Schéma : IMG-compute-module-5-avance-2-migrer-cm4-vers-cm5.svg — un CM4 et un CM5 côte à côte au-dessus d'une carte mère CM4 ; trois zones surlignées en avertissement : paires CAM0/DSI0 devenues USB3 (inutilisables), protection ESD retirée sur HDMI/SDA/SCL, alimentation dimensionnée pour 1,4 A alors que le CM5 demande 2,5 A.

Objectives

The CM5 retains the 40 × 55 mm form factor and the 2 × 100-pin connectors of the CM4 — Raspberry Pi describes this as "mostly compatible", not fully compatible. Before soldering a CM5 into an existing fleet of CM4 boards, you must audit the three documented discrepancies in Appendix B of the datasheet: (1) the CAM0/DSI0 MIPI pairs have become USB 3.0 and no longer work on a CM4 board; (2) the ESD protection present on HDMI, SDA, SCL, HPD, and CEC on the CM4 has been removed; (3) power consumption shifts from a typical ~1.4 A to a design requirement of 5 V / 2.5 A. This tutorial produces a reproducible audit script.

Hardware

Complete Code

#!/usr/bin/env bash
# audit-cm5-sur-cm4.sh — ce qui survit au remplacement CM4 -> CM5.
echo "== 1. Sous-tensions (alim prévue pour 1,4 A ?) =="
dmesg | grep -iE 'under-voltage|underpower' || echo "OK : aucune sous-tension enregistrée"
vcgencmd get_throttled

echo "== 2. Caméra sur l'ancien port CAM0 (paires devenues USB3) =="
libcamera-hello --list-cameras 2>/dev/null || echo "AUCUNE caméra : attendu sur brochage CM4"

echo "== 3. Premier afficheur DSI0 (paires devenues USB3) =="
ls /sys/class/drm/ | grep -i dsi || echo "pas de connecteur DSI0 exposé"

echo "== 4. Périphériques USB3 apparus à la place des MIPI =="
lsusb -t | grep 5000M || echo "aucun périphérique 5000M branché"

echo "== 5. Chaîne thermique et EEPROM =="
vcgencmd measure_temp; vcgencmd bootloader_version | head -1

Expected Verification

The report must conclude: no undervoltage under load (otherwise review the power supply — the datasheet suggests lowering the CPU clock as a fallback); CSI0 camera and DSI0 display panel absent (expected behavior, not a defect); eMMC, Ethernet, the second HDMI, and the HAT footprint remain functional. Document the decision: migrate the motherboard to a CM5 pinout if the camera/DSI0 is required.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials