Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpi-eeprom-config --edit does not commit changes #245

Open
swess78 opened this issue Oct 11, 2024 · 1 comment
Open

rpi-eeprom-config --edit does not commit changes #245

swess78 opened this issue Oct 11, 2024 · 1 comment

Comments

@swess78
Copy link

swess78 commented Oct 11, 2024

Describe the bug

I've been trying to disable boot from USB so that the rpi does not start in USB mass storage mode. When using the rpi-eeprom-config to edit the config file it does not seem to have the desired effect on BOOT_ORDER= [no combination seems to work or affect the system]

Steps to reproduce the behaviour

To disable USB boot on your Raspberry Pi using rpi-eeprom-config, you need to modify the EEPROM configuration. Here are the steps:

  1. Edit the EEPROM Configuration: Open a terminal on your Raspberry Pi and run the following command to edit the EEPROM configuration:
    sudo rpi-eeprom-config --edit

  2. Modify the Boot Order: In the editor that opens, look for the BOOT_ORDER parameter. You need to set it to a value that excludes USB boot. For example, setting it to 0xf41 will prioritize SD card boot and exclude USB boot:
    BOOT_ORDER=0xf21

  3. Save and Exit: Save the changes and exit the editor. The exact method to save and exit depends on the text editor you are using (e.g., Ctrl+X followed by Y and Enter for nano).
    Apply the Changes: After saving the changes, reboot your Raspberry Pi to apply the new boot order:
    sudo reboot
    This should disable USB boot and prioritize booting from the SD card.

Device(s)

Raspberry Pi CM4S

Compute Module IO board.

No response

RPIBOOT logs

No response

Kernel logs

No response

Device UART logs

No response

@timg236
Copy link
Collaborator

timg236 commented Oct 29, 2024

Running "rpi-eeprom-config --edit" won't update the bootloader on a CM4 / CM4-S unless CM4_ENABLE_RPI_EEPROM_UPDATE is set to 1 in /etc/default/rpi-eeprom-update.

The recommended way to modify the bootloader on CM4 / CM4-S is via rpiboot - see
https://github.com/raspberrypi/usbboot/tree/master/recovery

This is because CM4/CM4-S cannot loader recovery.bin from the SD/EMMC.

Please could you try the rpiboot approach to see if that works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants