From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by bilbo.ozlabs.org (Postfix) with ESMTP id 95F4CB7B6C for ; Tue, 1 Sep 2009 06:53:11 +1000 (EST) Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n7VKdQPd003581 for ; Mon, 31 Aug 2009 20:39:26 GMT MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_DiAf+YowXQSq9X2lfdPesg)" Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KP900M00D74EG00@mail-amer.sun.com> for linuxppc-dev@lists.ozlabs.org; Mon, 31 Aug 2009 14:39:26 -0600 (MDT) Received: from [129.145.154.65] ([unknown] [129.145.154.65]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KP9006D9DDB2S20@mail-amer.sun.com> for linuxppc-dev@lists.ozlabs.org; Mon, 31 Aug 2009 14:39:12 -0600 (MDT) Date: Mon, 31 Aug 2009 13:39:10 -0700 From: Louise.Yeung@Sun.COM Subject: Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc In-reply-to: Sender: Louise.Yeung@Sun.COM To: linuxppc-dev@lists.ozlabs.org, louise , Ravinder Kumar Message-id: <4A9C34EE.4040606@Sun.COM> References: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --Boundary_(ID_DiAf+YowXQSq9X2lfdPesg) Content-type: text/plain; CHARSET=US-ASCII; format=flowed Content-transfer-encoding: 7BIT *Hi Rupesh, We are using a Freescale processor similar to yours with NAND flash supporting 2KB page size . We wonder if you were able to get any further with this problem that you posted. Thanks Louise and Ravinder Sun embedded systems group Rupesh Kumar* Rupesh.Kumar at Lntemsys.com /Fri Jul 17 01:03:11 EST 2009/ * Previous message: rtas instantiation when commandline contains mem * Next message: [PATCH] mpc83xx/usb.c: fix usb mux setup for mpc834x * *Messages sorted by:* [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------ Hi We are using Linux kernel 2.6.23 from freescale LTIB (MPC8313E_RDB_K26_20081226-LTIB.iso) on our custom board. JFFS2 is used as RFS and nand write.jffs2 utility in the u-boot is used to burn the image on to the nand flash. When we boot for the first time everything seems to be OK. On subsequent reboots we are seeing following error messages reported by kernel on bootup. In addition we also see Magic bitmask errors being reported. /////////////////////////// mtd->read(0x400 bytes from 0x1b00000) returned ECC error jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01b001d0: 0xfffe instead 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: 0xfffe instead Empty flash at 0x02d00078 ends at 0x02d003e4 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d003e4: 0xffef instead Empty flash at 0x02d003e8 ends at 0x02d00780 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d00780: 0xfffb instead mtd->read(0x400 bytes from 0x3320000) returned ECC error jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x03320190: 0xffff instead Empty flash at 0x03320194 ends at 0x0332047c //////////////////////////// We verified erase size passed as an argument for creating jffs2 file system (initial googling on the issue). After contacting freescale we came to know that, it is a known issue and they dont have planned to work on this in near future. :( Please give your valuable suggestions so that we can fix this problem and make our board running properly. Thanks Rupesh ------------------------------------------------------------------------ * Previous message: rtas instantiation when commandline contains mem * Next message: [PATCH] mpc83xx/usb.c: fix usb mux setup for mpc834x * *Messages sorted by:* [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------ More information about the Linuxppc-dev mailing list --Boundary_(ID_DiAf+YowXQSq9X2lfdPesg) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Hi Rupesh,

We are using a Freescale processor similar to yours with NAND flash supporting 2KB page size .
We wonder if you were able to get any further with this problem that you posted.

Thanks
Louise and Ravinder
Sun embedded systems group

Rupesh Kumar
Rupesh.Kumar at Lntemsys.com
Fri Jul 17 01:03:11 EST 2009
Hi

We are using Linux kernel 2.6.23 from freescale LTIB 
(MPC8313E_RDB_K26_20081226-LTIB.iso) on our custom board. 
JFFS2 is used as RFS and  nand write.jffs2 utility in the u-boot is used 
to burn the image on to the nand flash. 

When we boot for the first time everything seems to be OK. On subsequent 
reboots we are seeing following error messages reported by kernel on 
bootup. 
In addition we also see Magic bitmask errors being reported. 

///////////////////////////
mtd->read(0x400 bytes from 0x1b00000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01b001d0: 
0xfffe instead
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: 
0xfffe instead
Empty flash at 0x02d00078 ends at 0x02d003e4
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d003e4: 
0xffef instead
Empty flash at 0x02d003e8 ends at 0x02d00780
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x02d00780: 
0xfffb instead
mtd->read(0x400 bytes from 0x3320000) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x03320190: 
0xffff instead
Empty flash at 0x03320194 ends at 0x0332047c
////////////////////////////

We verified erase size passed as an argument for creating jffs2 file 
system (initial googling on the issue).
After contacting freescale we came to know that, it is a known issue and 
they dont have planned to work on this in near future. :(
Please give your valuable suggestions so that we can fix this problem and 
make our board running properly.

Thanks
Rupesh


More information about the Linuxppc-dev mailing list --Boundary_(ID_DiAf+YowXQSq9X2lfdPesg)--