linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* NAND ECC on a per-partition basis
@ 2010-08-16 14:38 Peter Barada
  2010-08-17  7:31 ` Matthieu CASTET
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Barada @ 2010-08-16 14:38 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

I'm working with a Micron POP part for an omap3530, and I need to write
pages in the boot block using the builtin Hamming ECC(as the bootrom
expects it), but the rest of the blocks I want to use the NAND's builtin
4-bit ECC engine.

Is there any way to specify the ECC method on a per-partition basis?

If not, what would be the best way to go about modifying the MTD code to
allow such?


-- 
Peter Barada <peter.barada@gmail.com>

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

* Re: NAND ECC on a per-partition basis
  2010-08-16 14:38 NAND ECC on a per-partition basis Peter Barada
@ 2010-08-17  7:31 ` Matthieu CASTET
  2010-08-17  8:04   ` Florian Fainelli
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu CASTET @ 2010-08-17  7:31 UTC (permalink / raw)
  To: peter.barada@gmail.com; +Cc: linux-mtd@lists.infradead.org

Peter Barada a écrit :
> I'm working with a Micron POP part for an omap3530, and I need to write
> pages in the boot block using the builtin Hamming ECC(as the bootrom
> expects it), but the rest of the blocks I want to use the NAND's builtin
> 4-bit ECC engine.
> 
> Is there any way to specify the ECC method on a per-partition basis?
>
No, but you can write in raw mode and compute the ecc in userspace.

  Matthieu

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

* Re: NAND ECC on a per-partition basis
  2010-08-17  7:31 ` Matthieu CASTET
@ 2010-08-17  8:04   ` Florian Fainelli
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2010-08-17  8:04 UTC (permalink / raw)
  To: linux-mtd; +Cc: peter.barada@gmail.com, Matthieu CASTET

On Tuesday 17 August 2010 09:31:29 Matthieu CASTET wrote:
> Peter Barada a écrit :
> > I'm working with a Micron POP part for an omap3530, and I need to write
> > pages in the boot block using the builtin Hamming ECC(as the bootrom
> > expects it), but the rest of the blocks I want to use the NAND's builtin
> > 4-bit ECC engine.
> > 
> > Is there any way to specify the ECC method on a per-partition basis?
> 
> No, but you can write in raw mode and compute the ecc in userspace.

Yes, this is a good solution. However, Linux is very likely to report bad 
blocks in your bootloader partition, due to the ECC algorithm being different.

At some point we might want to be able to be able to define the ECC layout on a 
per-partition basis anyway. I do not say this is easy, especially as we might 
be switching between software/hardware ECC layouts from one block to another.
--
Florian

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

end of thread, other threads:[~2010-08-17  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-16 14:38 NAND ECC on a per-partition basis Peter Barada
2010-08-17  7:31 ` Matthieu CASTET
2010-08-17  8:04   ` Florian Fainelli

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).