在nand flash上实现JFFS2根文件文件系统
[11-20 15:53:17] 来源:http://www.88dzw.com arm嵌入式 阅读:8533次
文章摘要:nand read.jffs2:读取Nand Flash相应区域的数据,如果NandFlash相应的区域有坏块,直接跳过坏块。具体的参考代码参看U-BOOT源码:common/cmd_nand.c文件。下载完JFFS2文件系统镜像后,需要把Linux内核NandFlash的驱动关于第二个分区的大小改为8M(和镜像一样大),否则会出现类似如下错误:Freeing init memory: 124KWarning: unable to open an initial console.Argh. Special inode #171 with mode 0xa1ff had more than on
在nand flash上实现JFFS2根文件文件系统,标签:arm嵌入式系统,arm系统,http://www.88dzw.comnand read.jffs2:读取Nand Flash相应区域的数据,如果NandFlash相应的区域有坏块,直接跳过坏块。
具体的参考代码参看U-BOOT源码:common/cmd_nand.c文件。
下载完JFFS2文件系统镜像后,需要把Linux内核NandFlash的驱动关于第二个分区的大小改为8M(和镜像一样大),否则会出现类似如下错误:
Freeing init memory: 124K
Warning: unable to open an initial console.
Argh. Special inode #171 with mode 0xa1ff had more than one node
Kernel panic: No init found. Try passing init= option to kernel.
Argh. Special inode #63 with mode 0xa1ff had more than one node
Returned error for crccheck of ino #63. Expect badness...
Argh. Special inode #67 with mode 0xa1ff had more than one node
Returned error for crccheck of ino #67. Expect badness...
Argh. Special inode #68 with mode 0xa1ff had more than one node
到此,一个JFFS2文件系统的镜像制作成功。可以启动系统并测试JFFS2的性能了
还有一种制作JFFS2文件系统镜像的方法,在制作镜像的参数中可以不加—pad选项,过程如下:
farsight#mkfs.jffs2 -r /source/rootfs -o rootfs.jffs2 -e 0x4000 -n
启动开发板烧写rootfs.jffs2镜像
FS2410#nand erase 200000 800000//(注意把整个存放文件系统的分区全部给擦除)。
FS2410#nand write.jffs2 30008000 200000 31a28c//(必须是rootfs.jffs2的实际大小。如果是你写成了4M,那么分区的其余部分JFFS2文件系统将无法识别)。
“www.88dzw.com提供”
《在nand flash上实现JFFS2根文件文件系统》相关文章
- › 在nand flash上实现JFFS2根文件文件系统
- 在百度中搜索相关文章:在nand flash上实现JFFS2根文件文件系统
- 在谷歌中搜索相关文章:在nand flash上实现JFFS2根文件文件系统
- 在soso中搜索相关文章:在nand flash上实现JFFS2根文件文件系统
- 在搜狗中搜索相关文章:在nand flash上实现JFFS2根文件文件系统