RPI safe mode

From eLinux.org
Revision as of 11:55, 28 December 2012 by Bgirardot (talk | contribs) (Added link to P1 pin out diagram)
Jump to: navigation, search

This results in config.txt being ignored (except for avoid_safe_mode). A default cmdline.txt is applied, and kernel_emergency.img is loaded (if not available, then just kernel.img).

It provides a means of recovering from, e.g.

  • too high an overclock
  • a typo in cmdline.txt
  • an incorrect kernel=<filename> parameter
  • an invalid display mode

without requiring a PC. (Obviously it won't help if you've deleted start.elf...)

The busybox based kernel_emergency.img has /boot mounted, and vi installed so you can fix up config.txt or cmdline.txt. (You can also mount /dev/mmcblk0p2 and fix up the rootfs if you have problems there that stop you booting).

Connect pins 5 & 6 with a jumper or piece of wire. These pins are the 3rd row from the end of the P1 header closest to the edge of the board.

Be very careful with where you insert the jumper. Some pins carry power, so shorting those would not be a good idea. Wire insulation stripped off of 20 AWG wire can be used to cover the power pins and help prevent accidents.

20 AWG wire used to connect P1 pins 5 and 6 to boot RPi into safe mode. Also, 20 AWG wire insulation used to protect the power pins on the P1 header from accidentally being shorted to another pin or each other.


More info: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=12007

P1 Pin diagram: RPi Low-level peripherals