AnsweredAssumed Answered

Writing  rootfs to NAND so linux can mount it

Question asked by mrkozmic on Oct 26, 2011
Latest reply on Nov 2, 2012 by samiksha

How do I write a rootfs to a NAND flash so that Linux can mount it? I have setup mtd partition for rootfs and it shows up in linux, but linux complains about missing magic number and ECC when mounting.

 

mtd->read(0x400 bytes from 0x80000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x3210 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x63ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x3007 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x0010 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x3208 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0xe800 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0xe145 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x3030 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0x910c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080028: 0xe105 instead
Further such events for this erase block will not be printed

Outcomes