[U-Boot] [U-Boot, U-boot, v2, 1/3] mtd: nand: davinci: add opportunity to write keystone U-boot image

Tom Rini trini at ti.com
Sat Jul 26 03:25:47 CEST 2014


On Fri, Jul 04, 2014 at 03:03:25PM +0300, Khoronzhuk, Ivan wrote:

> The Keystone SoCs use the same NAND driver as Davinci.
> This patch adds opportunity to write Keystone U-boot image to NAND
> device using appropriate RBL ECC layout. This is needed only if RBL
> boots U-boot from NAND device and that's supposed that raw u-boot
> partition is used only for writing image.
> 
> The main problem is that default Davinci ECC layout is different from
> Keystone RBL layout. To read U-boot image the RBL needs that image was
> written using RBL ECC layout.
> 
> The BBT table is written using default Davinci layout and has to
> be updated using one. The BBT can be updated only while erasing
> chip or by forced bad block assigning, so erase function has to
> use native ecc layout in order to be able to write BBT correctly.
> So if we're writing to NAND U-boot address we use RBL layout for
> others we use default ECC layout.
> 
> Also remove definition for CONFIG_CMD_NAND_ECCLAYOUT as there is no
> reasons to use ECC layout commands. It was added by mistake.
> 
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk at ti.com>

Applied to u-boot-ti/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140725/ead5419c/attachment.pgp>


More information about the U-Boot mailing list