Issue : jffs2 and ecc layout

Ghorai, Sukumar s-ghorai at ti.com
Tue Sep 28 08:46:31 EDT 2010


Hi,
I was using the following ecc layout which is not working to mount the jffs2 File-system. I was in 2.6.32 kernel and working; but same layout is not working with latest 2.6 kernel.

Observation is that - no read request issued to the driver (say omap2.c).

# mount -t jffs2 /dev/mtdblock4 /mnt/nand
[   32.505218] cannot read OOB for EB at 00000000, requested 8 bytes, read 0 bytes, error -22
mount: Mounting /dev/mtdblock4 on /mnt/nand failed: Input/output error

# dmesg 
<3>[   32.505218] cannot read OOB for EB at 00000000, requested 8 bytes, read 0 bytes, error -22

Code:
 178 static struct nand_ecclayout hw_x16_romcode_oob_64 = {
 179         .eccbytes = 12,
 180         .eccpos = {
 181                     2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
 182                   },
 183         .oobfree = {
 184                         {.offset = 14,
 185                          .length = 50}
 186                    }
 187 };

 1188              info->nand.ecc.layout = &hw_x16_romcode_oob_64;

Regards,
Ghorai




More information about the linux-mtd mailing list