BOOT_ORDER Generator: Set the Raspberry Pi Boot Order

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.

Key facts

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:

DigitBoot modeMeaning
1SD CARDmicroSD card, or eMMC on Compute Module 4
2NETWORKNetwork boot from a boot server (PXE)
3RPIBOOTBoot over USB from a PC, always the last entry
4USB-MSDUSB flash drive, USB SSD or hard disk
5BCM-USB-MSDUSB 2.0 on the USB-C socket, not on Raspberry Pi 5
6NVMENVMe SSD on the PCIe interface (Pi 5, Pi 500+, CM4, CM5)
7HTTPHTTP boot over Ethernet
eSTOPStop and show an error pattern until power is removed
fRESTARTStart 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

ValueOrderUse
0xf41SD → USBDefault if BOOT_ORDER is not set
0xf14USB → SDUSB SSD or flash drive takes priority
0xf461SD → NVMe → USBRaspberry Pi 5 factory default
0xf416NVMe → SD → USBNVMe first, SD card as fallback
0xf146NVMe → USB → SDWritten by raspi-config for “NVMe/USB Boot”
0xf46NVMe → USBWithout an SD card
0xf21SD → networkNetwork boot as fallback
0xf241SD → USB → networkAll 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.

raspi-config Advanced Options on a Raspberry Pi 5 showing menu entry A4 Boot Order
Under “Advanced Options”, entry A4 Boot Order takes you to the boot order.

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=0 and 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

Frequently asked questions about BOOT_ORDER

What does BOOT_ORDER=0xf416 mean?

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.

What is the default BOOT_ORDER of the Raspberry Pi 5?

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.

What does the f in BOOT_ORDER stand for?

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.

How do I change the boot order on a Raspberry Pi?

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.