🛠 Sauver une Zero qui ne boot plus : le flux legacy sans EEPROM

Raspberry Pi Zero (2015) — Fiche carte · avance · Schéma : IMG-zero-avance-1-recuperation-boot-sans-eeprom.svg — chaîne de boot legacy de la Zero (OTP → bootcode.bin → start.elf → config.txt → kernel) sur partition FAT, microSD montée sur un PC pour édition de config.txt et fsck de la partition racine.

Goal

Recover a Zero that stopped booting after a bad config.txt or a corrupted filesystem. Key fact: the Zero has no EEPROM (unlike Pi 4/5). The legacy boot flow is plain files on the FAT partition — bootcode.bin, start.elf, config.txt — so recovery means editing files, never reflashing firmware.

Boot anatomy

One bad overlay line = black screen. The fix is always: mount the card on another machine.

  1. The BCM2835 reads the microSD FAT partition and runs bootcode.bin.
  2. bootcode.bin loads start.elf (GPU), which parses config.txt.
  3. The kernel starts with cmdline.txt ; the root filesystem mounts after 'rootwait'.

Repair

sudo mkdir -p /mnt/sdboot && sudo mount /dev/sdX1 /mnt/sdboot
ls /mnt/sdboot        # bootcode.bin, start.elf, config.txt, cmdline.txt

# Comment out the last config.txt edits:
sudo sed -i 's/^dtoverlay=dwc2/# &/' /mnt/sdboot/config.txt

# cmdline.txt must be ONE line and must keep rootwait:
cat /mnt/sdboot/cmdline.txt

# Filesystem errors? fsck the UNMOUNTED root partition:
sudo umount /dev/sdX2 2>/dev/null; sudo fsck -y /dev/sdX2

If the card is beyond repair, rewrite the image with Raspberry Pi Imager — there is nothing on the board itself to reflash.

Check

Card back in the Zero: mini-HDMI output returns and SSH works again ; vcgencmd versioncheck reports on-or-after-date boot files.

Pitfalls

Autres tutoriels pour cette carte

Exemples de code pour cette carte

← Retour à la fiche 🛠 Tous les tutoriels