Issue : jffs2 and ecc layout
tom.leiming at gmail.com
Fri Dec 24 09:10:33 EST 2010
2010/12/24 Ming Lei <tom.leiming at gmail.com>:
> 2010/12/24 Ming Lei <tom.leiming at gmail.com>:
>> 2010/12/24 Charles Manning <manningc2 at actrix.gen.nz>:
>>> THis might be due to the way the omap2.c driver is now screwed up so that it
>>> does not read when not u32 aligned.
>>> Try this:
>>> Please report back if that fixes the problem for you.
>> No, the patch doesn't fix the issue.
> #mount -t jffs2 /dev/mtdblock4 /mnt/cf
> mount: /dev/mtdblock4: can't read superblock
> [ 41.216796] nand_do_read_oob: Attempt to read past end of page
> [ 41.216827] cannot read OOB for EB at 00000000, requested 152
> bytes, read 0 bytes, error -22
When I revert the patch below from Jason,
mount will be OK but with some info printed, see below:
root at beagleboard:~# mount -t jffs2 /dev/mtdblock4 /mnt/cf
[ 39.662963] JFFS2 notice: (1324) jffs2_build_xattr_subsystem:
complete building xattr subsystem, 0
of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
/dev/mtdblock4 on /media/cf type jffs2 (rw,relatime)
So seems the patch from Jason does cause the issue, maybe should be
dropped or fixed further.
More information about the linux-mtd