This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

jffs2: mtd->read(0x5c bytes from 0x9d37a4) returned ECC error

Hi all

I've been trying to mount jffs2 file in AM335x evm board.

but, I am facing problem

jffs2 file is not rootfs, just font file.

I used to use to UBIFS file system

UBIFS file is ok

When doing boot an error message occurred

jffs2: mtd->read(0x5c bytes from 0x9d37a4) returned ECC error

 

but I can read font file (mounted jffs2 file)

just error message occurs

 

how can I fix this error message?

 

1. Hardware spec

 - Board: AM335x evm board

 - Nand : MT29F2G08 , 256MB (default nand)

 

2. Mtd-Utilities

  - Site :  http://processors.wiki.ti.com/index.php/MTD_Utilities

  

3. Compile command

# mkfs.jffs2 -lqn -e 128KiB -r FS_DefaultElements -o FS_DefaultElements.jffs2

# sumtool -iFS_DefaultElements.jffs2 -oFS_DefaultElements-sum.jffs2 -e128KiB

 

4. Partition

dev:    size   erasesize  name
mtd0: 00020000 00020000 "NAND.SPL"
mtd1: 00020000 00020000 "NAND.SPL.backup1"
mtd2: 00020000 00020000 "NAND.SPL.backup2"
mtd3: 00020000 00020000 "NAND.SPL.backup3"
mtd4: 00040000 00020000 "NAND.u-boot-spl-os"
mtd5: 00100000 00020000 "NAND.u-boot"
mtd6: 00020000 00020000 "NAND.u-boot-env"
mtd7: 00020000 00020000 "NAND.u-boot-env.backup1"
mtd8: 00800000 00020000 "NAND.kernel"
mtd9: 0d000000 00020000 "NAND.file-system"
mtd10: 00200000 00020000 "NAND.UserArea"
mtd11: 00100000 00020000 "NAND.PritnerSetting"
mtd12: 00100000 00020000 "NAND.RawPartition1"
mtd13: 02200000 00020000 "NAND.default-elements"

 

5. mount script

mkdir /mnt/mtd3_DefaultElements 

mount -t jffs2 -o noatime /dev/mtdblock13 /mnt/mtd3_DefaultElements

 

6. Nand write (in uboot)

nand erase.chip;

 

mmc rescan;

fatload mmc 0 0x82000000 MLO;

nand erase 0x0 0x20000;

nand write 0x82000000 0x0 0x20000;

mmc rescan;

fatload mmc 0 0x82000000 u-boot.img;

nand erase 0xc0000 0x100000;

nand write 0x82000000 0xc0000 0x100000;

 

mmc rescan;

fatload mmc 0 0x82000000 am335x-evm.dtb;

nand erase 0x80000 0x40000;

nand write 0x82000000 0x80000 0x40000;

 

mmc rescan;

fatload mmc 0 0x82000000 zImage;

nand erase 0x200000 0x500000;

nand write 0x82000000 0x200000 0x500000;

mw.b 0x82000000 0xFF 0x7000000;


mmc rescan;

fatload mmc 0 0x82000000 sg-fs.ubi;

nand erase 0xa00000 0x7000000;

nand write 0x82000000 0xa00000 0x7000000

mw.b 0x82000000 0xFF 0x2200000;

mmc rescan;

fatload mmc 0 0x82000000 FS_DefaultElements-sum.jffs2;

nand erase 0xDE00000 0x2200000;

nand write 0x82000000 0xDE00000 0x2200000

 

7. first time booting message

mount: mounting /proc on /proc failed: Device or resource busy

[   9.383506] jffs2: notice: (837) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

Set PATH

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wed Feb 11 14:32:00 UTC 2015

INIT: Entering runlevel: 5

Configuring network interfaces... udhcpc (v1.22.1) started

Sending discover...

Sending discover...

Sending discover...

No lease, failing

done.

Starting system message bus: dbus.

Starting telnet daemon.

Starting rpcbind daemon...rpcbind: cannot create socket for udp6

rpcbind: cannot create socket for tcp6

done.

creating NFS state directory: done

starting statd: done

Starting syslogd/klogd: done

Starting thttpd.

Stopping Bootlog daemon: bootlogd.

 

_____                   _____           _         _

| _ |___ ___ ___ ___   | _ |___ ___ |_|___ ___| |_

|     | _| .'| . | . | |   __| _| . | | | -_| _| _|

|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|

             |___|                   |___|

 

Arago Project http://arago-project.org am335x-evm /dev/ttyO0

Arago 2015.02 am335x-evm /dev/ttyO0

am335x-evm login:

 

8) second time booting message

Create the new nodes

mount: mounting /proc on /proc failed: Device or resource busy

mkdir: can't create directory '/mnt/mtd3_DefaultElements': File exists

[   4.175177] jffs2: mtd->read(0x1fa84 bytes from 0x9c057c) returned ECC error

[   4.189835] jffs2: mtd->read(0xd15c bytes from 0x9d2ea4) returned ECC error

[   4.197139] jffs2: Empty flash at 0x009d2ea0 ends at 0x009d3000

[   4.382508] jffs2: notice: (837) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

Set PATH

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wed Feb 11 14:32:00 UTC 2015

INIT: Entering runlevel: 5

Configuring network interfaces... udhcpc (v1.22.1) started

Sending discover...

[   12.485695] jffs2: mtd->read(0x5c bytes from 0x9d37a4) returned ECC error

[   12.493516] jffs2: mtd->read(0x780 bytes from 0x9d3080) returned ECC error

[   12.559925] jffs2: notice: (838) check_node_data: wrong data CRC in data node at 0x009d37a4: read 0x5b81c2d4, calculated 0xd59c7f6d.

[   12.686475] jffs2: mtd->read(0x44 bytes from 0x9d3080) returned ECC error

[   13.815676] jffs2: mtd->read(0x7bc bytes from 0x9d3044) returned ECC error

Sending discover...

Sending discover...

[   18.645688] jffs2: mtd->read(0x800 bytes from 0x9d3000) returned ECC error

[   18.653599] jffs2: mtd->read(0x44 bytes from 0x9d3000) returned ECC error

No lease, failing

done.

Starting system message bus: dbus.

Starting telnet daemon.

Starting rpcbind daemon...rpcbind: cannot create socket for udp6

rpcbind: cannot create socket for tcp6

done.

creating NFS state directory: done

starting statd: done

Starting syslogd/klogd: done

Starting thttpd.

Stopping Bootlog daemon: bootlogd.

 

_____                   _____           _         _

| _ |___ ___ ___ ___   | _ |___ ___ |_|___ ___| |_

|     | _| .'| . | . | |   __| _| . | | | -_| _| _|

|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|

             |___|                   |___|

 

Arago Project http://arago-project.org am335x-evm /dev/ttyO0

Arago 2015.02 am335x-evm /dev/ttyO0

am335x-evm login:

thanks for any reply~~