public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* UbiFS + HWECC(?) + BeagleBoard = fail
@ 2010-11-07  7:40 [AvataR]
  2010-11-08 11:08 ` Grazvydas Ignotas
  0 siblings, 1 reply; 8+ messages in thread
From: [AvataR] @ 2010-11-07  7:40 UTC (permalink / raw)
  To: linux-omap

Hi. After moving to upstream 2.6.3{5,6,7} kernels, i forced to use jffs2
instead of ubifs, because of lot CRC errors. If i use prefetch/dma, i
can attach to ubi, make volume, write data, reboot - and got lots of CRC
errors. Without prefetch i just couldn't do anything to ubi. 

Looks like hw/sw bug in ubi

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: UbiFS + HWECC(?) + BeagleBoard = fail
@ 2010-12-06 17:51 Luca Ceresoli
  0 siblings, 0 replies; 8+ messages in thread
From: Luca Ceresoli @ 2010-12-06 17:51 UTC (permalink / raw)
  To: linux-omap; +Cc: Grazvydas Ignotas

On Mon, 8 Nov 2010 13:08:44 +0200, Grazvydas Ignotas wrote:
>On Sun, Nov 7, 2010 at 9:40 AM, [AvataR] <public.avatar@xxxxxxxxx> wrote:
>> Hi. After moving to upstream 2.6.3{5,6,7} kernels, i forced to use jffs2
>> instead of ubifs, because of lot CRC errors. If i use prefetch/dma, i
>> can attach to ubi, make volume, write data, reboot - and got lots of CRC
>> errors. Without prefetch i just couldn't do anything to ubi.
>>
>> Looks like hw/sw bug in ubi
>
>Looks like Sukumar's recent changes broke subpage reads that are
>needed for UBI to operate. You can try commenting out #define
>CONFIG_MTD_NAND_OMAP_HWECC in drivers/mtd/nand/omap2.c and disabling
>MTD_NAND_OMAP_PREFETCH, with that it mostly works for me but sometimes
>spits out ECC error or two.

I think this is the same bug reported back in august in
http://www.spinics.net/lists/linux-omap/msg34452.html, right?

I've been hit by this as well, and it seems to be still there, at least in

commit afd2d11e00520b7440003987be2ee4aab7c32901
Merge: 7fd1cff 734b4c7
Author: Tony Lindgren <tony@atomide.com>
Date:   Wed Dec 1 13:56:37 2010 -0800

    Merge branch 'devel-gpio'

While I thank you for you proposed solution, I see it does not work here.
In fact I commented the #define CONFIG_MTD_NAND_OMAP_HWECC and left
MTD_NAND_OMAP_PREFETCH disabled as it previously was, and got compilation
errors:

drivers/mtd/nand/omap2.c:1: warning: data definition has no type or storage class
drivers/mtd/nand/omap2.c:1: warning: type defaults to 'int' in declaration of 'B1'
drivers/mtd/nand/omap2.c:1: error: expected identifier or '(' before numeric constant
drivers/mtd/nand/omap2.c:1:9: error: invalid suffix "c" on integer constant
drivers/mtd/nand/omap2.c:1: error: expected identifier or '(' before numeric constant

As it looks to me like a very serious and very ancient bug, I wonder if I
missed something.

Or is any patch around to fix this?

Any pointer would be greatly appreciated.

Thanks,
Luca Ceresoli




^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: UbiFS + HWECC(?) + BeagleBoard = fail
@ 2010-12-07 10:29 Luca Ceresoli
  2010-12-08  0:19 ` Charles Manning
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Ceresoli @ 2010-12-07 10:29 UTC (permalink / raw)
  To: linux-omap; +Cc: notasas

Luca Ceresoli wrote:
> While I thank you for you proposed solution, I see it does not work here.
> In fact I commented the #define CONFIG_MTD_NAND_OMAP_HWECC and left
> MTD_NAND_OMAP_PREFETCH disabled as it previously was, and got compilation
> errors:

Wrong, sorry. Your solution compiles and works. I had another change in that
file that broke compilation.

Nevertheless, it's not clear to me whether the long-term direction is to
switch to HWECC, and if it is expected to work in current builds, or if
SWECC in here to stay.

Thanks,
Luca



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: UbiFS + HWECC(?) + BeagleBoard = fail
@ 2010-12-09  8:30 Luca Ceresoli
  2010-12-15  4:13 ` Charles Manning
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Ceresoli @ 2010-12-09  8:30 UTC (permalink / raw)
  To: manningc2; +Cc: linux-omap, notasas

Charles Manning wrote:
> Luca, I have been having similar problems on a hacked Overo kernel.
> 
> I have no problems with 2.6.35.
> 
> I tried just commenting out the define and disabling PREFETCH and did not get 
> a good boot due to ubi not finding the volume info.
> 
> Are you loading up a UBI image with uboot?
> 
> Are you using the ubi volume as rootfs?

To make it work again, I did from u-boot:
- nand scrub (*completely* wipe the NAND)
- ubi part nand0,3 (recreate partitions)
- ubi create rootfs 400000
- ...create other partitions...
- ubi write ... (to rewrite rootfs)
- finally, boot with the kernel having the define commented and PREFETCH off.

Not all of these may be needed, but this way I got the board up and running again.

Luca



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-15 17:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-07  7:40 UbiFS + HWECC(?) + BeagleBoard = fail [AvataR]
2010-11-08 11:08 ` Grazvydas Ignotas
  -- strict thread matches above, loose matches on Subject: below --
2010-12-06 17:51 Luca Ceresoli
2010-12-07 10:29 Luca Ceresoli
2010-12-08  0:19 ` Charles Manning
2010-12-09  8:30 Luca Ceresoli
2010-12-15  4:13 ` Charles Manning
2010-12-15 17:35   ` Charles Manning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox