imx: add writebcb command
authorStefan Agner <stefan.agner@toradex.com>
Thu, 16 Oct 2014 07:49:34 +0000 (09:49 +0200)
committerStefan Agner <stefan@agner.ch>
Tue, 14 Apr 2015 07:08:09 +0000 (09:08 +0200)
commitb004926168f3bc15f9e26f14c16ae60a252b1304
treecc017fb1d5efa5df8cec951fa08ff01c787d22cf
parent55380b56efef3f3bb1dc9c128c3ce2be56e653a3
imx: add writebcb command

Add writebcb command which creates a NAND Boot Configuration Block
(BCB) at the beginning of the active flash device. The BCB stores
the information for the SoC internal boot ROM where the application
with a valid IVT header can be found on the NAND device. The first
two argument of the command need an offset of the NAND device where
the primary and secondary application can be found.

Typically, U-Boot is the application which gets loaded by the boot
ROM. Hence, the offset address need to be the address where U-Boot
(u-boot.imx along with a 0x400 long prefix) is stored on the device.
At least one location is mandatory.

Currently only the FCB (Firmware Configuration Block) is written to
the device. The DBBT (Discovered Bad Block Table) is optional and
not created by writebcb currently.
arch/arm/imx-common/Makefile
arch/arm/imx-common/cmd_writebcb.c [new file with mode: 0644]
include/configs/colibri_vf.h