【求助】按官网步骤备份根文件系统img,下载成功后无法进入桌面界面
操作步骤:1.下载官网提供的系统AIO-3399J-UBUNTU18.04-GPT-20200516-1304.img到AIO-3399J开发板上;2.按官网链接http://wiki.t-firefly.com/zh_CN/AIO-3399J/ubuntu_support.html,连上PC虚拟机Ubuntu18.04系统,备份生成rootf2.img文件;3.查询设备分区表,确定rootfs的下载地址为0x0005A000,将生成的rootf2.img下载到板子上;4。重启开发板,显示屏未能进入桌面界面;(只进入命令界面,该命令界面可以正常输入命令操作。)验证原固件:1.将AIO-3399J-UBUNTU18.04-GPT-20200516-1304.img解包出rootfs.img文件;2.将rootfs.img按照上述方式下载到地址0x0005A000,重启正常进入桌面界面。验证功能都正常。
对比可以确定应该是备份的rootf2.img文件有问题,求大神分析为什么按官网步骤生成的文件有问题??? 这个论坛一个人都没有吗? 经测试确定上述现象是由于创建的linuxrootfs.img空间不够,导致备份根文件系统不全。按下面步骤扩大空间,经测试仍然无法进入桌面界面
测试方法二:
1.命令dd if=/dev/zero of=linuxroot.img bs=1M count=6000,创建6000大小的img;
2.按官网步骤重新生成linuxrootfs.img;
3.下载该文件到开发板。
现象:
1、仍然无法桌面系统;
2.串口输出
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[ 4.841480] EXT4-fs (mmcblk0p7): bad geometry: block count 998148 exceeds size of device (804800 blocks)
mount: mounting /dev/mmcblk0p7 on /root failed: Invalid argument
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... Warning: overlayroot: configuring overlayroot with driver=overlay mode=device opts='dev=PARTLABEL=userdata,fstype=ext4,mkfs=1' per kernel cmdline
[ 4.917242] EXT4-fs (mmcblk0p8): recovery complete
[ 4.917736] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
mount: mounting /root on /root-ro failed: Invalid argument
Failure: overlayroot: failed to move root away from /root to /root-ro
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
Warning: Something odd, no /lib/modules/4.4.179 in initramfs.
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.
BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3.2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) parameter.txt预留给rootfs的空间不足 penguin 发表于 2020-6-13 10:28
parameter.txt预留给rootfs的空间不足
{:4_105:}非常感谢大神,我算了下镜像文件的大小,重新修改parameter.txt文件,终于好了 penguin 发表于 2020-6-13 10:28
parameter.txt预留给rootfs的空间不足
我从官网提供的镜像文件解包出rootfs.img大小只有2.9G,但是安装完系统后通过rsync备份根文件生成的img有3.9G,大小相差很大。将上面的两个镜像分别下载对比,占用空间也相差很大,
理论上应该是一样的,为什么相差这么大? 楼主你好,我创建的rootfs.img有2.9G,parameter.txt文档给rootfs分区留的是6个G的空间,为什么也是进不了系统界面呢,卡在开机界面一页,并且串口下会出现紧急模式
页:
[1]