免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1390 | 回复: 1
打印 上一主题 下一主题

[内核模块] squashfs 文件系统使用问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-09-30 17:22 |只看该作者 |倒序浏览
我使用的是一个128M nand flash,尝试使用squashfs做根文件系统,但是它不支持坏块,所以我想把它首先加载ramdisk中,在使用,现在挂载不上去。

详细说明:
  Linux版本:linux-2.6.39
uboot版本:u-boot-2015.01
开发板子内存大小:0x2000 0000 -0x2800 0000   ->128M

uboot中使用加载命令如:
bootcmd=nand read 0x25000000 0x200000 0x600000;nand read 0x26000000 0x800000 0x1000000; bootm 0x25000000   #将内核和文件系统读取到内存中
bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6m(kernel)ro,32m(rootfs),-(misc) initrd=0x26000000,0x02000000 root=/dev/ram rw rootfstype=squashfs init=/linuxrc
  
Linux启动最后打印信息如下:
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 1823KiB [1 disk] into ram disk... done.
List of all partitions:
1f00             256 mtdblock0  (driver?)
1f01             512 mtdblock1  (driver?)
1f02             256 mtdblock2  (driver?)
1f03             256 mtdblock3  (driver?)
1f04             256 mtdblock4  (driver?)
1f05             512 mtdblock5  (driver?)
1f06            6144 mtdblock6  (driver?)
1f07           32768 mtdblock7  (driver?)
1f08           90112 mtdblock8  (driver?)
No filesystem could mount root, tried:  squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
[<c0038db8>] (unwind_backtrace+0x0/0xe4) from [<c03a3a10>] (panic+0x50/0x17

RAMDISK: Loading 1823KiB [1 disk] into ram disk... done.  这个说明ramdisk加载成功了。
No filesystem could mount root, tried:  squashfs     这里提示无法找到squashfs
奇怪了,有人遇到过这样的问题吗。谢谢。

论坛徽章:
0
2 [报告]
发表于 2016-10-10 09:48 |只看该作者
同样的文件系统我尝试用cramfs挂载是成功的。
但是换成squashfs就不行,谁知道这是为什么。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP