diff options
author | Hiago De Franco <hiago.franco@toradex.com> | 2024-07-26 17:13:24 -0300 |
---|---|---|
committer | Hiago De Franco <hiago.franco@toradex.com> | 2024-08-27 14:09:10 -0300 |
commit | 313b97767ccd43ea2260ba58565260a40f649a15 (patch) | |
tree | 09d0a6931821c5abb2088d36fd3a30773510ff56 | |
parent | 94c5a37be31b3943cf7a99c94ae11dd4f5030d04 (diff) | |
download | meta-freescale-313b97767ccd43ea2260ba58565260a40f649a15.tar.gz |
imx-mkimage: imx-boot: Update 6.6.3-1.0.0 to 6.6.23-2.0.0
Update recipes to NXP BSP version 6.6.23-2.0.0.
This commit introduces the 'imx95' target.
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
(cherry picked from commit d4d7d9a80e471dfd70d738091ee256c0c64ff071)
-rw-r--r-- | recipes-bsp/imx-mkimage/imx-boot_1.0.bb | 59 | ||||
-rw-r--r-- | recipes-bsp/imx-mkimage/imx-mkimage_git.inc | 6 |
2 files changed, 60 insertions, 5 deletions
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index 0bb7dd95a..2c9642147 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
@@ -41,6 +41,9 @@ do_compile[depends] += " \ | |||
41 | 41 | ||
42 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" | 42 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" |
43 | 43 | ||
44 | OEI_ENABLE = "${@bb.utils.contains('DEPENDS', 'imx-oei', 'YES', 'NO', d)}" | ||
45 | OEI_NAME ?= "oei-${OEI_CORE}-*.bin" | ||
46 | |||
44 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" | 47 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" |
45 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" | 48 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" |
46 | 49 | ||
@@ -60,6 +63,7 @@ BOOT_STAGING:mx8m-generic-bsp = "${S}/iMX8M" | |||
60 | BOOT_STAGING:mx8dx-generic-bsp = "${S}/iMX8QX" | 63 | BOOT_STAGING:mx8dx-generic-bsp = "${S}/iMX8QX" |
61 | BOOT_STAGING:mx91p-generic-bsp = "${S}/iMX91" | 64 | BOOT_STAGING:mx91p-generic-bsp = "${S}/iMX91" |
62 | BOOT_STAGING:mx93-generic-bsp = "${S}/iMX93" | 65 | BOOT_STAGING:mx93-generic-bsp = "${S}/iMX93" |
66 | BOOT_STAGING:mx95-generic-bsp = "${S}/iMX95" | ||
63 | 67 | ||
64 | SOC_FAMILY = "INVALID" | 68 | SOC_FAMILY = "INVALID" |
65 | SOC_FAMILY:mx8-generic-bsp = "mx8" | 69 | SOC_FAMILY:mx8-generic-bsp = "mx8" |
@@ -68,10 +72,25 @@ SOC_FAMILY:mx8x-generic-bsp = "mx8x" | |||
68 | SOC_FAMILY:mx8ulp-generic-bsp = "mx8ulp" | 72 | SOC_FAMILY:mx8ulp-generic-bsp = "mx8ulp" |
69 | SOC_FAMILY:mx91p-generic-bsp = "mx93" | 73 | SOC_FAMILY:mx91p-generic-bsp = "mx93" |
70 | SOC_FAMILY:mx93-generic-bsp = "mx93" | 74 | SOC_FAMILY:mx93-generic-bsp = "mx93" |
75 | SOC_FAMILY:mx95-generic-bsp = "mx95" | ||
71 | 76 | ||
72 | REV_OPTION ?= "REV=${IMX_SOC_REV_UPPER}" | 77 | REV_OPTION ?= "REV=${IMX_SOC_REV_UPPER}" |
73 | 78 | ||
74 | UBOOT_DTB_BINARY ?= "u-boot.dtb" | 79 | UBOOT_DTB_BINARY ?= "u-boot.dtb" |
80 | MKIMAGE_EXTRA_ARGS ?= "" | ||
81 | MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp ?= " \ | ||
82 | OEI=${OEI_ENABLE} \ | ||
83 | LPDDR_TYPE=${DDR_TYPE} \ | ||
84 | ${@bb.utils.contains('SYSTEM_MANAGER_CONFIG', 'mx95alt', 'MSEL=1', '', d)}" | ||
85 | MKIMAGE_EXTRA_ARGS:imx95-19x19-verdin ?= " \ | ||
86 | ${MKIMAGE_EXTRA_ARGS:mx95-nxp-bsp} \ | ||
87 | QSPI_HEADER=./scripts/fspi_header_133" | ||
88 | |||
89 | do_uboot_assemble_fitimage:prepend:imx-generic-bsp() { | ||
90 | for config in ${UBOOT_MACHINE}; do | ||
91 | mkdir -p ${B}/${config} | ||
92 | done | ||
93 | } | ||
75 | 94 | ||
76 | compile_mx8m() { | 95 | compile_mx8m() { |
77 | bbnote 8MQ/8MM/8MN/8MP boot binary build | 96 | bbnote 8MQ/8MM/8MN/8MP boot binary build |
@@ -153,12 +172,29 @@ compile_mx93() { | |||
153 | fi | 172 | fi |
154 | } | 173 | } |
155 | 174 | ||
175 | compile_mx95() { | ||
176 | bbnote i.MX 95 boot binary build | ||
177 | compile_mx93 | ||
178 | |||
179 | cp ${DEPLOY_DIR_IMAGE}/${SYSTEM_MANAGER_FIRMWARE_NAME}.bin \ | ||
180 | ${BOOT_STAGING}/${SYSTEM_MANAGER_FIRMWARE_BASENAME}.bin | ||
181 | } | ||
182 | |||
156 | do_compile() { | 183 | do_compile() { |
157 | # mkimage for i.MX8 | 184 | # mkimage for i.MX8 |
158 | # Copy TEE binary to SoC target folder to mkimage | 185 | # Copy TEE binary to SoC target folder to mkimage |
159 | if ${DEPLOY_OPTEE}; then | 186 | if ${DEPLOY_OPTEE}; then |
160 | cp ${DEPLOY_DIR_IMAGE}/tee.bin ${BOOT_STAGING} | 187 | cp ${DEPLOY_DIR_IMAGE}/tee.bin ${BOOT_STAGING} |
188 | if ${DEPLOY_OPTEE_STMM}; then | ||
189 | # Copy tee.bin to tee.bin-stmm | ||
190 | cp ${DEPLOY_DIR_IMAGE}/tee.bin ${BOOT_STAGING}/tee.bin-stmm | ||
191 | fi | ||
161 | fi | 192 | fi |
193 | # Copy OEI firmware to SoC target folder to mkimage | ||
194 | if [ "${OEI_ENABLE}" = "YES" ]; then | ||
195 | cp ${DEPLOY_DIR_IMAGE}/${OEI_NAME} ${BOOT_STAGING} | ||
196 | fi | ||
197 | |||
162 | for type in ${UBOOT_CONFIG}; do | 198 | for type in ${UBOOT_CONFIG}; do |
163 | if [ "${@d.getVarFlags('UBOOT_DTB_NAME')}" = "None" ]; then | 199 | if [ "${@d.getVarFlags('UBOOT_DTB_NAME')}" = "None" ]; then |
164 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" | 200 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" |
@@ -190,9 +226,16 @@ do_compile() { | |||
190 | # Special target build for i.MX 8DXL with V2X off | 226 | # Special target build for i.MX 8DXL with V2X off |
191 | bbnote "building ${IMX_BOOT_SOC_TARGET} - ${REV_OPTION} V2X=NO ${target}" | 227 | bbnote "building ${IMX_BOOT_SOC_TARGET} - ${REV_OPTION} V2X=NO ${target}" |
192 | make SOC=${IMX_BOOT_SOC_TARGET} ${REV_OPTION} V2X=NO dtbs=${UBOOT_DTB_NAME_EXTRA} flash_linux_m4 | 228 | make SOC=${IMX_BOOT_SOC_TARGET} ${REV_OPTION} V2X=NO dtbs=${UBOOT_DTB_NAME_EXTRA} flash_linux_m4 |
229 | elif [[ $target == *sttm_capsule ]]; then | ||
230 | # target for flash_evk_stmm_capsule or | ||
231 | # flash_singleboot_stmm_capsule | ||
232 | cp ${RECIPE_SYSROOT_NATIVE}/${bindir}/mkeficapsule ${BOOT_STAGING} | ||
233 | bbnote "building ${IMX_BOOT_SOC_TARGET} - TEE=tee.bin-stmm ${target}" | ||
234 | cp ${DEPLOY_DIR_IMAGE}/CRT.* ${BOOT_STAGING} | ||
235 | make SOC=${IMX_BOOT_SOC_TARGET} TEE=tee.bin-stmm dtbs=${UBOOT_DTB_NAME} ${REV_OPTION} ${target} | ||
193 | else | 236 | else |
194 | bbnote "building ${IMX_BOOT_SOC_TARGET} - ${REV_OPTION} ${target}" | 237 | bbnote "building ${IMX_BOOT_SOC_TARGET} - ${REV_OPTION} ${MKIMAGE_EXTRA_ARGS} ${target}" |
195 | make SOC=${IMX_BOOT_SOC_TARGET} ${REV_OPTION} dtbs=${UBOOT_DTB_NAME_EXTRA} ${target} | 238 | make SOC=${IMX_BOOT_SOC_TARGET} ${REV_OPTION} ${MKIMAGE_EXTRA_ARGS} dtbs=${UBOOT_DTB_NAME} ${target} |
196 | fi | 239 | fi |
197 | if [ -e "${BOOT_STAGING}/flash.bin" ]; then | 240 | if [ -e "${BOOT_STAGING}/flash.bin" ]; then |
198 | cp ${BOOT_STAGING}/flash.bin ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} | 241 | cp ${BOOT_STAGING}/flash.bin ${S}/${BOOT_CONFIG_MACHINE_EXTRA}-${target} |
@@ -291,6 +334,12 @@ deploy_mx93() { | |||
291 | fi | 334 | fi |
292 | } | 335 | } |
293 | 336 | ||
337 | deploy_mx95() { | ||
338 | deploy_mx93 | ||
339 | install -m 0644 ${BOOT_STAGING}/${SYSTEM_MANAGER_FIRMWARE_BASENAME}.bin \ | ||
340 | ${DEPLOYDIR}/${BOOT_TOOLS}/${SYSTEM_MANAGER_FIRMWARE_NAME}.bin | ||
341 | } | ||
342 | |||
294 | do_deploy() { | 343 | do_deploy() { |
295 | deploy_${SOC_FAMILY} | 344 | deploy_${SOC_FAMILY} |
296 | 345 | ||
@@ -298,6 +347,12 @@ do_deploy() { | |||
298 | if ${DEPLOY_OPTEE}; then | 347 | if ${DEPLOY_OPTEE}; then |
299 | install -m 0644 ${DEPLOY_DIR_IMAGE}/tee.bin ${DEPLOYDIR}/${BOOT_TOOLS} | 348 | install -m 0644 ${DEPLOY_DIR_IMAGE}/tee.bin ${DEPLOYDIR}/${BOOT_TOOLS} |
300 | fi | 349 | fi |
350 | |||
351 | # copy oei to deploy path | ||
352 | if [ "${OEI_ENABLE}" = "YES" ]; then | ||
353 | install -m 0644 ${BOOT_STAGING}/${OEI_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
354 | fi | ||
355 | |||
301 | # copy makefile (soc.mak) for reference | 356 | # copy makefile (soc.mak) for reference |
302 | install -m 0644 ${BOOT_STAGING}/soc.mak ${DEPLOYDIR}/${BOOT_TOOLS} | 357 | install -m 0644 ${BOOT_STAGING}/soc.mak ${DEPLOYDIR}/${BOOT_TOOLS} |
303 | 358 | ||
diff --git a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc index fb3df750a..9b03d3924 100644 --- a/recipes-bsp/imx-mkimage/imx-mkimage_git.inc +++ b/recipes-bsp/imx-mkimage/imx-mkimage_git.inc | |||
@@ -1,12 +1,12 @@ | |||
1 | # Copyright 2017-2022 NXP | 1 | # Copyright 2017-2023 NXP |
2 | 2 | ||
3 | DEPENDS = "zlib-native openssl-native" | 3 | DEPENDS = "zlib-native openssl-native" |
4 | 4 | ||
5 | SRC_URI = "git://github.com/nxp-imx/imx-mkimage.git;protocol=https;branch=${SRCBRANCH} \ | 5 | SRC_URI = "git://github.com/nxp-imx/imx-mkimage.git;protocol=https;branch=${SRCBRANCH} \ |
6 | file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \ | 6 | file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \ |
7 | " | 7 | " |
8 | SRCBRANCH = "lf-6.6.3_1.0.0" | 8 | SRCBRANCH = "lf-6.6.23_2.0.0" |
9 | SRCREV = "cbb99377cc2bb8f7cf213794c030e1c60423ef1f" | 9 | SRCREV = "ca5d6b2d3fd9ab15825b97f7ef6f1ce9a8644966" |
10 | 10 | ||
11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
12 | 12 | ||