* setting PAD parameter with JFFS2 and NAND -- what is correct thing to do ?
@ 2008-12-02 17:23 Philip Rakity
2008-12-03 16:44 ` Grant Erickson
0 siblings, 1 reply; 2+ messages in thread
From: Philip Rakity @ 2008-12-02 17:23 UTC (permalink / raw)
To: linux-mtd
I am trying to understand what value to set the pad parameter to when making a JFFS2 image (including using sumtool) for NAND flash.
The NAND flash has 2KiB sectors, 256KiB erase size, and is 2GB.
I use flase_eraseall -j when erasing the flash and the flash HAS bad blocks.
The image size is less than the 2GB size of the flash.
I have tried both specifying pad (rounded up) to the erase block size and omitting pad. When I write to the NAND there are recovered CRC errors from time to time as well as the other "errors" indicated in the FAQ.
If could set pad to the SIZE of the NAND flash, but because of bad blocks I am not sure this is correct...
Guidance Please.
Philip
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setting PAD parameter with JFFS2 and NAND -- what is correct thing to do ?
2008-12-02 17:23 setting PAD parameter with JFFS2 and NAND -- what is correct thing to do ? Philip Rakity
@ 2008-12-03 16:44 ` Grant Erickson
0 siblings, 0 replies; 2+ messages in thread
From: Grant Erickson @ 2008-12-03 16:44 UTC (permalink / raw)
To: Philip Rakity; +Cc: linux-mtd
On 12/2/08 9:23 AM, Philip Rakity wrote:
> I am trying to understand what value to set the pad parameter to when making a
> JFFS2 image (including using sumtool) for NAND flash.
>
> The NAND flash has 2KiB sectors, 256KiB erase size, and is 2GB.
>
> I use flase_eraseall -j when erasing the flash and the flash HAS bad blocks.
>
> The image size is less than the 2GB size of the flash.
>
> I have tried both specifying pad (rounded up) to the erase block size and
> omitting pad. When I write to the NAND there are recovered CRC errors from
> time to time as well as the other "errors" indicated in the FAQ.
>
> If could set pad to the SIZE of the NAND flash, but because of bad blocks I am
> not sure this is correct...
>
> Guidance Please.
>
> Philip
Philip:
You should set the padding to the page size. For the two systems I have, the
mkfs.jffs2 commands used to build the root file systems are as follows:
mkfs.jffs2 --big-endian \
--no-cleanmarkers \
--pad 512 \
--pagesize 512 \
--eraseblock 16384 \
-d /tmp/fs/stripped/root \
-D root.devtable \
-o root.jffs2
and:
mkfs.jffs2 --big-endian \
--no-cleanmarkers \
--pad 2048 \
--pagesize 2048 \
--eraseblock 131072 \
-d /tmp/fs/stripped/root \
-D root.devtable \
-o root.jffs2
Regards,
Grant
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-03 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 17:23 setting PAD parameter with JFFS2 and NAND -- what is correct thing to do ? Philip Rakity
2008-12-03 16:44 ` Grant Erickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox