mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox and hardware_ecc
@ 2011-08-25  4:51 Nataraj S Narayan
  0 siblings, 0 replies; only message in thread
From: Nataraj S Narayan @ 2011-08-25  4:51 UTC (permalink / raw)
  To: barebox

Hi

Does barebox use by default hardware ECC on nand flash ?  I am on an
at91sam9263 board.

A previous mail by Sascha says that barebox uses hardware ecc while
u-boot uses software ecc by default.

After writing a  ubifs using:-

"tftp rootfs.ubifs.nat /dev/ubi0.data " ,

I  am able boot using a kernel that has MTD_NAND_ATMEL_ECC_SOFT,

but not with a kernel that has  MTD_NAND_ATMEL_ECC_HW.

Am I missing something? Tried adding  an ecc_mode in the following,
but in vain:-

static struct memory_platform_data ram_pdata = {
@@ -96,7 +96,12 @@ void at91_add_device_nand(struct atmel_nand_data *data)

        if (!data)
                return;
+/* Nataraj*************/
+
+        data->ecc_base = (void __iomem *)(AT91_BASE_SYS + AT91_ECC0);
+        data->ecc_mode = NAND_ECC_HW;

+/* Nataraj ************/
        csa = at91_sys_read(AT91_MATRIX_EBI0CSA);
        at91_sys_write(AT91_MATRIX_EBI0CSA, csa |
AT91_MATRIX_EBI0_CS3A_SMC_SMARTMEDIA);


May I have some help?

regards

Nataraj

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-25  4:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25  4:51 barebox and hardware_ecc Nataraj S Narayan

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