天嵌 ARM开发社区

 找回密码
 注册
查看: 2970|回复: 2

求助!!cramfs问题

[复制链接]
mobilefzb 发表于 2011-8-31 21:29:40 | 显示全部楼层 |阅读模式
我用命令mkfs.cramfs root rootfs.cramfs制作的文件映像linux内核挂载错误
VFS: Mounted root (cramfs filesystem) readonly on device 31:0.
Freeing init memory: 128K
cramfs: bad compressed blocksize 4293774996
cramfs: bad compressed blocksize 4293774996
Failed to execute /init.  Attempting defaults...
cramfs: bad compressed blocksize 4294960204
cramfs: bad compressed blocksize 4294960204
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
See Linux Documentation/init.txt for guidance.
[<c003899c>] (unwind_backtrace+0x0/0xec) from [<c02fb03c>] (panic+0x5c/0x184)
[<c02fb03c>] (panic+0x5c/0x184) from [<c0028590>] (init_post+0xa0/0xc4)
[<c0028590>] (init_post+0xa0/0xc4) from [<c0008444>] (kernel_init+0x100/0x138)
[<c0008444>] (kernel_init+0x100/0x138) from [<c0034694>] (kernel_thread_exit+0x0
/0x8)
不知道cramfs 对2K页支持如何…………
我使用如下命令烧写映像
nand write 30008000 0 124000

NAND write: device 0 offset 0x0, size 0x124000
1196032 bytes written: OK
这个在mtd层驱动实现了ECC的硬件校验,uboot和linux都实现了一遍,应该是兼容的,没有报ECC错误的情况而且jffs2文件系统挂载成功,只是垃圾回收部分有点问题,如果使用fdisk -l之类的命令会造成nand flash写保护而无法进行操作的奇怪问题。
 楼主| mobilefzb 发表于 2011-9-1 22:29:31 | 显示全部楼层
我想问问大家有没有在256MB的2K页Nand Flash上使用其cramfs文件系统的,内核版本是多少。我想来想去应该不是读写ECC失败造成的,因为之前JFFS2文件系统就已经遇见这个问题,然后调试后已经挂载其JFFS2文件系统了。还请指教下!!谢谢!!!
亚瑟王 发表于 2011-10-17 16:17:20 | 显示全部楼层
cramfs不区分Nand的页大小的,我是由于理解的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-3 05:58 , Processed in 1.031250 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表