d1s下的overlays挂载问题,提示“No such device”
-
D1S 无法挂载overlays,开机打印如下
Starting kernel ... [01.717][mmc]: mmc exit start [01.736][mmc]: mmc 2 exit ok mount: mounting none on /dev failed: Device or resource busy mount: mounting /dev/by-name/rootfs_data on /overlay failed: No such device Mount Failed: formating /dev/by-name/rootfs_data to ext4 ... mke2fs 1.46.4 (18-Aug-2021) mount: mounting /dev/by-name/rootfs_data on /overlay failed: No such device Didn't found ubi volume "env" Cannot open /dev/ubi0: No such file or directory Didn't found ubi volume "env-redund" Cannot open /dev/ubi0: No such file or directory mkdir: can't create directory '/overlay/upper': Read-only file system mkdir: can't create directory '/overlay/workdir': Read-only file system mount: mounting overlayfs:/overlay on /mnt failed: No such file or directory mount: mounting /proc on /mnt/proc failed: No such file or directory pivot_root: No such file or directory mount: mounting /rom/dev on /dev failed: No such file or directory mount: mounting /rom/tmp on /tmp failed: No such file or directory mount: mounting /rom/sys on /sys failed: No such file or directory mount: mounting /rom/overlay on /overlay failed: No such file or directory can't run '/etc/preinit': No such file or directory mount: mounting proc on /proc failed: Device or resource busy mount: mounting tmpfs on /run failed: No such file or directory hostname: can't open '/etc/hostname': No such file or directory ------run rc.preboot file----- mke2fs 1.46.4 (18-Aug-2021) ------run rc.modules file----- ------run rc.final file----- ifconfig: SIOCGIFFLAGS: No such device sh: write error: No such device host_chose finished! nice: can't execute '/usr/bin/story_ota_bin': No such file or directory device_chose finished!
在贴吧也搜索到类似的问题,都是修改base-file里的文件,但是我是使用的busybox-init, 都找不到对应的fstat文件,感觉分区设置好像有问题,太蔡了,求大哥指点,以下pack的log
jie.cao@umr940:~/f133A/f133$ pack --==========-- PACK_CHIP sun20iw1p1 PACK_PLATFORM tina PACK_BOARD f133-evb1 PACK_KERN PACK_DEBUG uart0 PACK_SIG none PACK_SECURE none PACK_MODE normal PACK_FUNC android PACK_PROGRAMMER none PACK_TAR_IMAGE none PACK_TOPDIR /homeB/jie.cao/f133A/f133 --==========-- No kernel param, parse it from f133 copying tools file copying configs file storage_type value is 2 rm /homeB/jie.cao/f133A/f133/out/f133-evb1/image/sys_partition_nor.fex rm /homeB/jie.cao/f133A/f133/out/f133-evb1/image/image_nor.cfg copying boot resource copying boot file make user resource for : /homeB/jie.cao/f133A/f133/out/f133-evb1/image/sys_partition.fex handle partition user-res no user resource partitions APP_PART_DOWNLOAD_FILE = /homeB/jie.cao/f133A/f133/out/f133-evb1/image/app.fex Need size of filesystem no data resource partitions don't build dtbo ... update_chip sboot file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sboot.bin script file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sys_config.bin update:unable to open sboot file script update sboot ok pack boot package GetPrivateProfileSection read to end content_count=3 LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk --mkenvimage create redundant env data!-- ---redundant env data size 0x20000--- packing for tina linux normal mbr count = 4 partitation file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sys_partition.bin mbr_name file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sunxi_mbr.fex download_name file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/dlinfo.fex mbr size = 16384 mbr magic softw411 disk name=boot-resource disk name=env disk name=env-redund disk name=boot disk name=rootfs disk name=recovery disk name=rootfs_data this is not a partition key update_for_part_info 0 crc 0 = 9632c2e2 crc 1 = 38f93bf crc 2 = 66396619 crc 3 = f3843744 gpt_head->header_crc32 = 0xac1db3f8 GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: 12000 121f7 GPT:env : 121f8 123ef GPT:env-redund : 123f0 125e7 GPT:boot : 125e8 157e7 GPT:rootfs : 157e8 229e7 GPT:recovery : 229e8 27767 GPT:rootfs_data : 27768 29f67 GPT:UDISK : 29f68 ffffffde update gpt file ok update mbr file ok temp = 20 mbr count = 4 total_sectors = 15269888 logic_offset = 40960 partitation file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sys_partition.bin mbr_name file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/sunxi_mbr.fex download_name file Path=/homeB/jie.cao/f133A/f133/out/f133-evb1/image/dlinfo.fex mbr size = 16384 mbr magic softw411 disk name=boot-resource disk name=env disk name=env-redund disk name=boot disk name=rootfs disk name=recovery disk name=rootfs_data this is not a partition key update_for_part_info 0 crc 0 = 9632c2e2 crc 1 = 38f93bf crc 2 = 66396619 crc 3 = f3843744 gpt_head->header_crc32 = 0x36191a6a GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: 12000 121f7 GPT:env : 121f8 123ef GPT:env-redund : 123f0 125e7 GPT:boot : 125e8 157e7 GPT:rootfs : 157e8 229e7 GPT:recovery : 229e8 27767 GPT:rootfs_data : 27768 29f67 GPT:UDISK : 29f68 e8ffde update gpt file ok update mbr file ok ==================================== show "sys_partition_for_dragon.fex" message ------------------------------------ [mbr] mbr_size : 16384 Kbyte ------------------------------------ partition_name : boot-resource partition_size : 504 downloadfile : boot-resource.fex boot-resource.fex size : 80K byte ------------------------------------ partition_name : env partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : env-redund partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : boot partition_size : 12800 downloadfile : boot.fex boot.fex -> /homeB/jie.cao/f133A/f133/out/f133-evb1/boot.img boot.img size : 5.8M byte ------------------------------------ partition_name : rootfs partition_size : 53760 downloadfile : rootfs.fex rootfs.fex -> /homeB/jie.cao/f133A/f133/out/f133-evb1/rootfs.img rootfs.img size : 16M byte ------------------------------------ partition_name : recovery partition_size : 19840 ------------------------------------ partition_name : rootfs_data partition_size : 10240 ------------------------------------ /homeB/jie.cao/f133A/f133/out/host/bin/ /homeB/jie.cao/f133A/f133/out/f133-evb1/image Begin Parse sys_partion.fex Add partion boot-resource.fex BOOT-RESOURCE_FEX Add partion very boot-resource.fex BOOT-RESOURCE_FEX FilePath: boot-resource.fex FileLength=14000Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion boot.fex BOOT_FEX00000000 Add partion very boot.fex BOOT_FEX00000000 FilePath: boot.fex FileLength=5b4800Add partion rootfs.fex ROOTFS_FEX000000 Add partion very rootfs.fex ROOTFS_FEX000000 FilePath: rootfs.fex FileLength=fc0000BuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is for nand/emmc---------- ----------image is at----------
-
@casojie
overlayfs挂载失败是因为分区没有格式化,分区挂载失败,只读文件系统没法创建必要的文件夹,最终导致overlayfs挂载失败的吧这个帖子里好像有挂载的方法
芒果d1h用sd卡烧录后创建文件夹一直Read-only file system -
@suncw 我不是很明白,根目录下是有overlay文件夹的,它应该不需要创建文件夹了吧,而我也尝试手动挂载,也是提示
root@TinaLinux:/# mount -t ext4 -o sync,data=journal /dev/by-name/rootfs_data /o verlay/ mount: mounting /dev/by-name/rootfs_data on /overlay/ failed: No such device
我也尝试执行
root@TinaLinux:/# mkfs.ext4 /dev/by-name/rootfs_data mke2fs 1.46.4 (18-Aug-2021) /dev/by-name/rootfs_data contains a ext4 file system created on Thu Jan 1 08:07:28 1970 Proceed anyway? (y,N) y Discarding device blocks: done Creating filesystem with 5120 1k blocks and 1280 inodes Allocating group tables: done Writing inode tables: done Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: done
仍然不行,唉
-
@casojie
overlayfs挂载除了overlay文件夹还要依赖其他文件夹,比如upper、workdir。光看根目录下是有overlay文件夹可能不行。。。。。。帖子里提到的将根文件系统改为ext4格式和修改代码两种方式应该都可以正常挂载
或者您要是想手动格式的话,也可以在电脑上进行格式化,找u盘最后一个分区进行格式化
类似mkfs.ext4 /dev/sbd8设备上格式化应该也可以,但是可能不能自动挂载,可能需要重启一下
-
@suncw 抱歉,我还是不明白,我的设备是emmc存储,mkfs.ext4 在板子上是可以正常使用的,看完后我还是不知道应该怎么做,而且我使用的是busybox-init 对应的以下fsata文件都没有
-
@casojie
是使用了 rootfs_data 是否有这个 partition 呢
检查一下sys_partition.fex 吧,贴上来看看
报错提示你没有这个 /dev/by-name/rootfs_data ,极可能是 sys_partition.fex 没有这个分区信息。
你要自己加一下 ,如下,size 可以自己改[partition]
name = rootfs_data
size = 25600
user_type = 0x8000 -
@tevet 前几天解决了,谢谢回复
-
@casojie 请问是怎么解决的
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号