nand with jffs2
Abraham Arce
abraham.arce.moreno at gmail.com
Sun Mar 1 15:05:55 EST 2009
Hi Syed,
On Sun, Mar 1, 2009 at 10:35 AM, Syed Ismail <ismail.riyaz at dyansys.com> wrote:
>
> Hi
> I am having problems using nand flash on my mx31 ads board. I use two 1 gb nand parts. I first want to ensure 1 gb works. File system used is jffs2 on linux 2.6.24.
> If I make a mtd partition that has no bad blocks, I can erase it using flash_eraseall –j and then mount it with –t jffs2 option. If I use this partition for root file system, it works fine, but some jffs2 warnings come up, like crc errors.
> If I make a mtd partition that contain bad blocks, when mounting i get a lot of mtd-> read ecc errors, followed by jffs2 messages. It’s like bad blocks are also being read, though when I do nand write, bad blocks get skipped.
> The final 5 or 6 blocks always are shown as bad blocks when I do flash_eraseall( I have tried with four different chips). If my mtd partition contains these last 5 blocks, mounting gives input/output error, with messages of "Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes ".
I was having same issue when trying to mount a onenand blockdevice
after formatted with -j option, are you using a OneNAND device?
# mount -t jffs2 /dev/mtdblock13 /mnt/flashdevice/
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 9, c->nr_blocks 2025
mount: mounting /dev/mtdblock13 on /mnt/flashdevice/ failed
give a try erasing all without the -j option and mount again...
> One more thing is that, when I mount I get message of “jffs2 not using oob”.
> Can anyone help me here? Thanks
Best Regards
Abraham
More information about the linux-mtd
mailing list