I'm trying to mount 1[MB] Flash partition on my linux machine. I'm using the following command -
mount -t jffs2 -o noatime /dev/mtdblock6 /NVM
Where mtdblock6 is the mtd block I want to mount, and /NVM is the folder. This action results with the following error
jffs2: mtd->read(0x100 bytes from 0xc0000) returned ECC error
Can anyone suggest why is this happening?
Thank you all in advanced!
Yes. The described issue was caused due to wrong initialization of our NAND flash. JFFS2 uses flash spare area to encode file system data, but in our NAND initialization we deleted this section. The result was the issue described above.
We bypassed it by erasing 'clean marker' at boot, and then jffs thinks he needs to re-initialize the block - then no issue observers.