Skip to contentSkip to conversation

NAND ECC on a per-partition basis

DISCUSSION Peter Barada 3 participants 3 messages Aug 16, 2010 – Aug 17, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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?

Signature · 1 line
Peter Barada <[email protected]>
#1 lore raw
Quoted 7 lines · Peter Barada

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

#2 lore raw
Quoted 9 lines · On Tuesday 17 August 2010 09:31:29 Matthieu CASTET wrote:
Quoted 6 lines · Peter Barada

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