How to use MTD util: nandwrite

Wanghao.Yu at infineon.com Wanghao.Yu at infineon.com
Mon Sep 10 22:51:33 EDT 2007


Hi,
I met a problem when I used nandwrite to copy file to NandFlash.
The command I used is as follows.
#nandwrite /tmp/hello /dev/mtd0 (copy file named hello to /dev/mtd0)
The error message is 
MEMGETINFO: Inappropriate ioctl for device.
Before using nandwrite, I have already used "flash_eraseall -j /dev/mtd0" to erase the NandFlash.
I don't know where the problem is.
Could anyone help me?

Best Regards,

Yu Wanghao (Helen)
Component Verification
COM IFCX CV
Infineon Technologies
CV Lab,F3, Block A, No.38, Gaoxin 6th Road, 
Xi'an High-tech Industries Development Zone, 
Xi'an,  P.R.China 710075 
Tel.	+86 29 8832 8222 ext 8513
Fax 	+86 29 8831 7279
mailto:wanghao.yu at infineon.com




More information about the linux-mtd mailing list