[U-Boot] U-boot and JFFS2

Nishanth Menon menon.nishanth at gmail.com
Mon Mar 16 12:39:21 CET 2009


Pillai, Manikandan said the following on 03/16/2009 01:35 PM:
> Hi,
>
> On the OMAP3 EVM board, I have four partition on my Onenand flash of which /dev/mtd4 is a JFFS2 partition.
>
> After booting up linux, I use the following command to mount the jffs2 empty partition.
>
> Linux#> mount -t jffs2 /dev/mtdblock4 /mnt
>
> Then I do a reboot .
>
> When u-boot boots up it gives bad erase block for all the blocks used by /dev/mtd4.
>
> The reason is the JFFS2 filesystem is putting some signature at location 0x0 and 0x1 of OOB locations
> of every block.
>
> Is there a way this can be avoided ?
>
>   
A)
mount -t jffs2 /dev/mtdblock4 /mnt
umount /mnt
sync
reboot

this gives the garbage collector time to put the cleanmarkers in place.

B) is the kernel's oob layout and ECC strategy (h/w vs s/w ecc) same as
that used for u-boot?

Regards,
Nishanth Menon


More information about the U-Boot mailing list