Hi Gary,

On 11.07.2011 13:24, Gary Thomas wrote:
> Note: I'm not sure the best place to ask this question as it's very
> Davinci specific.
> 
> Has anyone worked on the NAND drivers in U-Boot for the Davinci chips?
> In particular the OMAP-L138?  It seems that the U-Boot drivers in use
> only use software ECC which is incompatible with the hardware ECC engine
> on the device.  My board is booting from NAND and if I use U-Boot to
> update the U-Boot image in NAND, the ECC information is incorrect and
> the board stops booting.

I don't think the problem is HW ECC vs SW ECC the problem is where the
ECC bits are stored in the Out-Of-Band (OOB) area of the NAND.

The ROM boot loader (RBL) expects them to be at a certain position where
U-BOOT and the Linux Kernel have them stored in another place.

More info here :
http://processors.wiki.ti.com/index.php/DM365_Nand_ECC_layout

A solution is to have a small dedicated partition that has the same ECC
layout as the Rom Boot Loader that contain a very basic bootloader (e.g.
TI's UBL) which then let you jump to U-Boot.

Having the RBL loading UBL to load U-Boot to finally start Linux was too
cumbersome for us so we just boot U-Boot directly from a SPI flash.

> Any ideas/help?  Should I ask this on a different list (please don't
> say e2e forums...)

Apart from the terrible user experience the site offers the persons
active on these forums are very helpful.

> Thanks

Hope it helped,

Best regards,

-- 
Christophe Aeschlimann

Embedded Software Engineer & IT Manager

ACN Advanced Communications Networks S.A.

Rue du Puits-Godet 8a
2000 Neuchâtel, Switzerland

Tél. +41 32 724 74 31
[email protected]
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to