Hello All,
For the first time I am working on NAND flash file system.
I have Davinci base board with NAND flash with 2K page size and 128K erase
block size.
I am trying to boot the board with root file system on NAND.
I am setting MTD partitions as follows.
Creating 5 MTD partitions on "nand_davinci.0":
0x00000000-0x00040000 : "bootloader"
0x00040000-0x00060000 : "params"
0x00060000-0x00460000 : "kernel"
0x00460000-0x04000000 : "filesystem"
0x04000000-0x08000000 : "application_partition"
I created JFFS2 image with following command.
mkfs.jffs2 -s 2048 -e 128 --no-cleanmarkers -o nand_jffs2.img -d nand_jffs2
Then I am writing the same image with following commands on NAND.
#> flash_eraseall -j /dev/mtd3
#> nandwrite -jp /dev/mtd3 nana_jffs2.img
I am not getting any error for above any operation.
Then I am rebooting the board with bootarga as
setenv bootargs 'mem=128M console=ttyS0,115200n8 noinitrd
root=/dev/mtdblock3 rootfstype=jffs2 rw video=dm64xxfb:output=ntsc ip=dhcp'
But getting error after getting root FS mounted as
jffs2_scan_dirent_node(): Name CRC failed on node at 0x001a8fe0: Read
0x6d4d9a65, calculated 0x6d499a65
mtd->read(0x1f98c bytes from 0x1c0674) returned ECC error
jffs2_scan_eraseblock(): Node at 0x0025800c {0x1985, 0xe001, 0x0000002f) has
invalid CRC 0xf244f931 (calculated 0xf244f9b1)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258010:
0x002f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258014:
0xf931 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258018:
0x0004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0025801c:
0x0181 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258020:
0x0183 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258024:
0x417e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258028:
0x0607 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0025802c:
0x5c76 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00258030:
0xd05e instead
Further such events for this erase block will not be printed
jffs2_scan_inode_node(): CRC failed on node at 0x00259fc8: Read 0xc59d2607,
calculated 0xcd9d2607
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0025cfdc: Read
0x36957524, calculated 0x36957525
jffs2_scan_dirent_node(): Node CRC failed on node at 0x002657f0: Read
0x86e0ba2c, calculated 0xb6830ddc
jffs2_scan_eraseblock(): Node at 0x00266810 {0x1985, 0xf002, 0x00000046) has
invalid CRC 0x32fe3396 (calculated 0x521ea414)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266814:
0x0046 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266818:
0x3396 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0026681c:
0x0373 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266820:
0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266824:
0x2000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266830:
0x417e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266834:
0x417e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266838:
0x417e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00266840:
0x0002 instead
Further such events for this erase block will not be printed
jffs2_scan_inode_node(): CRC failed on node at 0x0026f000: Read 0x6eb6a15c,
calculated 0xdb54d16c
jffs2_scan_inode_node(): CRC failed on node at 0x0027dfe0: Read 0x81f55b4a,
calculated 0x0304d9e9
Thanks in advance.......
Thanks,
Amol M Shrotri
Embedded Engineer
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source