🛠 Deux ports USB 3.0 simultanés : le CM5 fait du stockage rapide, pas sur une carte CM4

Raspberry Pi Compute Module 5 (compute-module-5) · intermediaire · Schéma : IMG-compute-module-5-intermediaire-3-double-usb3-cm5.svg — CM5 sur CM5IO Board avec deux SSD USB-3 branchés sur les ports Type-A ; le schéma montre que les paires MIPI CAM0/DSI0 du CM4 sont devenues les paires USB3-0/USB3-1 du CM5 ; un graphique affiche deux flux de copie simultanés.

Objectives

The first in the Compute Module range: the CM5 exposes 2 USB 3.0 SuperSpeed ports (5 Gb/s simultaneous) + 1 USB 2.0 High-Speed port. Engineers repurposed the CM4's MIPI CAM0/DSI0 ports into USB3 pairs — hence a major compatibility pitfall: these ports do not work on a motherboard designed for the CM4. This tutorial: inventory the actual speeds, enable the USB 2.0 port in host mode, and measure two simultaneous copies.

Hardware

Complete code

# 1) Inventaire des vitesses de liaison
lsusb -t | grep -E '5000M|480M|xhci|dwc'

# 2) Activer le port USB 2.0 High-Speed en hôte (contrôleur dwc2)
echo 'dtoverlay=dwc2,dr_mode=host' | sudo tee -a /boot/firmware/config.txt
sudo reboot

# 3) Monter deux SSD et mesurer le débit simultané
sudo mkdir -p /mnt/s1 /mnt/s2
sudo mount /dev/sda1 /mnt/s1 && sudo mount /dev/sdb1 /mnt/s2
( dd if=/dev/zero of=/mnt/s1/t.bin bs=1M count=2000 oflag=direct status=none & \
  dd if=/dev/zero of=/mnt/s2/t.bin bs=1M count=2000 oflag=direct status=none; wait )
lsusb -t    # recontrôler que les deux SSD restent bien en 5000M

Expected verification

lsusb -t lists the two SSDs on 5000M buses (and any keyboard at 480M on the dwc2 controller); the two dd copies complete without UAS errors; the total approaches the capacities of two simultaneous SuperSpeed links. The USB 2.0 Type-C port becomes usable in host mode after applying the dwc2 overlay.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials