|
我在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 |
|