]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y
authorMarek Vasut <marex@denx.de>
Mon, 1 Mar 2021 15:41:28 +0000 (16:41 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Mar 2021 15:51:11 +0000 (16:51 +0100)
commit2a41844b7742e282ee05f46e35dd20a0d748ebd0
tree4a7d80474e1a693e77a9f924751afc1df606eff5
parent1e7f1786cd08d0bd9480ad9049787b3a4793a0af
ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y

The u-boot-with-spl.imx is a concatenation of SPL and u-boot.uim.
The u-boot.uim is u-boot.bin wrapped in uImage. In case OF_SEPARATE
is enabled, the u-boot.bin does not contain control DT for U-Boot,
and so u-boot.uim does not contain the DT, and so u-boot-with-spl.imx
does not contain the DT, and a system where u-boot-with-spl.imx is
written to offset 1024B to the start of storage no longer boots, as
it is missing DT.

In case OF_SEPARATE is enabled, u-boot.img contains both u-boot.bin
and the necessary DTs. Therefore, use u-boot.img instead of u-boot.uim
to generate u-boot-with-spl.imx when OF_SEPARATE is enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Ye Li <ye.li@nxp.com>
Cc: uboot-imx <uboot-imx@nxp.com>
Makefile
arch/arm/mach-imx/Makefile