AT91SAM9260-EK NAND Driver error

Sascha Hauer s.hauer at pengutronix.de
Sun Nov 7 06:48:42 EST 2010


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 |



More information about the barebox mailing list