How to use MTD util: nandwrite

Artem Bityutskiy dedekind at infradead.org
Tue Sep 11 04:44:59 EDT 2007


On Tue, 2007-09-11 at 10:51 +0800, Wanghao.Yu at infineon.com wrote:
> 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?

I last tried this a year ago and it worked. But I wouldn't be surprized
if someone broke the utility. So I'd suggest you to debug
nandwrite/kernel.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list