Problem with jffs2 on linux 2.6.23
Rupesh.Kumar at Lntemsys.com
Mon Jun 22 02:37:24 EDT 2009
The erase size/Block size of nand device is 128KB, also the JFFS2 image is
created with erase size of 128KB.
I verified this by enabling debug statements. I am not able to undersatnd
the reason for ECC / Magic Bitmask error.
I tried using linux-2.6.20 kernel with the same file system and observed
that ECC / Magic Bitmask error is not coming then.
Is jffs2 code in linux 2.6.23 kernel is buggy ?
Ravi Vasarla <ravi.vasarla at sasken.com>
06/15/2009 03:56 PM
Rupesh Kumar <Rupesh.Kumar at Lntemsys.com>, "linux-mtd at lists.infradead.org"
<linux-mtd at lists.infradead.org>
RE: Problem with jffs2 on linux 2.6.23
It usually comes when jffs2 image is not build correctly, i mean with
correct block size and erase size. Kindly check once again, please enable
the MTD debug and file system debug flags to see more debug info.
+91 97415 00768
From: linux-mtd-bounces at lists.infradead.org
[linux-mtd-bounces at lists.infradead.org] On Behalf Of Rupesh Kumar
[Rupesh.Kumar at Lntemsys.com]
Sent: Monday, June 15, 2009 14:46
To: linux-mtd at lists.infradead.org
Subject: Problem with jffs2 on linux 2.6.23
We are using jffs2 RFS for our board with linux 2.6.23 . we are suing nand
write.jffs2 utility in the u-boot to burn the image on to the
Our problem is
Booting First time with the RFS seems to be fine. As system run and we do
reboot system it prints following messages and boots up.
mtd->read(0x400 bytes from 0x1b00000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01b001d0:
mtd->read(0x400 bytes from 0x2500000) returned ECC error
mtd->read(0x400 bytes from 0x27c0000) returned ECC error
mtd->read(0x400 bytes from 0x2c20000) returned ECC error
mtd->read(0x400 bytes from 0x2cc0000) returned ECC error
mtd->read(0x400 bytes from 0x2d00000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d00074:
Empty flash at 0x02d00078 ends at 0x02d003e4
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d003e4:
Empty flash at 0x02d003e8 ends at 0x02d00780
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d00780:
mtd->read(0x400 bytes from 0x3320000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x03320190:
Empty flash at 0x03320194 ends at 0x0332047c
During run time also it prints these messages.
I am not able to understand the cause of this error. Please help me in
fixing this error.
The same file system is working fine with the linux 2.6.20 kernel.
Linux MTD discussion mailing list
SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally privileged
case you are not the original intended Recipient of the message, you must
not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this
message and you are
requested to delete it and inform the sender. Any views expressed in this
those of the individual sender unless otherwise stated. Nothing contained
in this message
shall be construed as an offer or acceptance of any offer by Sasken
Technologies Limited ("Sasken") unless sent with that express intent and
authority of Sasken. Sasken has taken enough precautions to prevent the
viruses. However the company accepts no liability for any damage caused by
transmitted by this email
More information about the linux-mtd