8000 Add programming information for gpio_bootmode enabling (#714) · macmpi/documentation@c460823 · GitHub
[go: up one dir, main page]

Skip to content

Commit c460823

Browse files
ghollingworthJamesH65
authored andcommitted
Add programming information for gpio_bootmode enabling (raspberrypi#714)
* Add programming information for gpio_bootmode enabling * copy edits
1 parent ca45a43 commit c460823

File tree

1 8000 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hardware/raspberrypi/bootmodes/bootflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The flow of boot begins with reading the OTP to decide on the valid boot modes enabled. By default, this is SD card boot followed by USB device boot. Subsequently, the boot ROM checks to see if `program_gpio_bootmode` OTP bit is 1 or 2. If it is, then it reads either GPIOs 22-26 (program_gpio_bootmode=1) or 39-43 (program_gpio_bootmode=2) and uses those bits to disable boot modes. This means it is possible to use a hardware switch to switch between different boot modes if there are more than one available.
44

5+
To set the boot mode option, just add 'program_gpio_bootmode=n' where n is 1 or 2 as above, into config.txt. Boot the device, then power cycle the device (reboot will not work). You should expect it to no longer boot (all boot modes will be disabled by default). Apply a pull-up to the required pin to enable the required boot mode.
6+
57
Next the boot ROM checks each of the boot sources for a file called bootcode.bin; if it is successful it will load the code into the local 128K cache and jump to it. The overall boot mode process is as follows:
68

79
* 2837 boots

0 commit comments

Comments
 (0)
0