From: Marek Vasut Date: Mon, 1 Feb 2021 14:20:34 +0100 Subject: MX6sabresd broken since v2019.04 In-Reply-To: References: <010c224b-25db-0845-5c2a-33bcd3254565@denx.de> <364a433e-0e60-34d2-ee00-a11982c5abee@denx.de> <32940bcf-9549-5e5f-6f3e-c7ce2f70dcb2@denx.de> Message-ID: <4a6c1d6c-48dd-8df1-e94d-b8a8d7aa4556@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/1/21 2:09 PM, Fabio Estevam wrote: > On Mon, Feb 1, 2021 at 10:01 AM Marek Vasut wrote: > >> I think >> u-boot-with-spl.imx: SPL u-boot.uim FORCE >> should really be >> u-boot-with-spl.imx: SPL u-boot.img FORCE >> under certain (which ?) conditions. >> >> Can you take a look into that ? > > I tried your suggestion and it boots now: > > U-Boot SPL 2021.01-dirty (Feb 01 2021 - 10:07:21 -0300) > Trying to boot from MMC1 > > > U-Boot 2021.01-dirty (Feb 01 2021 - 10:07:21 -0300) But, it also likely breaks other boards, which still use plain uImage instead of fitImage. So there needs to be some conditional in the Makefile. Something like this maybe ? diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 1aa26a50ad..e6b4654cd3 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -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 $@