The Raspberry Pi is a great all-round kit capable of doing projects as diverse as controlling a media center for use as a broadcast radio. But it has one obvious drawback: the inability to boot from USB.
Well, it still is.
Getting Started: Install Raspbian and Add New Files
Log in (unless you changed your default credentials. ), then run the following commands which will replace the files
bootcode.bin default to the alternatives just loaded:
sudo apt-get update sudo BRANCH=next rpi-update
This update delivers two files to the directory
/boot . After downloading the files, switch to USB download mode with:
echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
This command adds a statement
program_usb_boot_mode=1 to the end of the file
You will need to reboot your Pi once this is done.
The next step is to verify that the OTP — One Time Programmable Memory — has been modified. Check it out with:
vcgencmd otp_dump | grep 17:
If the result is representative of the address
0x3020000a (for example,
17:3020000a ), so far so good. At this point, if you want to remove the line
program_usb_boot_mode=1 from a file
config.txt can you do this. The Pi now has USB boot enabled and you can use the same microSD card in another Raspberry Pi 3 with the same image, so removing the line is a good idea.
This is easy to do by editing
config.txt in nano:
sudo nano /boot/config.txt
Delete or comment out the corresponding line (preceded by #).
Prepare a bootable USB device
Next, plug the formatted (or ready to remove) USB stick into the spare port on the Raspberry Pi 3. After that, we will continue copying the OS.