This BOOT_ORDER generator builds the Raspberry Pi boot order for you, without making you read hex digits backwards. Pick your model and boot sources, sort them, and copy the finished line for the bootloader configuration. The tool also decodes existing values such as 0xf461.
BOOT_ORDER lives in the bootloader EEPROM and defines the order in which the Raspberry Pi tries SD card, USB, NVMe and network. Each hex digit stands for one boot source. The bootloader reads the value from right to left: 0xf416 means NVMe (6), then SD card (1), then USB (4), then start over (f). The Raspberry Pi 5 ships with 0xf461, so it tries the SD card first. You change the value with sudo rpi-eeprom-config --edit or through raspi-config.
How to read a BOOT_ORDER value
The value is a hexadecimal number with up to eight digits. Each digit is a boot mode, and the bootloader starts with the rightmost digit. Read it like a sentence from left to right and you get the order exactly the wrong way round. These are the digits listed in the official bootloader documentation:
| Digit | Boot mode | Meaning |
|---|---|---|
| 1 | SD CARD | microSD card, or eMMC on Compute Module 4 |
| 2 | NETWORK | Network boot from a boot server (PXE) |
| 3 | RPIBOOT | Boot over USB from a PC, always the last entry |
| 4 | USB-MSD | USB flash drive, USB SSD or hard disk |
| 5 | BCM-USB-MSD | USB 2.0 on the USB-C socket, not on Raspberry Pi 5 |
| 6 | NVME | NVMe SSD on the PCIe interface (Pi 5, Pi 500+, CM4, CM5) |
| 7 | HTTP | HTTP boot over Ethernet |
| e | STOP | Stop and show an error pattern until power is removed |
| f | RESTART | Start again with the first boot mode |
Digit 0 (SD card with card detect) has been deprecated since f became available. An f or e on the far left ends the sequence.
Common BOOT_ORDER values
| Value | Order | Use |
|---|---|---|
| 0xf41 | SD → USB | Default if BOOT_ORDER is not set |
| 0xf14 | USB → SD | USB SSD or flash drive takes priority |
| 0xf461 | SD → NVMe → USB | Raspberry Pi 5 factory default |
| 0xf416 | NVMe → SD → USB | NVMe first, SD card as fallback |
| 0xf146 | NVMe → USB → SD | Written by raspi-config for “NVMe/USB Boot” |
| 0xf46 | NVMe → USB | Without an SD card |
| 0xf21 | SD → network | Network boot as fallback |
| 0xf241 | SD → USB → network | All three sources in turn |
How to change BOOT_ORDER on a Raspberry Pi
Update the system first so the rpi-eeprom package and the bootloader are current:
sudo apt update
sudo apt full-upgrade
This command shows the current configuration:
rpi-eeprom-config
To change it, open the configuration in the editor:
sudo rpi-eeprom-config --edit
Replace the line BOOT_ORDER=… with the line from the generator. If the line is missing, add it at the end. In nano, save with Ctrl+O and Enter and exit with Ctrl+X. The new value is written to the EEPROM on the next reboot:
sudo reboot
After the reboot, run rpi-eeprom-config again to confirm the value. To see which drive the Pi is actually running from, use findmnt /: with an NVMe SSD the source starts with /dev/nvme0n1, with an SD card it starts with /dev/mmcblk0.
If you prefer a menu, run sudo raspi-config and go to “Advanced Options” and “Boot Order”. It only offers a few fixed combinations, though. Our guide to raspi-config explains every menu option.
The extra options in the generator
- PCIE_PROBE=1 (Raspberry Pi 5 only): the bootloader actively looks for NVMe drives on the PCIe interface. You only need it for adapters that do not follow the HAT+ specification. HAT+ boards are detected automatically.
- PSU_MAX_CURRENT=5000 (Raspberry Pi 5 only): the bootloader skips USB-PD negotiation and assumes a 5 A power supply. Only set this if your power supply really delivers that much.
- POWER_OFF_ON_HALT=1: after shutdown the Pi switches off most of its power rails. On a Raspberry Pi 5 the power button starts it again. A Raspberry Pi 4 also needs
WAKE_ON_GPIO=0and then only starts again via the GLOBAL_EN contact or after power has been removed.
Sources and last update
Last checked: October 2026. Digits and example values come from the Raspberry Pi bootloader documentation. The Raspberry Pi 5 factory default is documented in the default configuration in the rpi-eeprom repository, and the two values written by raspi-config are in the raspi-config source code. The generator is tested automatically against these documented values.
Related guides
- Setting up an NVMe SSD on the Raspberry Pi 5
- Clone a Raspberry Pi SD card to an NVMe SSD
- Boot a Raspberry Pi from USB
- Set up a Raspberry Pi 5 without an SD card (rpiboot)
- Raspberry Pi won’t boot: solutions
Frequently asked questions about BOOT_ORDER
The Raspberry Pi tries the NVMe SSD first (6), then the SD card (1), then USB (4), and then starts over (f). The bootloader reads the value from right to left.
The Raspberry Pi 5 ships with BOOT_ORDER=0xf461. It tries the SD card first, then NVMe, then USB, and then starts over. Without an SD card inserted it therefore boots from the NVMe SSD even with the factory setting.
The digit f stands for RESTART: if no boot source worked, the bootloader starts again with the first entry. The alternative is e for STOP, which halts the Pi with an error pattern until you remove power.
Run sudo rpi-eeprom-config –edit to open the bootloader configuration, change the BOOT_ORDER line and reboot. Alternatively, sudo raspi-config offers fixed combinations under Advanced Options and Boot Order.

