Chapter 4 #
Boot your Raspi from USB memory stick or SSD drive. #
This chapter will show you can boot from a USB memory stick instead of using a micro-SD card.
The reason you might want to do this is because it has been known that a micro-SD card has a limited number of writes before it wears out. (I personally have never had this happen to me.) A USB stick also comes in a larger size even though the capacity of the micro-SD cards is also increasing.
There will be 2 different methods as models 2 & 3 use one procedure and the model 4 uses a different one. Before using either of these setups I would suggest that you create a USB memory stick using the Raspberry Pi Imager as shown in Chapter 3.
Model 4 Setup #
The first thing you should do is an upgrade of your system by entering the following sudo apt update then sudo apt full-upgrade and finally sudo reboot.This will update/upgrade all newer files to your system including the rpi-eeprom package.**
+———————————————————————–+ | Generally speaking, doing this regularly will keep your installation | | up to date for the particular major Raspberry Pi OS release you are | | using (e.g. Stretch). It will not update from one major release to | | another, for example, Stretch to Buster. | | | | However, there are occasional changes made in the Foundation's | | Raspberry Pi OS image that require manual intervention, for example a | | newly introduced package. These are not installed with an upgrade, as | | this command only updates the packages you already have installed. | | | | Bootloader updates are performed by rpi-eeprom-update service | | provided by the rpi-eeprom package. This service runs at boot and | | updates the bootloader at the next reboot if a new production release | | is available. The service automatically migrates the current boot | | settings to the new bootloader release. | +———————————————————————–+
From Chapter 3 use the Raspberry Pi Imager and scroll down on the first page and select the Misc Utility Images option to create a micro-SD card with the latest Raspberry Pi 4 EEPROM boot recovery image.
To view the current EEPROM configuration: enter rpi-eeprom-config
Models 2B 1.2 and 3B Setup
While in terminal mode enter the following code: echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt This will append the first part to the /boot/config.txt file on your micro-SD card. Then enter sudo reboot and when it is completed rebooting enter vcgencmd otp_dump | grep 17: which should respond with **17:3020000a. If you see this number it means that the **echo command from above has taken. If it shows anything else then it has not taken so you should try again. Instead of the echo command you can open a file editor and enter the command manually. Enter sudo nano /boot/config.txt, scroll to the bottom of the file and enter program_usb_boot_mode=1. If you want to use this same micro-SD card on another computer without that computer using a USB to boot from remember to remove the line you just entered before putting it in the other computer.