How to boot the Raspberry Pi system from a USB Mass Storage Device All In One
如何从 USB 启动树莓派引导系统 / 如何从 USB 大容量存储设备启动 Raspberry Pi 系统
Raspberry Pi 4 Boot Flow
- First Stage Bootloader
- Second Stage Bootloader
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-boot-flow

BOOT_ORDER

0xf14 Try USB first, followed by SD then repeat ✅

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER
Conditional filters
[all]

https://www.raspberrypi.com/documentation/computers/config_txt.html#conditional-filters
officail documents
USB Mass Storage Boot
This page explains how to boot your Raspberry Pi from a USB mass storage device such as a flash drive or a USB hard disk.
本页介绍如何从 USB 大容量存储设备(例如闪存驱动器或 USB 硬盘)启动 Raspberry Pi。
The bootloader in Raspberry Pi 400 and newer Raspberry Pi 4B boards support USB boot by default, although the BOOT_ORDER bootloader configuration may need to be modified.
Raspberry Pi 400 和较新的 Raspberry Pi 4B 板中的引导加载程序默认支持 USB 引导,但可能需要修改 BOOT_ORDER 引导加载程序配置。
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot
EEPROM Configuration

手动刷入系统镜像,并修改配置文件 🚀
简单方便,亲测有效,推荐方式 ✅

- 设置开机,自动开启
SSH
ssh
创建一个空的 ssh 文件, 文件没有扩展名,放到 U 盘根目录下
- 配置默认的
Wi-Fi信息
wpa_supplicant.conf

- 配置 SSH 登录的
用户名和密码
userconf.txt

pi
raspberry => 加密后 /4g6TptuTP5B6
- 配置 bootloader 的
启动模式
config.txt
otg_mode=1 ✅

- SD Card
- USB Disk
solutions
changing the
boot mode/ 更改启动模式
warnings ⚠️⚠️⚠️ (太麻烦了,不推荐)
- U 盘必须要使用
FAT32格式,最大支持 32 GB - 树莓派需先要插入一个烧录了树莓派系统的
SD 卡,才能修改启动模式💩 - 树莓派需要
有线网络连接,用于从网络下载镜像到 U 盘中 💩💩 - 树莓派需要连接
鼠标、键盘,用于U 盘启动后,从网络的安装镜像到 U 盘中 💩💩💩


- Raspberry Pi Imager (GUI 可视化操作)
Using
Raspberry Pi Imagerto update thebootloader
This is the recommended route to updating the bootloader.
这是更新引导加载程序的推荐途径。
steps:
-
DownloadRaspberry Pi Imager -
Select a
spareSD card. The contents will getoverwritten! -
LaunchRaspberry Pi Imager -
Select
Misc utility imagesunder Operating System -
Select
Bootloader -
Select a
boot-modei.e. SD Card Boot (recommended),USB Bootor Network Boot. -
Select SD card and then
Write -
Bootthe Raspberry Pi withthe new imageandwait forat least10 seconds. -
The
green activity LEDwill blink with asteady patternand theHDMI displaywill begreenon success. -
Power offthe Raspberry Pi andremovethe SD card.





https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#imager
- raspi-config (交互式命令行操作)
-
UpdateRaspberry Pi OS to getthe latest versionof therpi-eeprompackage. -
Run
sudo raspi-config -
Select
AdvancedOptions -
Select
BootloaderVersion -
Select
Defaultfor factory default settings orLatestfor the latest stable bootloader release. -
Reboot
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspi-config
other useful commands
temperature
demos
64GB USB Diskbootloader ✅
Updating and Upgrading Raspberry Pi OS
- APT
- apt-get
https://www.raspberrypi.com/documentation/computers/os.html#updating-and-upgrading-raspberry-pi-os
Playing Audio and Video
- VLC
- OMXPlayer
https://www.raspberrypi.com/documentation/computers/os.html#playing-audio-and-video
Using a USB webcam
https://www.raspberrypi.com/documentation/computers/os.html#using-a-usb-webcam
refs
https://www.raspberrypi.com/news/pi-3-booting-part-i-usb-mass-storage-boot/
https://www.cnblogs.com/xgqfrms/p/17436522.html#5180599
vcgencmd
https://www.cnblogs.com/xgqfrms/p/17303351.html
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!