🛠 Amorçage microSD, pannes de boot et procédure de recouvrement

Raspberry Pi Model B+ (2014) — Board Sheet · avance · Schéma : IMG-model-b-plus-avance-1-modelbp-boot-sd-recouvrement.svg — étapes de l'amorçage du BCM2835 : ROM de démarrage lisant bootcode.bin sur la partition FAT de la microSD, puis kernel.img et config.txt ; à côté, un PC relisant la carte via adaptateur pour la réparer.

Objectives

Understand the very specific boot chain of the Model B+ — the BCM2835 ROM can only boot from microSD, with no EEPROM memory or USB boot support — and learn how to restore a card that has become unbootable without reinstalling: editing config.txt, using a rescue shell, and checking file systems.

Hardware

Complete code

# 1) Graver proprement une image (sur le PC Linux)
sudo dd if=2021-05-07-raspios-buster-armhf.img of=/dev/sdX bs=4M status=progress conv=fsync
# 2) Sur la carte : la partition 1 est la FAT « boot » lue par le ROM
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT /dev/sdX
# bootcode.bin, kernel.img, config.txt, cmdline.txt doivent être à la racine
# 3) Shell de secours : sur le PC, ajouter init=/bin/sh à la fin de cmdline.txt
#    (enlever « init=... » existant), booter, changer le mot de passe, retirer la ligne
sudo passwd root
# 4) Réparer une partition root encrassée après une coupure brutale
sudo touch /forcefsck && sudo reboot
# 5) Carte muette : tester une autre microSD, vérifier l'alimentation 5 V, et
#    regarder la LED d'alimentation (rouge) — le B+ n'a pas de LED d'activité
#    séparée fiable selon les révisions.

Expected verification

With a healthy card, the red LED lights up and the screen displays the boot sequence followed by the login prompt. The rescue shell (init=/bin/sh) provides direct root access: mount -o remount,rw / followed by passwd allows you to recover access. After removing the line and rebooting, the system returns to normal operation.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials