tina sdk 下ubuntu分配根文件系统分区大于4G时,启动无法挂载成功
-
环境:
emmc:8G
平台:r818
系统:tina + ubuntu现象描述:
当挂载的rootfs.img小于4G时,系统可以正常启动;当rootfs.img大于4G时,系统开机卡在挂载根文件系统系统阶段。目前给的分区大小:
[partition] name = rootfs size = 10485760 # 5G大小 downloadfile = "rootfs.fex" user_type = 0x8000
打包rootfs.img为4.9G大小:
creating img file, wait... 记录了5000+0 的读入 记录了5000+0 的写出 5242880000 bytes (5.2 GB, 4.9 GiB) copied, 13.2979 s, 394 MB/s [sudo] dzh 的密码: mke2fs 1.44.1 (24-Mar-2018) 丢弃设备块: 完成 创建含有 1280000 个块(每块 4k)和 320000 个inode的文件系统 文件系统UUID:1f080f91-343c-414a-bea9-d1d0933daab1 超级块的备份存储于下列块: 32768, 98304, 163840, 229376, 294912, 819200, 884736 正在分配组表: 完成 正在写入inode表: 完成 创建日志(16384 个块) 完成 写入超级块和文件系统账户统计信息: 已完成 img file ----- ok! copy file to img,wait... mnt: bin boot dev etc home lib lost+found media mnt opt proc root run sbin srv sys tmp usr var copy file ----- ok! -rw-rw-r-- 1 dzh dzh 4.9G Sep 30 16:32 rootfs.img =============== filesystem: rootfs.img created ==============
打包烧录到平台上时,报错如下:
[ 4.636292] ALSA device list: [ 4.639640] #0: audiocodec [ 4.644789] EXT4-fs (mmcblk0p5): couldn't mount as ext3 due to feature incompatibilities [ 4.657225] JBD2: no valid journal superblock found [ 4.662736] EXT4-fs (mmcblk0p5): error loading journal [ 4.669618] EXT2-fs (mmcblk0p5): error: couldn't mount because of unsupported optional features (2c0) [ 4.682958] EXT4-fs (mmcblk0p5): couldn't mount as ext3 due to feature incompatibilities [ 4.692129] plugin --> switch:1 [ 4.699038] JBD2: no valid journal superblock found [ 4.704546] EXT4-fs (mmcblk0p5): error loading journal [ 4.711452] EXT2-fs (mmcblk0p5): error: couldn't mount because of unsupported optional features (2c0) [ 4.724335] List of all partitions: [ 4.728285] b300 7634944 mmcblk0 driver: mmcblk [ 4.734302] b301 256 mmcblk0p1 a0085546-4166-744a-a353-fca9272b8e45 [ 4.742949] b302 512 mmcblk0p2 a0085546-4166-744a-a353-fca9272b8e46 [ 4.751387] b303 512 mmcblk0p3 a0085546-4166-744a-a353-fca9272b8e47 [ 4.759827] b304 15360 mmcblk0p4 a0085546-4166-744a-a353-fca9272b8e48 [ 4.768261] b305 5242880 mmcblk0p5 a0085546-4166-744a-a353-fca9272b8e49 [ 4.776695] b306 25600 mmcblk0p6 a0085546-4166-744a-a353-fca9272b8e4a [ 4.785129] b307 256 mmcblk0p7 a0085546-4166-744a-a353-fca9272b8e4b [ 4.793563] 103:00000 2328559 mmcblk0p8 a0085546-4166-744a-a353-fca9272b8e4c [ 4.802006] b318 512 mmcblk0rpmb (driver?) [ 4.807901] b310 4096 mmcblk0boot1 (driver?) [ 4.813902] b308 4096 mmcblk0boot0 (driver?) [ 4.819890] No filesystem could mount root, tried: ext3 ext4 ext2 squashfs vfat msdos ntfs [ 4.829361] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,5) [ 4.838857] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.9.191 #405 [ 4.845805] Hardware name: sun50iw10 (DT) [ 4.850312] Call trace: [ 4.853070] [<ffffff8008087938>] dump_backtrace+0x0/0x204 [ 4.859142] [<ffffff8008087b50>] show_stack+0x14/0x1c [ 4.864826] [<ffffff80082904ec>] dump_stack+0x88/0xb0 [ 4.870511] [<ffffff800811131c>] panic+0x120/0x310 [ 4.875901] [<ffffff8008911228>] mount_block_root+0x21c/0x2e4 [ 4.882362] [<ffffff8008911360>] mount_root+0x70/0x80 [ 4.888043] [<ffffff80089114e0>] prepare_namespace+0x170/0x180 [ 4.894603] [<ffffff8008910e34>] kernel_init_freeable+0x150/0x18c [ 4.901459] [<ffffff80086ef06c>] kernel_init+0x10/0xf8 [ 4.907238] [<ffffff8008083180>] ret_from_fork+0x10/0x50 [ 4.913209] SMP: stopping secondary CPUs [ 4.917624] Kernel Offset: disabled [ 4.921555] Memory Limit: none [ 4.925005] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,5)
请问有人遇到过这种吗,大佬们有没有解决思路提供啊
-
@duanzhh 一般来说大镜像是使用overlayfs的方法而不是固定容量
另外:
[ 4.644789] EXT4-fs (mmcblk0p5): couldn't mount as ext3 due to feature incompatibilities [ 4.657225] JBD2: no valid journal superblock found [ 4.662736] EXT4-fs (mmcblk0p5): error loading journal [ 4.669618] EXT2-fs (mmcblk0p5): error: couldn't mount because of unsupported optional features (2c0) [ 4.682958] EXT4-fs (mmcblk0p5): couldn't mount as ext3 due to feature incompatibilities [ 4.692129] plugin --> switch:1 [ 4.699038] JBD2: no valid journal superblock found [ 4.704546] EXT4-fs (mmcblk0p5): error loading journal [ 4.711452] EXT2-fs (mmcblk0p5): error: couldn't mount because of unsupported optional features (2c0)
检查下是不是rootfs.img镜像也有问题
-
@yuzukitsuru 感谢大佬 ,昨天按照你的指示检查了一下,rootfs.img确实有问题,需要额外加一句调整分区的指令才可以;后面得空再研究如何使用overlayfs,特别感谢
-
@duanzhh 在 tina sdk 下ubuntu分配根文件系统分区大于4G时,启动无法挂载成功 中说:
调整分区的指令
这个额外的“调整分区的指令”指的是? -
@daizebin 我使用的时resize2fs这个指令调整文件系统分区大小的
-
-
大佬,你是把Tina的OpenWRT替换成了Ubuntu操作系统吗?
-
请问大佬这个怎么替换?是直接在pack的时候把rootfs.img换掉还是在之前就事先换掉?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号