From: Sascha Hauer <s.hauer@pengutronix.de>
To: Fabio Porcedda <Fabio.Porcedda@telit.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: AT91SAM9260-EK NAND Driver error
Date: Sun, 7 Nov 2010 12:48:42 +0100 [thread overview]
Message-ID: <20101107114842.GB6017@pengutronix.de> (raw)
In-Reply-To: <24A9345B397CD24AA76A4E82E237956544B9560AE5@XCHTS.tmt.telital.com>
Hi Fabio,
On Fri, Nov 05, 2010 at 06:26:43PM +0100, Fabio Porcedda wrote:
> Hi all,
> I have trouble reading from the nand device driver.
> I'm using the Atmel AT91SAM9260-EK board with barebox v2010.11.0,
> I'm using the at91sam9260ek default config with the "Atmel (AT91SAM9xxx) NAND driver" enabled .
>
> When I try to access the nand device I have an error:
>
> barebox:/ md -s /dev/nand0
> err -74
> read: error 74
74 is EBADMSG which means that the checksum is wrong. Does this sector
work with U-Boot?
U-Boot seems to work in software ecc mode whereas barebox uses hardware
ecc. Both have incompatible oob layouts. So either erase your nand and
write it again with babebox (in which case U-Boot won't be able to
access the nand) or switch barebox to software ecc (look for ecc_mode in
your board file).
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2010-11-07 11:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 17:26 Fabio Porcedda
2010-11-07 11:48 ` Sascha Hauer [this message]
2010-11-16 10:26 ` Fabio Porcedda
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=20101107114842.GB6017@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=Fabio.Porcedda@telit.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