* ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc @ 2009-07-16 15:03 Rupesh Kumar 2009-08-31 20:39 ` Louise.Yeung 0 siblings, 1 reply; 5+ messages in thread From: Rupesh Kumar @ 2009-07-16 15:03 UTC (permalink / raw) To: linuxppc-dev 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc 2009-07-16 15:03 ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc Rupesh Kumar @ 2009-08-31 20:39 ` Louise.Yeung 2009-08-31 23:47 ` Anton Vorontsov 0 siblings, 1 reply; 5+ messages in thread From: Louise.Yeung @ 2009-08-31 20:39 UTC (permalink / raw) To: linuxppc-dev, louise, Ravinder Kumar [-- Attachment #1: Type: text/plain, Size: 4189 bytes --] *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 <mailto:linuxppc-dev%40lists.ozlabs.org?Subject=Re%3A%20ECC%20%26%20Magic%20bitmask%20errors%20with%20JFFS2%20file%20system%20on%206.23%20kernel%20for%0A%09powerpc&In-Reply-To=%3COF4DA6695F.B8912DE2-ON652575F5.004F0DE0-652575F5.00519736%40lntemsys.com%3E> /Fri Jul 17 01:03:11 EST 2009/ * Previous message: rtas instantiation when commandline contains mem <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/074168.html> * Next message: [PATCH] mpc83xx/usb.c: fix usb mux setup for mpc834x <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/074147.html> * *Messages sorted by:* [ date ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/date.html#74140> [ thread ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/thread.html#74140> [ subject ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/subject.html#74140> [ author ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/author.html#74140> ------------------------------------------------------------------------ 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 <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/074168.html> * Next message: [PATCH] mpc83xx/usb.c: fix usb mux setup for mpc834x <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/074147.html> * *Messages sorted by:* [ date ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/date.html#74140> [ thread ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/thread.html#74140> [ subject ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/subject.html#74140> [ author ] <http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-July/author.html#74140> ------------------------------------------------------------------------ More information about the Linuxppc-dev mailing list <https://lists.ozlabs.org/listinfo/linuxppc-dev> [-- Attachment #2: Type: text/html, Size: 4504 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc 2009-08-31 20:39 ` Louise.Yeung @ 2009-08-31 23:47 ` Anton Vorontsov 2009-09-01 5:23 ` Rupesh Kumar 2009-09-01 6:46 ` Ravinder Kumar 0 siblings, 2 replies; 5+ messages in thread From: Anton Vorontsov @ 2009-08-31 23:47 UTC (permalink / raw) To: Louise.Yeung; +Cc: louise, Ravinder Kumar, linuxppc-dev, Rupesh Kumar On Mon, Aug 31, 2009 at 01:39:10PM -0700, Louise.Yeung@Sun.COM wrote: > *Hi Rupesh, > > We are using a Freescale processor similar to yours with NAND flash > supporting 2KB page size . What kernel version and NAND driver you use? I don't think that old BSP kernels include fsl_elbc_nand driver, which is a much improved version of the fsl_fcm driver. So you might want to swith to a newer kernel or back-port the fsl_elbc_nand driver[1] and a few fixes to your kernel. [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/mtd/nand/fsl_elbc_nand.c -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc 2009-08-31 23:47 ` Anton Vorontsov @ 2009-09-01 5:23 ` Rupesh Kumar 2009-09-01 6:46 ` Ravinder Kumar 1 sibling, 0 replies; 5+ messages in thread From: Rupesh Kumar @ 2009-09-01 5:23 UTC (permalink / raw) To: avorontsov; +Cc: louise, Ravinder Kumar, linuxppc-dev, Louise.Yeung Hi Louise, Earlier we were using kernel 2.6.20(released with LTIB for REVA board of MPC8313E) and we were not seeing this problem in that kernel. Since, We had time constraint for our project, best thing we did was ported 2.6.20 kernel on rev 2.1 silicon of MPC8313E. This is working fine. However, We did try to dig this problem further and found that the problem occurs because of the ECC alignment mismatch in read & write on NAND flash. You can look into following points :- 1) NAND initialization :- Page size mentioned correctly in BR/OR register Settings. 2) rfs is made with correct erase size. 3) ECC placement used in u-boot & Kernel nand driver is same. 4) Try using different ECC alignments and see if it makes some difference. Regards Rupesh Anton Vorontsov <avorontsov@ru.mvista.com> 09/01/2009 05:17 AM Please respond to avorontsov@ru.mvista.com To Louise.Yeung@Sun.COM cc linuxppc-dev@lists.ozlabs.org, louise <louise@Sun.COM>, Ravinder Kumar <Ravinder.Kumar@Sun.COM>, Rupesh Kumar <Rupesh.Kumar@Lntemsys.com> Subject Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc On Mon, Aug 31, 2009 at 01:39:10PM -0700, Louise.Yeung@Sun.COM wrote: > *Hi Rupesh, > > We are using a Freescale processor similar to yours with NAND flash > supporting 2KB page size . What kernel version and NAND driver you use? I don't think that old BSP kernels include fsl_elbc_nand driver, which is a much improved version of the fsl_fcm driver. So you might want to swith to a newer kernel or back-port the fsl_elbc_nand driver[1] and a few fixes to your kernel. [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/mtd/nand/fsl_elbc_nand.c -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc 2009-08-31 23:47 ` Anton Vorontsov 2009-09-01 5:23 ` Rupesh Kumar @ 2009-09-01 6:46 ` Ravinder Kumar 1 sibling, 0 replies; 5+ messages in thread From: Ravinder Kumar @ 2009-09-01 6:46 UTC (permalink / raw) To: avorontsov; +Cc: louise, Rupesh Kumar, linuxppc-dev, Louise.Yeung On Aug 31, 2009, at 4:47 PM, Anton Vorontsov wrote: > On Mon, Aug 31, 2009 at 01:39:10PM -0700, Louise.Yeung@Sun.COM wrote: >> *Hi Rupesh, >> >> We are using a Freescale processor similar to yours with NAND flash >> supporting 2KB page size . > > What kernel version and NAND driver you use? I don't think that old > BSP kernels include fsl_elbc_nand driver, which is a much improved > version of the fsl_fcm driver. We are using 2.6.23 kernel with freescale patches. The sources have fsl_elbc driver. I think the newer BSP kernels have fsl_elbc_nand driver. Will look at it. Thanks Ravinder > > So you might want to swith to a newer kernel or back-port the > fsl_elbc_nand driver[1] and a few fixes to your kernel. > > [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/mtd/nand/fsl_elbc_nand.c > > -- > Anton Vorontsov > email: cbouatmailru@gmail.com > irc://irc.freenode.net/bd2 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-01 7:05 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-07-16 15:03 ECC & Magic bitmask errors with JFFS2 file system on 6.23 kernel for powerpc Rupesh Kumar 2009-08-31 20:39 ` Louise.Yeung 2009-08-31 23:47 ` Anton Vorontsov 2009-09-01 5:23 ` Rupesh Kumar 2009-09-01 6:46 ` Ravinder Kumar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).