树莓派4B刷Openwrt固件外接硬盘USB启动问题解决方案 您所在的位置:网站首页 电视dhcp设置失败怎么回事儿啊 树莓派4B刷Openwrt固件外接硬盘USB启动问题解决方案

树莓派4B刷Openwrt固件外接硬盘USB启动问题解决方案

#树莓派4B刷Openwrt固件外接硬盘USB启动问题解决方案| 来源: 网络整理| 查看: 265

树莓派4B刷Openwrt固件

此文是接上篇《树莓派4B刷Openwrt固件并设置旁路由教程》出现的问题的解决方法

三、刷入外接硬盘从USB启动的特别说明

刷外接硬盘启动是最大的一个坑,如果直接刷写硬件是无法启动的,会卡在vcc-sd:disabling这一行,这是因为该固件没有做外接硬盘启动的适配

在百度上找不到解决方法,Google到一个树莓派官方论坛的讨论,也是刷第三方系统无法用SSD进入的,给了我启发

In some posts I've come across the particular point at which the boot hung was an indication the system couldn't find the /root partition. That image won't work properly for USB booting because it mounts the SD card as /boot I'm still learning about the pi and although I've followed guides to edit fstab to mount external drives by UUID I've never appreciated what the first three lines of the file meant. Following this comment, I found the correct PARTUUIDs and edited fstab and cmdline.txt to reflect the correct /boot and root locations.

与这个讨论中所刷的第三方系统一样,Openwrt的固件没有对USB启动做适配。需要手动更改cmdline.txt。

四、最终解决办法

下载镜像后使用压缩软件打开或刷写进硬盘后,在电脑上编辑boot分区的cmdline.txt文件。更改其中root分区目录(本来是/dev/m...忘了),改为硬盘的root分区。如只挂了一个硬盘且无其他特殊情况,则为sda2:

console=serial0,115200 console=tty1 root=/dev/sda2 rootfstype=squashfs,ext4 rootwait

接下来便可以正常启动系统了

本站附件分享,如果附件失效,可以去找找看

诚通网盘附件、百度网盘附件

饿了么红包

饿了么红包



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有