Raspberry Pi: Enable USB boot

The most common way to boot a Raspberry Pi is usually to use an SD card, however, in some cases it may be useful to boot a Raspberry Pi from a USB instead of the traditional SD card.

To do this, we must load a Bootloader to our Raspberry through an SD card, the simplest way to do this is to use Raspberry Pi Imager which you can download from the official website or install with apt install rpi-imager if you use Ubuntu or other Debian based system.

The interface is quite simple and intuitive:

Screenshot of the Raspberry Pi Imager interface

To start we must select the CHOOSE OS option and the following menu will open:

Screenshot of Raspberry Pi Imager's OS option menu

Here we must find and select the Misc utility images option:

Screenshot of the option Misc Utility Images of Raspberry Pi Imager

Next we select the Bootloader option:

Screenshot of Raspberry Pi Imager Bootloader option

Once here we can select the different Bootloaders available, in this case we want to enable the boot opr USB so we will select the USB Boot option.

Screenshot of the USB Boot option of Raspberry Pi Imager

Once this is done, the Operating System section will show USB BOOT as selected and we can proceed to select the storage where to save the image:

Screenshot of Raspberry Pi Imager USB Boot option selected

Once both the Operating System and Storage options are selected, we can proceed to select WRITE to save the bootloader to the SD card. Once this is done, we will have to wait until the image writing and verification process is finished.

Screenshot of the progress of writing the USB bootloader with Raspberry Pi Imager

Once finished, the following message should appear:

Screenshot at the end of the USB Bootloader writing with Raspberry Pi Imager

Now we simply put the SD card in the Raspberry Pi and connect it to the power supply. Nothing else is needed, just wait a minute or two until a green light starts blinking periodically. This means that the new bootloader firmware has been successfully flashed on our raspberry and we can remove the SD card and boot the Raspberry from an USB drive.