DOC2000 flash: Do I miss something?
Ravi Vasarla
ravi.vasarla at sasken.com
Tue Mar 24 09:07:47 EDT 2009
Hi,
Check the MTD drivers write size, usually pagesize is same as the writesize.
In nandwrite.c the ioctl will fired only when passed the option like -a (autoplace) -n (noecc) passed. I guess it should not give below
error with -j option. Check with the latest version of mtd-util of nandwrite.c file
Regards,
Ravi
________________________________________
From: Juergen Beisert [jbe at pengutronix.de]
Sent: Tuesday, March 24, 2009 18:19
To: linux-mtd at lists.infradead.org
Cc: Ravi Vasarla
Subject: Re: DOC2000 flash: Do I miss something?
Hi,
On Dienstag, 24. März 2009, Ravi Vasarla wrote:
> Just check with nandwrite with option -j (--jffs2 oob layout) instead of
> autoplace oob layout.
I tried:
$ flash_eraseall -j /dev/mtd1
$ nandwrite -j /dev/mtd1 /root.jffs2
MEMSETOOBSEL: Inappropriate ioctl for device
Only the "-a" option given to "nandwrite" works. Maybe my image is wrong. I
took a look into the email archives you mentioned and change it to:
(note: Host is x86 and also the target)
$ mkfs.jffs2 -d images/work_dir --eraseblock=0x4000 -n -p \
--pagesize=512 -o images/root.jffs2
I'm unsure about the eraseblock and pagesize option. /proc/mtd tells me:
$ cat /proc/mtd
dev: size erasesize name
[...]
mtd1: 01000000 00004000 "DiskOnChip 2000 (NFTL Model)"
But nothing about the pagesize.
Regards,
Juergen
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In
case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are
requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and with due
authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email
More information about the linux-mtd
mailing list