]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-imx: upgrade to imx_v2020.04_5.4.24_2.1.0
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Tue, 18 Aug 2020 09:59:11 +0000 (09:59 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 15 Sep 2020 12:13:13 +0000 (09:13 -0300)
Drop patch appplied upstream, remove additional install step which is
handled by imx-boot recipe.

Update u-boot dtb names in machine description files, upstream U-Boot
from NXP has DTB files renamed.

Upgrade u-boot-imx-tools and u-boot-imx-mfgtool to 2020.04 as well to
match u-boot-imx recipe.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
conf/machine/imx8mmevk.conf
conf/machine/imx8mnevk.conf
conf/machine/imx8mqevk.conf
recipes-bsp/u-boot/u-boot-imx-common.inc
recipes-bsp/u-boot/u-boot-imx-mfgtool_2020.04.bb [moved from recipes-bsp/u-boot/u-boot-imx-mfgtool_2019.04.bb with 100% similarity]
recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb [moved from recipes-bsp/u-boot/u-boot-imx-tools_2019.04.bb with 100% similarity]
recipes-bsp/u-boot/u-boot-imx/0001-Add-target-to-generate-initial-environment.patch [deleted file]
recipes-bsp/u-boot/u-boot-imx_2020.04.bb [moved from recipes-bsp/u-boot/u-boot-imx_2019.04.bb with 83% similarity]

index 57d74d9c315220ad32e01c10e0690a2df5387c81..db722c723c2f481781634f74e50c77939ad70c6c 100644 (file)
@@ -39,7 +39,7 @@ SPL_BINARY = "spl/u-boot-spl.bin"
 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
 
 # Set u-boot DTB
-UBOOT_DTB_NAME = "fsl-imx8mm-evk.dtb"
+UBOOT_DTB_NAME = "imx8mm-evk.dtb"
 
 # Set imx-mkimage boot target
 IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}"
index cc92ac7cfcd014da6b2198121e32fa9d8c826a15..80d77ac8efc06fbbc46956a9ade0e7e6566b5856 100644 (file)
@@ -36,7 +36,7 @@ DDR_FIRMWARE_NAME = "ddr4_imem_1d_201810.bin \
                      ddr4_dmem_2d_201810.bin"
 
 # Set u-boot DTB
-UBOOT_DTB_NAME = "fsl-imx8mn-ddr4-evk.dtb"
+UBOOT_DTB_NAME = "imx8mn-ddr4-evk.dtb"
 
 # Set imx-mkimage boot target
 IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_ddr4_evk_flexspi', 'flash_ddr4_evk', d)}"
index 25e03093539f16fd929381e82e080b73295e4eeb..2c9c8c29370a5dc75ce920525b5e166958004a7a 100644 (file)
@@ -41,7 +41,7 @@ SPL_BINARY = "spl/u-boot-spl.bin"
 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
 
 # Set u-boot DTB
-UBOOT_DTB_NAME = "fsl-imx8mq-evk.dtb"
+UBOOT_DTB_NAME = "imx8mq-evk.dtb"
 
 # Set imx-mkimage boot target
 IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi flash_dp_evk"
index a2d2ed01ec3ae5dd913dec07f304280a52e01795..e5f15b12ad2146289c8940d3e829b3fde40199b0 100644 (file)
@@ -3,9 +3,9 @@ DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRCBRANCH = "lf-5.4.y_v2019.04"
+SRCBRANCH = "imx_v2020.04_5.4.24_2.1.0"
 SRC_URI = "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https;branch=${SRCBRANCH}"
-SRCREV = "228843cdf5435d4bd69f42a6015f78761ff4cc0d"
+SRCREV = "4979a99482f7e04a3c1f4fb55e3182395ee8f710"
 
 DEPENDS += "flex-native bison-native bc-native dtc-native"
 
diff --git a/recipes-bsp/u-boot/u-boot-imx/0001-Add-target-to-generate-initial-environment.patch b/recipes-bsp/u-boot/u-boot-imx/0001-Add-target-to-generate-initial-environment.patch
deleted file mode 100644 (file)
index c717e02..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-From bdaa73a5b3923257add182b4ab8058dbfa33421b Mon Sep 17 00:00:00 2001
-From: Stefano Babic <sbabic@denx.de>
-Date: Wed, 13 Mar 2019 09:46:45 +0100
-Subject: [PATCH] Add target to generate initial environment
-
-The initial environment is linked to the u-boot binary. Modifying the
-environment from User Space with the env tools requires that the tools
-are always built together with the bootloader to be sure that they
-contain the initial environment in case no environment is stored into
-persistent storage or when a board boots with just the default
-environment. This makes difficult for distros to provide a general
-package to access the environment. A simpler way is if the tools are
-generic for all boards and a configuration file is given to provide the
-initial environment.
-
-The patch just generates the initial environment by extracting it from
-the compiled object. This file can then be used for tools in user space
-to initialize the environment.
-
-Signed-off-by: Stefano Babic <sbabic@denx.de>
-
-Upstream-Status: Backport [https://github.com/u-boot/u-boot/commit/bdaa73a5b3923257add182b4ab8058dbfa33421b]
-
-Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
----
- Makefile | 7 +++++++
- 1 file changed, 7 insertions(+)
-
-diff --git a/Makefile b/Makefile
-index 66a09ac900..f2c7bb6041 100644
---- a/Makefile
-+++ b/Makefile
-@@ -1977,6 +1977,13 @@ endif
-       $(build)=$(build-dir) $(@:.ko=.o)
-       $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
-+quiet_cmd_genenv = GENENV $@
-+cmd_genenv = $(OBJCOPY) --dump-section .rodata.default_environment=$@ env/common.o; \
-+      sed --in-place -e 's/\x00/\x0A/g' $@
-+
-+u-boot-initial-env: u-boot.bin
-+      $(call if_changed,genenv)
-+
- # Consistency checks
- # ---------------------------------------------------------------------------
--- 
-2.17.1
-
similarity index 83%
rename from recipes-bsp/u-boot/u-boot-imx_2019.04.bb
rename to recipes-bsp/u-boot/u-boot-imx_2020.04.bb
index d37ede83448c6ed7711ebf9520fc58af0ddf1f9d..b36730e09c1a8b2619f29f82667a3c7609e88442 100644 (file)
@@ -1,12 +1,10 @@
 # Copyright (C) 2013-2016 Freescale Semiconductor
 # Copyright 2018 (C) O.S. Systems Software LTDA.
-# Copyright 2017-2019 NXP
+# Copyright (C) 2017-2020 NXP
 
 require recipes-bsp/u-boot/u-boot.inc
 require u-boot-imx-common.inc
 
-SRC_URI += "file://0001-Add-target-to-generate-initial-environment.patch"
-
 PROVIDES += "u-boot"
 
 do_deploy_append_mx8m() {
@@ -21,7 +19,6 @@ do_deploy_append_mx8m() {
                 then
                     install -d ${DEPLOYDIR}/${BOOT_TOOLS}
                     install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME}  ${DEPLOYDIR}/${BOOT_TOOLS}
-                    install -m 0777 ${B}/${config}/tools/mkimage  ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
                     install -m 0777 ${B}/${config}/u-boot-nodtb.bin  ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG}
                 fi
             done