树莓派5/4B USB启动方法
树莓派更新固件
如果能进入树莓派终端,优先更新固件。如果无法进入终端,可以尝试直接修改配置文件进入,但不保证有效。
sudo apt update && sudo apt full-upgrade -y
sudo rpi-eeprom-update -a
sudo reboot
修改SD卡config.txt文件配置
在Bootfs中找到文件,添加位置参考下面代码位置。
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Enable audio (loads snd_bcm2835)
program_usb_boot_mode=1
usb_max_current_enable=1 #添加位置在这
从U盘启动
等待几分钟,就会和SD卡一样连接网络。