nand on-die ecc for jffs2

Pankaj Pandey pankaj.embedded at gmail.com
Wed Jul 19 07:51:51 PDT 2017


Hi,

I found below mentioned patches to support on-die ecc for micron nand
flash which are working fine for me.

Thomas Petazzoni (5):
  dt-bindings: mtd: document new "on-die" nand-ecc-mode
  mtd: nand: add core support for on-die ECC
  mtd: nand: export nand_{read,write}_page_raw()
  mtd: nand: add support for Micron on-die ECC
  mtd: nand: fsmc_nand: handle on-die ECC case

But regarding on-die ecc for jffs2 rootfilesystem I am getting
below error when trying to untaring the rootfs on mounted nand flash
mtd partition.

[  120.103222] jffs2: mtd->read(0x44 bytes from 0x8c80030) returned ECC error
[  120.118055] jffs2: mtd->read(0x22 bytes from 0x8c80074) returned ECC error

Steps I have followed to format and untaring the rootfs.

# flash_erase /dev/mtd11 0 0
Erasing 128 Kibyte @ b7e0000 -- 100 % complete

# mount -t jffs2 /dev/mtdblock11 /media
# cd /media
# cp /home/root/rootfs.tar.gz .
# tar -xvzf rootfs.tar.gz

Please suggest any pointer to fix this issue.  TIA !!

Regards,
Pankaj Pandey



More information about the linux-mtd mailing list