DOC2000 flash: Do I miss something?
Juergen Beisert
jbe at pengutronix.de
Tue Mar 24 08:49:57 EDT 2009
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
More information about the linux-mtd
mailing list