squashfs 文件系统使用问题

yanjinbin 2016-09-30 05:20:48
我使用的是一个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/0x178)

RAMDISK: Loading 1823KiB [1 disk] into ram disk... done. 这个说明ramdisk加载成功了。
No filesystem could mount root, tried: squashfs 这里提示无法找到squashfs
奇怪了,有人遇到过这样的问题吗。谢谢。
...全文
3054 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
b3388411 2017-09-22
  • 打赏
  • 举报
回复
squashfs文件所在的block分区存在坏块,会导致mount失败, 解决方案:查找中......
yanjinbin 2016-10-10
  • 打赏
  • 举报
回复 1
在的,同样的文件系统我用cramfs挂载是成功的。 但是换成squashfs就不行。
cocoabird 2016-10-04
  • 打赏
  • 举报
回复
/bin,/sbin 这几个目录里有这个吗

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧