Raspberry Pi bootloader configuration

Edit the configuration

Before editing the bootloader configuration, update your system to get the latest version of the rpi-eeprom package.

To view the current EEPROM configuration, run the following command:

$ rpi-eeprom-config

To edit the current EEPROM configuration and apply the updates to latest EEPROM release, run the following command:

$ sudo rpi-eeprom-config --edit

For more information about the EEPROM update process, see boot EEPROM.

Configuration properties

This section describes all the configuration items available in the bootloader. The syntax is the same as config.txt but the properties are specific to the bootloader. Conditional filters are also supported except for EDID.

BOOT_UART

If 1 then enable firmware debug output on the primary UART (the UART pointed to by /dev/serial0).

On Raspberry Pi 5, this is UART10 by default, which is exposed on the debug UART connector. However, in some configurations, Raspberry Pi 5 exposes the primary UART on GPIO 14 and 15 (UART0). On Raspberry Pi 4, the primary UART is exposed on GPIO 14 and 15. For more information, see Primary and secondary UART.

Configure the receiving debug terminal at 115200 bps, 8 data bits, 1 stop bit, no parity.

Default: 0

UART_BAUD

Flagship models since Raspberry Pi 5 only.

Changes the baud rate for the bootloader UART.

Supported values: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600

Default: 115200

WAKE_ON_GPIO

If 1 then sudo halt will run in a lower power mode until either GPIO3 or GLOBAL_EN are shorted to ground.

This setting is not relevant for Raspberry Pi 5 and later, Raspberry Pi Compute Module 5 and later, and Raspberry Pi 500 and later, because the dedicated power button can always be used to wake from HALT or STANDBY.

The default bootloader images for Raspberry Pi 4, Raspberry Pi 400, and Raspberry Pi Compute Module 4 set this value to 1 in the bootloader config. A bootloader config that doesn’t set WAKE_ON_GPIO uses 0.

Default: 0

POWER_OFF_ON_HALT

If 1 and WAKE_ON_GPIO=0 then sudo halt will switch off all PMIC outputs. This is lowest possible power state for halt but might cause problems with some HATs because 5V will still be on. GLOBAL_EN must be shorted to ground to boot.

The dedicated power button on Raspberry Pi 400 operates even if the processor is switched off. This behaviour is enabled by default, however, WAKE_ON_GPIO=2 can be set to use an external GPIO power button instead of the dedicated power button.

On Raspberry Pi 5 and later, and on Raspberry Pi 500 and later, this places the PMIC in STANDBY mode where all outputs are switched off. There is no need to set WAKE_ON_GPIO and pressing the dedicated power button boots the device.

Default: 1 on Compute Modules since CM5 and Keyboard models; otherwise 0

WAIT_FOR_POWER_BUTTON

Flagship models since Raspberry Pi 5 only.

If this property and POWER_OFF_ON_HALT are both set to 1 then the bootloader will immediately power-off and wait for the power to be pressed on the first boot after the power supply has been removed. This means that instead of booting immediately after power-loss the system will wait for the power button to be pressed.

Default: 0

BOOT_ORDER

The BOOT_ORDER setting allows flexible configuration for the priority of different boot modes. It is represented as a 32-bit unsigned integer where each nibble represents a boot-mode. The boot modes are attempted in lowest significant nibble to highest significant nibble order.

BOOT_ORDER fields

The BOOT_ORDER property defines the sequence for the different boot modes. It is read right to left, and up to eight digits can be defined.

Value Mode Description

0x0

SD CARD DETECT

Try SD then wait for card-detect to indicate that the card has changed. Deprecated now that 0xf (RESTART) is available.

0x1

SD CARD

SD card (or eMMC on Compute Module 4).

0x2

NETWORK

Network boot – See Network boot server tutorial.

0x3

RPIBOOT

RPIBOOT – See usbboot.

0x4

USB-MSD

USB mass storage boot – See USB mass storage boot.

0x5

BCM-USB-MSD

USB 2.0 boot from USB Type C socket (CM4: USB type A socket on CM4IO board). Not available on Raspberry Pi 5.

0x6

NVME

CM4, CM5, Raspberry Pi 5, and 500+ only: boot from an NVMe SSD connected to the PCIe interface. For more information, see NVMe boot.

0x7

HTTP

HTTP boot over ethernet. See HTTP boot for more details.

0xe

STOP

Stop and display error pattern. A power cycle is required to exit this state.

0xf

RESTART

Restart from the first boot-mode in the BOOT_ORDER field (loop).

RPIBOOT is normally enabled implicitly by selecting the nRPIBOOT jumper on a CM4 or CM5 IO board. However, it can be useful to set this within a custom BOOT_ORDER for development or provisioning, for example, by using set_reboot_order. If used, always set it as the last option in the BOOT_ORDER because this boot mode doesn’t support timeouts or retries.

BOOT_ORDER examples
BOOT_ORDER Description

0xf41

Try SD first, followed by USB-MSD then repeat (default if BOOT_ORDER is empty)

0xf14

Try USB first, followed by SD then repeat

0xf21

Try SD first, followed by NETWORK then repeat

0xf46

Try NVMe first, followed by USB-MSD then repeat

BOOT_WATCHDOG_TIMEOUT

If set to a non-zero value (in seconds), enables a hardware watchdog timer in the bootloader. If the OS is not started within the specified time, the watchdog will reset the system.

The bootloader watchdog is automatically cancelled as soon as the Arm CPU is started. It does not monitor the OS after the handover from the bootloader.

This is useful for unattended or remote systems to ensure recovery from failed boots (for example, if the OS never loads).

Default: 0 (disabled)

BOOT_WATCHDOG_PARTITION

If the bootloader watchdog triggers, this property specifies the partition number to boot from after the reset. This allows for automatic failover to a recovery or alternate partition.

If not set, the bootloader will retry the default partition (0).

You can use this in conjunction with the expression filter to apply different settings or select a different boot flow when the watchdog triggers a reboot to a specific partition.

See also the PARTITION property for more information about how to use high partition numbers to detect a watchdog trigger.

Default: 0

MAX_RESTARTS

If the RESTART (0xf) boot-mode is encountered more than MAX_RESTARTS times then a watchdog reset is triggered. This isn’t recommended for general use but might be useful for test or remote systems where a full reset is needed to resolve issues with hardware or network interfaces.

Default: -1 (infinite)

REBOOT_ON_FATAL_ERROR

If a fatal error is encountered during boot, the bootloader displays the error pattern on the activity LED three times and then performs a hard reset. This can mitigate intermittent hardware issues caused by power supplies, HATs, or board temperature. This setting only applies to the bootloader and has no effect after the OS has started.

Displaying the error pattern three times before resetting rate-limits reboots. If a faster reboot is required, use BOOT_WATCHDOG_TIMEOUT instead.

Set REBOOT_ON_FATAL_ERROR=0 to disable automatic rebooting and instead display the error pattern indefinitely.

Default: 1

SD_BOOT_MAX_RETRIES

The number of times that SD boot will be retried after failure before moving to the next boot-mode defined by BOOT_ORDER.

-1 means infinite retries.

Default: 0

SD_OVERCURRENT_CHECK

Raspberry Pi 4 Model B, Raspberry Pi 5, Raspberry Pi 500, and Raspberry Pi 500+ only.

Before booting, the bootloader checks the SD power switch overcurrent signal. The overcurrent signal occurs if the SD card is damaged and has a short circuit which will cause it to get hot.

If an over-current condition is detected, the bootloader switches off power to the SD card and waits five seconds before probing the SD card again. This error is displayed on the diagnostic screen, the UART and the activity LED (1 long, 2 short flashes).

The overcurrent check can be switched from an error to a non-blocking warning by setting SD_OVERCURRENT_CHECK=0 in the bootloader config.

Default: 1

SD_QUIRKS

The SD_QUIRKS property provides a set of options to support device bringup and workaround interoperability issues.

The flags are implemented as a bit-field. Undefined bits are reserved for future use and should be set to zero.

Value Behaviour

0x1

Disable SD High Speed modes. The card clock is limited to 12.5 MHz

Default: 0

NET_BOOT_MAX_RETRIES

The number of times that network boot will be retried after failure before moving to the next boot-mode defined by BOOT_ORDER.

-1 means infinite retries.

Default: 0

DHCP_TIMEOUT

The timeout in milliseconds for the entire DHCP sequence before failing the current iteration.

Minimum: 5000

Default: 45000

DHCP_REQ_TIMEOUT

The timeout in milliseconds before retrying DHCP DISCOVER or DHCP REQ.

Minimum: 500

Default: 4000

TFTP_FILE_TIMEOUT

The timeout in milliseconds for an individual file download through TFTP.

Minimum: 5000

Default: 30000

TFTP_IP

Optional dotted decimal ip address (for example, 192.168.1.99) for the TFTP server which overrides the server-ip from the DHCP request.

This might be useful on home networks because tftpd-hpa can be used instead of dnsmasq where broadband router is the DHCP server.

Default: ""

TFTP_PREFIX

In order to support unique TFTP boot directories for each Raspberry Pi, the bootloader prefixes the filenames with a device-specific directory. If neither start4.elf nor start.elf are found in the prefixed directory then the prefix is cleared.

On earlier models the serial number is used as the prefix, however on Raspberry Pi 4 and 5 the MAC address is no longer generated from the serial number, making it difficult to automatically create tftpboot directories on the server by inspecting DHCPDISCOVER packets. To support this, you can customise the TFTP_PREFIX to either be the MAC address, a fixed value or the serial number (default).

Value Description

0

Use the serial number, for example, 9ffefdef/

1

Use the string specified by TFTP_PREFIX_STR

2

Use the MAC address, for example, dc-a6-32-01-36-c2/

Default: 0

TFTP_PREFIX_STR

Specify the custom directory prefix string used when TFTP_PREFIX is set to 1. For example:- TFTP_PREFIX_STR=tftp_test/

Default: ""

Max length: 32 characters

PXE_OPTION43

Overrides the PXE Option43 match string with a different string. It’s normally better to apply customisations to the DHCP server than change the client behaviour, but this option is provided in case that’s not possible.

Default: Raspberry Pi Boot

DHCP_OPTION97

In earlier releases the client GUID (Option97) was just the serial number repeated four times. By default, the new GUID format is the concatenation of the four-character code (FourCC) (RPi4 0x34695052 for Raspberry Pi 4 or RPi5 0x35695052 for Raspberry Pi 5), the board revision (for example, 0x00c03111 or 0x00d04170) (4-bytes), the least significant 4 bytes of the mac address and the 4-byte serial number. This is intended to be unique but also provides structured information to the DHCP server, allowing Raspberry Pi 4 and 5 computers to be identified without relying upon the Ethernet MAC OUID.

Specify DHCP_OPTION97=0 to revert the old behaviour or a non-zero hex-value to specify a custom 4-byte prefix.

Default: 0x34695052

MAC_ADDRESS

Overrides the Raspberry Pi Ethernet MAC address with the given value, for example, dc:a6:32:01:36:c2

Default: ""

MAC_ADDRESS_OTP

Overrides the Raspberry Pi Ethernet MAC address with a value stored in the Customer OTP registers.

For example, to use a MAC address stored in rows 0 and 1 of the Customer OTP.

MAC_ADDRESS_OTP=0,1

The first value (row 0 in the example) contains the OUI and the most significant 8 bits of the MAC address. The second value (row 1 in the example) stores the remaining 16-bits of the MAC address. This is the same format as used for the Raspberry Pi MAC address programmed at manufacture.

Any two customer rows can be selected and combined in either order.

The Customer OTP rows are OTP registers 36 to 43 in the vcgencmd otp_dump output so if the first two rows are programmed as follows then MAC_ADDRESS_OTP=0,1 would give a MAC address of e4:5f:01:20:24:7e.

36:247e0000
37:e45f0120

Default: ""

Static IP address configuration

If TFTP_IP and the following options are set then DHCP is skipped and the static IP configuration is applied. If the TFTP server is on the same subnet as the client, GATEWAY can be omitted.

CLIENT_IP

The IP address of the client, for example, 192.168.0.32

Default: ""

SUBNET

The subnet address mask, for example, 255.255.255.0

Default: ""

GATEWAY

The gateway address to use if the TFTP server is on a different subnet, for example, 192.168.0.1

Default: ""

DISABLE_HDMI

The HDMI boot diagnostics display is disabled if DISABLE_HDMI=1. Other non-zero values are reserved for future use.

Default: 0

HDMI_DELAY

Skip rendering of the HDMI diagnostics display for up to N seconds (default 5) unless a fatal error occurs. The default behaviour is designed to avoid the bootloader diagnostics screen from briefly appearing during a normal SD/USB boot.

Default: 5

ENABLE_SELF_UPDATE

Enables the bootloader to update itself from a TFTP or USB mass storage device (MSD) boot filesystem.

If self-update is enabled then the bootloader will look for the update files (.sig/.upd) in the boot file system. If the update image differs from the current image then the update is applied and system is reset. Otherwise, if the EEPROM images are byte-for-byte identical then boot continues as normal.

Notes:

  • Bootloader releases prior to 2021 do not support self-update.

  • Prior to 2022, self-update was not enabled in SD boot. On a Raspberry Pi 4, the ROM can already load recovery.bin from the SD card. On a CM4, neither self-update nor recovery.bin have any effect and USB boot is required (see the Compute Module EEPROM bootloader docs).

  • Starting in 2022 (beta and stable), self-update from an SD card is enabled.

  • For network boot make sure that the TFTP boot directory can be mounted through NFS and that rpi-eeprom-update can write to it.

Default: 1

FREEZE_VERSION

Previously this property was only checked by the rpi-eeprom-update script. However, now that self-update is enabled the bootloader will also check this property. If set to 1, this overrides ENABLE_SELF_UPDATE to stop automatic updates. To disable FREEZE_VERSION you will have to use SD card boot with recovery.bin.

Custom EEPROM update scripts must also check this flag.

Default: 0

HTTP_HOST

If network install or HTTP boot is initiated, boot.img and boot.sig are downloaded from this server.

Invalid host names will be ignored. They should only contain lower case alphanumeric characters and - or .. If HTTP_HOST is set then HTTPS is disabled and plain HTTP used instead. You can specify an IP address to avoid the need for a DNS lookup. Don`t include the HTTP scheme or any forward slashes in the hostname.

Default: fw-download-alias1.raspberrypi.com

HTTP_PORT

You can use this property to change the port used for network install and HTTP boot. HTTPS is enabled when using the default host fw-download-alias1.raspberrypi.com. If HTTP_HOST is changed then HTTPS is disabled and plain HTTP will be used instead.

When HTTPS is disabled, plain HTTP will still be used even if HTTP_PORT is changed to 443.

Default: 443 if HTTPS is enabled otherwise 80

HTTP_PATH

The path used for network install and HTTP boot.

Case-sensitive. Use forward (Linux) slashes for the path separator. Leading and trailing forward slashes are not required.

If HTTP_HOST is not set, HTTP_PATH is ignored and the URL will be https://fw-download-alias1.raspberrypi.com:443/net_install/boot.img. If HTTP_HOST is set the URL will be http://<HTTP_HOST>:<HTTP_PORT>/<HTTP_PATH>/boot.img

Default: net_install

HTTP_CACERT_HASH

The SHA-256 hash (as a hex string) of a DER-encoded CA certificate to use for HTTPS network install and HTTP boot when HTTP_HOST is set to a custom server. The CA certificate itself is embedded in the EEPROM image using rpi-eeprom-config --cacertder.

When HTTP_CACERT_HASH is specified alongside HTTP_HOST and HTTP_PATH, network install and HTTP boot use HTTPS over port 443 instead of plain HTTP over port 80.

See HTTP boot for more details.

Default: "" (not set)

IMAGER_REPO_URL

The Raspberry Pi Imager application is configured with a JSON file downloaded at startup. By default, Raspberry Pi Imager uses the JSON at https://downloads.raspberrypi.com/os_list_imagingutility_v4.json.

Using IMAGER_REPO_URL to configure a network install with the embedded Raspberry Pi Imager isn’t currently supported because of a known issue.

You can also change the URL of the JSON file used by the Raspberry Pi Imager application to get it to offer your own images by one of the following methods:

  • Pass the --repo argument when starting Imager, for example: rpi-imager --repo https://downloads.raspberrypi.com/os_list_imagingutility_v4.json

  • In the Raspberry Pi Imager UI.

    1. Go to the App Options dialog box.

    2. For Content Repository, select Edit.

      • To use a JSON file on your computer, choose Use custom file and browse to the file location.

      • To use a JSON file hosted at a URL, choose Use custom URL and enter the URL.

    3. Click Apply & Restart. Imager resets your device and OS selections, and returns to the Device tab.

NET_INSTALL_ENABLED

When network install is enabled, the bootloader displays the network install screen on boot if it detects a keyboard.

To enable network install, add NET_INSTALL_ENABLED=1, or to disable network install add NET_INSTALL_ENABLED=0.

This setting is ignored and network install is disabled if DISABLE_HDMI=1 is set.

In order to detect the keyboard, network install must initialise the USB controller and enumerate devices. This increases boot time by approximately 1 second so it might be advantageous to disable network install in some embedded applications.

Default: 1 on Flagship models since Raspberry Pi 4B and Keyboard models; 0 on Compute Modules since CM4 (including CM4S).

NET_INSTALL_AT_POWER_ON

When set to 1, displays the network install UI briefly after a cold boot to make this feature more obvious to new users. Overrides NET_INSTALL_ENABLED if the settings conflict.

The default bootloader images set this value to 1 in the bootloader config. To disable the brief network install UI display, use the Advanced Options menu in raspi-config or manually delete this line in rpi-eeprom-config:

$ sudo rpi-eeprom-config --edit

Default: 0

NET_INSTALL_KEYBOARD_WAIT

If network install is enabled, the bootloader attempts to detect a keyboard and the SHIFT key to initiate network install. You can change the length of this wait in milliseconds with this property.

Setting this to 0 disables the keyboard wait, although network install can still be initiated if no boot files are found and USB boot-mode 4 is in BOOT_ORDER.

Testing suggests keyboard and SHIFT detection takes at least 750ms.

Default: 900

NETCONSOLE – advanced logging

NETCONSOLE duplicates debug messages to the network interface. The IP addresses and ports are defined by the NETCONSOLE string.

NETCONSOLE blocks until the Ethernet link is established or a timeout occurs. The timeout value is DHCP_TIMEOUT although DHCP is not attempted unless network boot is requested.
Format

For more information, see the Netconsole documentation.

src_port@src_ip/dev_name,dst_port@dst_ip/dst_mac
E.g. 6665@169.254.1.1/,6666@/

In order to simplify parsing, the bootloader requires every field separator to be present. You must specify the source IP address, but you can leave the following fields blank to use their default values:

  • src_port – 6665

  • dev_name – "" (the device name is always ignored)

  • dst_port – 6666

  • dst_ip – 255.255.255.255

  • dst_mac – 00:00:00:00:00

One way to view the data is to connect the test Raspberry Pi 4 to another Raspberry Pi running WireShark and select udp.srcport == 6665 as a filter and select Analyze → Follow → UDP stream to view as an ASCII log.

NETCONSOLE should not be enabled by default because it might cause network problems. It can be enabled on demand through a GPIO filter:

# Enable debug if GPIO 7 is pulled low
[gpio7=0]
NETCONSOLE=6665@169.254.1.1/,6666@/

Default: "" (not enabled)

Max length: 32 characters

PARTITION

The PARTITION option can be used to specify the boot partition number, if it has not explicitly been set by the reboot command (for example, sudo reboot N) or by boot_partition=N in autoboot.txt. This could be used to boot from a rescue partition if the user presses a button.

The latest firmware also allows high partition numbers (> 31) to be overridden. This allows a custom setup of the system hardware watchdog to trigger a reboot with a special high partition number (for example, 62) which can be detected by the bootloader (using a conditional filter) and remapped to a recovery partition.

Example:

# System watchdog fired - boot the rescue partition with additional options
# Disable SD high speed mode and enable HDMI diagnostics immediately.
[partition=62]
PARTITION=2
HDMI_DELAY=0
SD_QUIRKS=1
# Boot from partition 2 if GPIO 7 is pulled low
[gpio7=0]
PARTITION=2

Default: 0

PARTITION_WALK

This property is designed to improve the reliability of A/B boot schemes using autoboot.txt by searching for bootable partitions if the specified partition does not appear to be bootable. If PARTITION_WALK=1 and the requested partition is not bootable and does not have a valid autoboot.txt then the bootloader will check each partition in turn (up to 8 and wrapping to 0) to see if it is bootable (contains start4.elf on a Raspberry Pi 4, or config.txt and a suitable device-tree on Raspberry Pi 5 or later).

During the "partition walk" autoboot.txt files are not processed to avoid cycling dependencies. It is assumed that the requested boot partition has failed and the system is attempting recovery.

Default: 1

BOOTVAR0

Allows setting the conditional variable bootvar0 used by config.txt. See bootvar0.

Default: 0

PCIE_PROBE

Flagship models since Raspberry Pi 5 only.

If set to 1, the bootloader enumerates the PCIe x1 interface to discover NVMe devices during boot. This is required for custom PCIe expansion designs that don’t support the HAT+ specification. HAT+ compliant devices are auto-detected and don’t require this setting.

Default: 0

PSU_MAX_CURRENT

Raspberry Pi 5 only.

If set, this property instructions the firmware to skip USB power-delivery negotiation and assume that it is connected to a power supply with the given current rating. Typically, this is either set to 3000 or 5000 for either a low- or high-current capable power supply.

Default: ""

USB_MSD_EXCLUDE_VID_PID

A list of up to four VID/PID pairs specifying devices which the bootloader should ignore. If this matches a HUB then the HUB won’t be enumerated, causing all downstream devices to be excluded. This is intended to allow problematic (for example, very slow to enumerate) devices to be ignored during boot enumeration. This is specific to the bootloader and is not passed to the OS.

The format is a comma-separated list of hexadecimal values with the VID as most significant nibble. Spaces are not allowed. For example, 034700a0,a4231234

Default: ""

USB_MSD_DISCOVER_TIMEOUT

If no USB mass storage devices are found within this timeout then USB-MSD is stopped and the next boot-mode is selected.

Minimum: 5000 (5 seconds)

Default: 20000 (20 seconds)

USB_MSD_LUN_TIMEOUT

How long to wait in milliseconds before advancing to the next LUN, for example, a multi-slot SD-CARD reader. This is still being tweaked but might help speed up boot if old/slow devices are connected as well as a fast USB-MSD device containing the OS.

Minimum: 100

Default: 2000 (2 seconds)

USB_MSD_PWR_OFF_TIME

Raspberry Pi 4 only.

When the Raspberry Pi is rebooted, USB power is switched off by the hardware. A short power-off time can cause problems with some USB devices so this parameter can be used to force a longer power off, as though the cable was physically removed.

On Raspberry Pi 4 version 1.3 and older, the configurable/long power off requires the XHCI controller to be enabled so there is actually a short power off followed by a longer configurable power off. You can skip the longer configurable power off by setting this parameter to zero.

On newer revisions the hardware ensures that USB power is off from reboot and the bootloader only enables power after this timeout has elapsed. This is happens after memory is initialised ensuring that USB power is off for at least two seconds. Therefore, this parameter generally has no effect on newer hardware revisions.

Minimum: 0

Maximum: 5000

Default: 1000 (1 second)

USB_MSD_STARTUP_DELAY

If defined, delays USB enumeration for the given timeout after the USB host controller has initialised. If a USB hard disk drive takes a long time to initialise and triggers USB timeouts then this delay can be used to give the driver additional time to initialise. It might also be necessary to increase the overall USB timeout (USB_MSD_DISCOVER_TIMEOUT).

Minimum: 0

Maximum: 30000 (30 seconds)

Default: 0

VL805

Compute Module 4 only.

If the VL805 property is set to 1 then the bootloader will search for a VL805 PCIe XHCI controller and attempt to initialise it with VL805 firmware embedded in the bootloader EEPROM. This enables industrial designs to use VL805 XHCI controllers without providing a dedicated SPI EEPROM for the VL805 firmware.

  • On Compute Module 4 the bootloader never writes to the dedicated VL805 SPI EEPROM. This option just configures the controller to load the firmware from SDRAM.

  • Do not use this option if the VL805 XHCI controller has a dedicated EEPROM. It will fail to initialise because the VL805 ROM will attempt to use a dedicated SPI EEPROM if fitted.

  • The embedded VL805 firmware assumes the same USB configuration as Raspberry Pi 4B (two USB 3.0 ports and four USB 2.0 ports). There is no support for loading alternate VL805 firmware images, a dedicated VL805 SPI EEPROM should be used instead for such configurations.

Default: 0

XHCI_DEBUG

This property is a bit-field which controls the verbosity of USB debug messages for mass storage boot-mode. Enabling all of these messages generates a huge amount of log data which will slow down booting and might even cause boot to fail. For verbose logs it’s best to use NETCONSOLE.

Value Log

0x1

USB descriptors

0x2

Mass storage mode state machine

0x4

Mass storage mode state machine – verbose

0x8

All USB requests

0x10

Device and hub state machines

0x20

All xHCI TRBs (VERY VERBOSE)

0x40

All xHCI events (VERY VERBOSE)

To combine values, add them together. For example:

# Enable mass storage and USB descriptor logging
XHCI_DEBUG=0x3

Default: 0x0 (no USB debug messages enabled)

SDRAM_BANKLOW

SDRAM_BANKLOW controls how the SDRAM banks are arranged within the system address space. The number of bank bits can be selectively mapped to being located in the MSBs of the address, or being located between the row and column address bits. This setting can significantly affect SDRAM performance.

When unset, the bootloader will choose the preferred option. This is currently 3 on Raspberry Pi 4 family and 1 on Raspberry Pi 5 family.

BANKLOW Address Bit Mapping

0

Address = {bank[3:0], row, column}

1

Address = {bank[3:1], row, bank[0], column}

2

Address = {bank[3:2], row, bank[1:0], column}

3

Address = {bank[3], row, bank[2:0], column}

4

Address = {row, bank[3:0], column}

This setting also causes the bootloader to add a setting for the number of NUMA regions to be used by the kernel ("numa=fake=<n>"). For best performance these settings should be left as default.

On a Raspberry Pi 5 family device, if NUMA is not available in the kernel then performance will be adversely affected. Manually choosing SDRAM_BANKLOW=3 will mitigate this performance hit, although for highest performance, ensure NUMA is available.

Default: unset (use bootloader recommended setting)

[config.txt] section

After reading config.txt the GPU firmware start4.elf reads the bootloader EEPROM config and checks for a section called [config.txt]. If the [config.txt] section exists then the contents from the start of this section to the end of the file is appended in memory, to the contents of the config.txt file read from the boot partition. This can be used to automatically apply settings to every operating system, for example, dtoverlays.

If you configure the bootloader with an invalid configuration that fails to boot, you must re-flash the bootloader EEPROM with a valid configuration to boot.
Some configuration properties live in config.txt. For more information about those properties, see configuration properties.