From: Juergen Beisert <jbe@pengutronix.de>
To: linux-mtd@lists.infradead.org
Cc: Ravi Vasarla <ravi.vasarla@sasken.com>
Subject: Re: DOC2000 flash: Do I miss something?
Date: Tue, 24 Mar 2009 13:49:57 +0100 [thread overview]
Message-ID: <200903241349.58312.jbe@pengutronix.de> (raw)
In-Reply-To: <022F54DCE6CCCD45A5F9DF0B0B7BFEEB0635624080@EXGMBX01.sasken.com>
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
next prev parent reply other threads:[~2009-03-24 12:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 7:52 DOC2000 flash: Do I miss something? Juergen Beisert
2009-03-23 9:44 ` Ravi Vasarla
2009-03-23 10:21 ` Juergen Beisert
2009-03-23 19:29 ` Juergen Beisert
2009-03-24 6:46 ` Ravi Vasarla
2009-03-24 7:00 ` Ravi Vasarla
2009-03-24 12:49 ` Juergen Beisert [this message]
2009-03-24 13:07 ` Ravi Vasarla
2009-03-24 14:00 ` Juergen Beisert
2009-03-24 16:03 ` Ravi Vasarla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200903241349.58312.jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=ravi.vasarla@sasken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox