* JFFS2 on Nand
@ 2004-02-27 22:21 Ranjan Parthasarathy
2004-02-27 23:14 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Ranjan Parthasarathy @ 2004-02-27 22:21 UTC (permalink / raw)
To: linux-mtd
Hi
How do I make a JFFS2 image for a NAND device with the OOB data included in
the image. I have the new mkfs.jffs2 and related utils from cvs.
Currently when I run
# nandwrite -j -o /dev/mtd/1 jffs2.img
I get the following message-
Input file is not page aligned: Success
The jffs2.img was created using mkfs.jffs2 -r <root> -o jffs2.img
Any info would be greatly appreciated.
Thanks
Ranjan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: JFFS2 on Nand
2004-02-27 22:21 JFFS2 on Nand Ranjan Parthasarathy
@ 2004-02-27 23:14 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-02-27 23:14 UTC (permalink / raw)
To: Ranjan Parthasarathy, linux-mtd
On Friday 27 February 2004 23:21, Ranjan Parthasarathy wrote:
> Hi
>
> How do I make a JFFS2 image for a NAND device with the OOB data included in
> the image. I have the new mkfs.jffs2 and related utils from cvs.
>
> Currently when I run
> # nandwrite -j -o /dev/mtd/1 jffs2.img
> I get the following message-
> Input file is not page aligned: Success
Input files should be page aligned, as NAND should be written with full page
writes only. So the utility notifies you, if the image is not page aligned.
This will result in some uncritical warning messages, if you mount the
partition.
> The jffs2.img was created using mkfs.jffs2 -r <root> -o jffs2.img
Try:
mkfs.jffs2 -r <root> -e <erasesize> -p <erasesize> -n -o jffs2.img
where <erasesize> is the blocksize of your NAND chip
-n disables cleanmarker insertion at the beginning of each block, as the
cleanmarkers are stored in the oob area
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-27 23:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 22:21 JFFS2 on Nand Ranjan Parthasarathy
2004-02-27 23:14 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox