|
发表于 2020-6-12 10:04:01
只看该作者
板凳
经测试确定上述现象是由于创建的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) |
|