码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • How to boot the Raspberry Pi system from a USB Mass Storage Device All In One


    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

    1. First Stage Bootloader
    2. Second Stage Bootloader

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-boot-flow

    image

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration

    BOOT_ORDER

    image

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

    image

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER

    Conditional filters [all]

    image

    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

    https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/raspberry-pi/boot-msd.adoc

    EEPROM Configuration

    image

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#updating-the-eeprom-configuration

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration

    手动刷入系统镜像,并修改配置文件 🚀

    简单方便,亲测有效,推荐方式 ✅

    image

    1. 设置开机,自动开启 SSH

    ssh

    创建一个空的 ssh 文件, 文件没有扩展名,放到 U 盘根目录下

    1. 配置默认的 Wi-Fi 信息

    wpa_supplicant.conf

    image

    1. 配置 SSH 登录的用户名和密码

    userconf.txt

    image

    pi
    raspberry => 加密后 /4g6TptuTP5B6

    1. 配置 bootloader 的启动模式

    config.txt

    otg_mode=1 ✅

    image

    • SD Card
    • USB Disk

    solutions

    changing the boot mode / 更改启动模式

    warnings ⚠️⚠️⚠️ (太麻烦了,不推荐)

    • U 盘必须要使用 FAT32 格式,最大支持 32 GB
    • 树莓派需先要插入一个烧录了树莓派系统的 SD 卡,才能修改启动模式 💩
    • 树莓派需要有线网络连接,用于从网络下载镜像到 U 盘中 💩💩
    • 树莓派需要连接鼠标、键盘,用于U 盘启动后,从网络的安装镜像到 U 盘中 💩💩💩

    image

    image

    1. Raspberry Pi Imager (GUI 可视化操作)

    Using Raspberry Pi Imager to update the bootloader

    This is the recommended route to updating the bootloader.
    这是更新引导加载程序的推荐途径。

    steps:

    1. Download Raspberry Pi Imager

    2. Select a spare SD card. The contents will get overwritten!

    3. Launch Raspberry Pi Imager

    4. Select Misc utility images under Operating System

    5. Select Bootloader

    6. Select a boot-mode i.e. SD Card Boot (recommended), USB Boot or Network Boot.

    7. Select SD card and then Write

    8. Boot the Raspberry Pi with the new image and wait for at least 10 seconds.

    9. The green activity LED will blink with a steady pattern and the HDMI display will be green on success.

    10. Power off the Raspberry Pi and remove the SD card.

    image

    image

    image

    image

    image

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#imager

    1. raspi-config (交互式命令行操作)
    1. Update Raspberry Pi OS to get the latest version of the rpi-eeprom package.

    2. Run sudo raspi-config

    3. Select Advanced Options

    4. Select Bootloader Version

    5. Select Default for factory default settings or Latest for the latest stable bootloader release.

    6. Reboot

    https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspi-config

    other useful commands

    temperature

    demos

    64GB USB Disk bootloader ✅

    Updating and Upgrading Raspberry Pi OS

    1. APT
    1. apt-get

    https://www.raspberrypi.com/documentation/computers/os.html#updating-and-upgrading-raspberry-pi-os

    Playing Audio and Video

    1. VLC
    1. 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, 禁止转载 🈲️,侵权必究⚠️!


  • 相关阅读:
    mysql如何实现根据经纬度判断某一个坐标是否在一个多边形区域范围内
    c++中一种数据封装的技巧
    信息系统项目管理师第四版学习笔记——项目管理科学基础
    目标分类笔记(一): 利用包含多个网络多种训练策略的框架来完成多目标分类任务(从数据准备到训练测试部署的完整流程)
    css知识学习系列(17)-每天10个知识点
    计算机毕业设计Java银创科技有限公司人事信息系统(系统+程序+mysql数据库+Lw文档)
    AFPN:用于目标检测的渐近特征金字塔网络
    SpringBoot vue云办公系统
    【综合类型第 39 篇】HTTP 状态码详解
    太阳能充电板给锂电池充电电路设计
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/17437862.html
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号