LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2018|回复: 2

mtd/nand怎么mount/测试?

[复制链接]
发表于 2006-8-29 10:38:26 | 显示全部楼层 |阅读模式
内核是2.4.19的,文件系统在pc上,通过nfs挂载。
内核启动时的提示信息:

NOW, Booting Linux......
Uncompressing Linux........................................................ done, booting the kernel.

SmartMedia card inserted.
NAND device: Manufacture ID: 0xec, Chip ID: 0x73 (Samsung KM29U128T)
Creating 2 MTD partitions on "Samsung KM29U128T":
0x00000000-0x00100000 : "AT91 NAND partition 1, kernel"
0x00100000-0x01000000 : "AT91 NAND partition 2, filesystem"

说明nand 的ID 是可以读到的,
板上所用nand 是三星k9f2808, ID正是0xec, 0x73。

-sh-2.05b# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "Bootloader"
mtd1: 00100000 00020000 "Kernel"
mtd2: 00e80000 00020000 "Filesystem"
mtd3: 00100000 00004000 "AT91 NAND partition 1, kernel"
mtd4: 00f00000 00004000 "AT91 NAND partition 2, filesystem"

这里也是对的。

执行
#mount /dev/mtdblock3 /mnt/nand

结果:

。。。。。。。。。。。。。。。。
(此处还有很多行)
。。。。。。。。。。。。。。。。。
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000f8000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc000: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc004: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc008: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc00c: 0xff67 instead
jffs2_scan_empty(): Empty block at 0x000fc010 ends at 0x000fc200 (with 0x07070707)! Marking dirty
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc200: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc204: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc208: 0x0707 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000fc20c: 0xf767 instead
jffs2_scan_empty(): Empty block at 0x000fc210 ends at 0x000fc400 (with 0x07070707)! Marking dirty
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000fc000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
mount: Mounting /dev/mtdblock3 on /mnt/nand failed: Invalid argument

ERRORS
WHY?
怎么办啊?

另外,测试nand 的工具谁有阿,给一个吧。
E-mail:dtjaaafff@163.com;
在ubuntu 下搜到一个mtd-tools, 谁会用啊?
发表于 2006-8-31 15:16:43 | 显示全部楼层
nand的文件格式没选对,
如用mount -t yaffs/jffs2 /dev/mtdblock3 /mnt/mtd
回复 支持 反对

使用道具 举报

发表于 2006-11-7 10:20:13 | 显示全部楼层
老大,你的nandflash用的是什么文件系统啊,yaffs吗?
我的邮箱sjd198212252hotmail.com很想和你讨论一下啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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