]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: imx: add u-boot-nand.imx to boot from NAND without SPL
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 10 Mar 2023 10:07:52 +0000 (11:07 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Apr 2023 07:35:39 +0000 (09:35 +0200)
commit95942f99a7057359c07bf383214d57154e2466fe
treeb07394e657c944af10db5adb2898a13367968221
parentd08c00082183dc6a2301690678794d2b80e75258
arm: imx: add u-boot-nand.imx to boot from NAND without SPL

U-Boot can be booted from NAND without SPL by prepending the DCD header to
the actual U-Boot binary. However this requires prepending 1024 bytes to
u-boot.imx (DCD + u-boot.bin).

There is already a similar target to build spl/u-boot-nand-spl.imx, add the
same option for no-SPL boot.

Tested on i.MX6ULL.

The resulting layout of u-boot-nand.imx is:

 - Offset 0x0000 (0 KiB): padding
 - Offset 0x0400 (1 KiB): DCD header
 - Offset 0x1000 (4 KiB): u-boot.bin

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Makefile
arch/arm/mach-imx/Makefile