mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Nataraj S Narayan <natarajsn@gmail.com>
To: barebox@lists.infradead.org
Subject: barebox and hardware_ecc
Date: Thu, 25 Aug 2011 04:51:51 +0000	[thread overview]
Message-ID: <CAK8HZO+K_PN2ojFMdV_T3z_owSSs2Vr-JUK607Hcf8UGfqRMbg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2011-08-25  4:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK8HZO+K_PN2ojFMdV_T3z_owSSs2Vr-JUK607Hcf8UGfqRMbg@mail.gmail.com \
    --to=natarajsn@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox