Wednesday, November 04, 2020

Raspberry Pi 4B change USB boot order and hostname

This is really more a note to self so that I remember how to do things.

To change the boot order for a Raspberry Pi 4B:
sudo -E rpi-eeprom-config --edit
This opens up the current configuration.
Add in:
BOOT_ORDER=0xf14
to try to boot from USB first, then SD card.
BOOT_ORDER=0xf41
is the default, which will try to boot SD card, then USB.

On Ubuntu systems, to change the hostname:
sudo hostnamectl set-hostname newNameHere
Also,
/etc/hosts
should be edited to replace any occurrences of the old hostname with the new one. Then reboot. (Read about this method here.)

No comments: