ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y
Subsystems (4)
PATCH v3 1/1 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.
---
V2: Swap the u-boot.uim <-> u-boot.img in the conditional so this would
match the patch which Fabio originally tested
V3: - Correct the u-boot.img/u-boot.uim dependency in top-level Makefile
- Drop TB from Fabio, this needs to be retested
--- Makefile | 2 +- arch/arm/mach-imx/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Makefile +1 -1
@@ -1542,7 +1542,7 @@ flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE endif endif -u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE +u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL $(if $(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE)
arch/arm/mach-imx/Makefile +2 -2
@@ -202,10 +202,10 @@ append = cat $(filter-out $< $(PHONY), $^) >> $@ quiet_cmd_pad_cat = CAT $@ cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@ -u-boot-with-spl.imx: SPL u-boot.uim FORCE +u-boot-with-spl.imx: SPL $(if $(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE $(call if_changed,pad_cat) -u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx u-boot.uim FORCE +u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx $(if $(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE $(call if_changed,pad_cat) quiet_cmd_u-boot-nand-spl_imx = GEN $@
Signature · 1 line
2.29.2
PATCH v3 1/1 ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y
From: Marek Vasut [mailto:marex at denx.de]
Sent: Thursday, February 4, 2021 7:00 PM
Quoted 74 lines
To: u-boot at lists.denx.de
Cc: Marek Vasut <[email protected]>; Christoph Niedermaier <cniedermaier@dh- electronics.com>; Fabio Estevam <[email protected]>; Peng Fan <[email protected]>; Simon Glass <[email protected]>; Stefano Babic <[email protected]>; Ye Li <[email protected]>; uboot-imx <[email protected]>
Subject: [PATCH V3] ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=yACHTUNG: Diese E-Mail kommt aus dem Internet und nicht aus unserem Firmennetzwerk!
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_SEPARATEis 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_SEPARATEis 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 whenOF_SEPARATEis enabled.Signed-off-by Marek Vasut <[email protected]>Cc Christoph Niedermaier <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Simon Glass <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>Cc uboot-imx <[email protected]>---
V2: Swap the u-boot.uim <-> u-boot.img in the conditional so this would
match the patch which Fabio originally tested
V3: - Correct the u-boot.img/u-boot.uim dependency in top-levelMakefile
- Drop TB from Fabio, this needs to be retested--- Makefile | 2 +- arch/arm/mach-imx/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)Makefile +1
-1@@ -1542,7 +1542,7 @@ flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE endif endif -u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE +u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL $(if$(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e
$(CONFIG_SYS_TEXT_BASE)arch/arm/mach-imx/Makefile +1
-1@@ -202,10 +202,10 @@ append = cat $(filter-out $< $(PHONY), $^) >> $@ quiet_cmd_pad_cat = CAT $@ cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@ -u-boot-with-spl.imx: SPL u-boot.uim FORCE +u-boot-with-spl.imx: SPL $(if $(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE
$(call if_changed,pad_cat)arch/arm/mach-imx/Makefile +1
-1-u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx u-boot.uim FORCE +u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx $(if$(CONFIG_OF_SEPARATE),u-boot.img,u-boot.uim) FORCE
Quoted 5 lines
$(call if_changed,pad_cat)quiet_cmd_u-boot-nand-spl_imx = GEN $@
--
2.29.2
Best regards
Christoph Niedermaier
____________________________________________________________________________________
DH electronics GmbH | Am Anger 8 | 83346 Bergen | Germany | Fon: +49 8662 4882 0 HRB Traunstein 9602 | Ust Id Nr.: DE174205805 Board of Management | Dipl.-Ing.(FH) Stefan Daxenberger | Dipl.-Ing.(FH) Helmut Henschke