🛠 Boot sur SD et procédure de recouvrement

Raspberry Pi Model B Revision 2 (2012) — Board Sheet · avance · Schéma : IMG-model-b-rev2-avance-1-modelb2-boot-sd-recouvrement.svg — Chaîne de boot du Model B Rev 2 : ROM du BCM2835 lisant bootcode.bin sur la partition FAT de la carte SD, puis start.elf et config.txt, avec une seconde carte SD de secours

Objectives

Understand the boot chain of the Model B Rev 2 (BCM2835 ROM reading bootcode.bin from the FAT partition of a full-size SD card) and learn how to restore a non-working card to service: USB boot does not exist on this generation, the SD card is the only path.

Hardware

Complete code

# Ecrire une image propre (remplacer /dev/sdX par le lecteur!)
sudo dd if=2021-05-07-raspios-buster-armhf.img of=/dev/sdX bs=4M status=progress conv=fsync
# Recouvrement sans reecrire: monter la partition boot sur le PC et reparer
#   - config.txt invalide -> supprimer/renommer config.txt (valeurs par defaut)
#   - noyant absent -> copier bootcode.bin, start.elf, fixup.dat, kernel*.img
# Diagnostic carte usee (la SD est le defaut materiel n1 de l'ere 2012-2014):
sudo fsck.vfat -v /dev/sdX1
# Sur la carte montee, tracer les demarrages:
sudo touch /boot/ssh ; cat /boot/cmdline.txt | grep root=

Expected verification

After writing, the card boots: green activity LED, HDMI output displayed. In recovery, renaming a broken config.txt restores startup to default values; the green LED blinks according to the error code if the firmware is missing (regular blinks = bootcode not found).

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials