QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2923|回复: 1

在AT9200上实现nand的文件系统的问题

[复制链接]
发表于 2006-9-30 16:59:43 | 显示全部楼层 |阅读模式
我在at91rm9200上做MTD,在nand flash上移植jffs2的文件系统。在执行eraseall mtd0时正确,在执行# cp jffs2.img /dev/mtd0
时显示下面的错误,我不知道什么原因?请高人指点一下。
MTD_open
MTD_ioctl
MTD_write
nand_write_ecc: Attempt to write not page aligned data
MTD_close
cp: unable to close `/dev/mtd0': Invalid argument



下面是内核启动信号:



physmap flash device: 8000000 at 40000000



NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)



Scanning device for bad blocks



Bad eraseblock 0 at 0x00000000



Bad eraseblock 1 at 0x00020000



Bad eraseblock 512 at 0x04000000



Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":



0x00000000-0x00200000 : "at91rm9200 nand flash partition 1"



mtd: Giving out device 0 to at91rm9200 nand flash partition 1



0x00200000-0x08000000 : "at91rm9200 nand flash partition 2"



mtd: Giving out device 1 to at91rm9200 nand flash partition 2



usbmon: debugs is not available



ohci_hcd (AT91RM9200) at 0x00300000, irq 23



at91rm9200-ohci at91rm9200-ohci: new USB bus registered, assigned bus number 1




请高人指点一下,先谢谢了。



[email protected]



QQ:282959341
发表于 2006-10-2 22:21:24 | 显示全部楼层
这个没仔细研究过
goolge吧
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-18 15:43 , Processed in 0.057769 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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