🛠 Booter sur NVMe/USB et procédure de recouvrement

Raspberry Pi 4 Model B (2019) — Board Sheet · avance · Schéma : IMG-model-4b-avance-1-model4b-boot-nvme-usb.svg — Pi 4B avec EEPROM SPI, adaptateur NVMe sur USB 3.0 branché sur un port bleu, ordre de démarrage modifié, microSD de secours à côté

Objectives

The Pi 4B is the first flagship Pi with an embedded SPI boot EEPROM: boot from USB/NVMe, network boot, customizable boot order, LED codes, and HDMI diagnostics in case of failure. This tutorial migrates the system to an SSD and then documents the recovery procedure.

Hardware

Complete Code

# 1) Copier le systeme sur le SSD (Imager : choisir le SSD comme cible)
sudo apt install rpi-eeprom
vcgencmd bootloader_version          # date de l'EEPROM
vcgencmd bootloader_config | grep BOOT_ORDER

# 2) Changer l'ordre de boot : 0xf = SD, 0x1 = USB
sudo rpi-eeprom-edit
#   dans l'editeur : BOOT_ORDER=0xf41   (SD puis USB, puis reseau)
#   sauvegarder : l'utilitaire reprogramme l'EEPROM, puis :
sudo reboot

# 3) Apres boot sur le SSD, verifier :
df -h / ; lsblk

Expected Verification

After removing the microSD card, the Pi boots directly from the SSD (df -h / shows /dev/sda2 or nvme). In case of failure, recovery is simple: inserting a valid SD card with a fixup.dat file forces an EEPROM reflash, or the default BOOT_ORDER falls back to the SD card. The green LED blinking patterns code the failure.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials