Firefly开源社区

打印 上一主题 下一主题

[Linux] 【求助】按官网步骤备份根文件系统img,下载成功后无法进入桌面界面

51

积分

0

威望

0

贡献

技术小白

积分
51

【求助】按官网步骤备份根文件系统img,下载成功后无法进入桌面界面

发表于 2020-6-11 15:09:23      浏览:5152 | 回复:6        打印      只看该作者   [复制链接] 楼主
操作步骤: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文件有问题,求大神分析为什么按官网步骤生成的文件有问题???

1.jpg (83.16 KB, 下载次数: 137)

1.jpg

2.png (92.72 KB, 下载次数: 144)

2.png

3.jpg (69.03 KB, 下载次数: 131)

3.jpg
回复

使用道具 举报

51

积分

0

威望

0

贡献

技术小白

积分
51
发表于 2020-6-12 09:56:02        只看该作者  沙发
这个论坛一个人都没有吗?
回复

使用道具 举报

51

积分

0

威望

0

贡献

技术小白

积分
51
发表于 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)
回复

使用道具 举报

781

积分

2

威望

4

贡献

技术大神

Rank: 3Rank: 3

积分
781
发表于 2020-6-13 10:28:59        只看该作者  地板
parameter.txt预留给rootfs的空间不足
回复

使用道具 举报

51

积分

0

威望

0

贡献

技术小白

积分
51
发表于 2020-6-15 10:44:08        只看该作者  5#
penguin 发表于 2020-6-13 10:28
parameter.txt预留给rootfs的空间不足

非常感谢大神,我算了下镜像文件的大小,重新修改parameter.txt文件,终于好了
回复

使用道具 举报

51

积分

0

威望

0

贡献

技术小白

积分
51
发表于 2020-6-15 10:52:31        只看该作者  6#
penguin 发表于 2020-6-13 10:28
parameter.txt预留给rootfs的空间不足

我从官网提供的镜像文件解包出rootfs.img大小只有2.9G,但是安装完系统后通过rsync备份根文件生成的img有3.9G,大小相差很大。将上面的两个镜像分别下载对比,占用空间也相差很大,

理论上应该是一样的,为什么相差这么大?
回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2021-1-6 11:36:17        只看该作者  7#
楼主你好,我创建的rootfs.img有2.9G,parameter.txt文档给rootfs分区留的是6个G的空间,为什么也是进不了系统界面呢,卡在开机界面一页,并且串口下会出现紧急模式
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表