diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2024-09-11 09:46:22 -0700 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2024-09-14 21:23:00 -0300 |
commit | c3de76272c3db540d1c4e45c3bc908673d81f07e (patch) | |
tree | 2feea6e9c70179773f6df60f714b932756e61240 /recipes-bsp | |
parent | a154db932b97080cd36abd96c53a407a0624b342 (diff) | |
download | meta-freescale-uuu.tar.gz |
boot: Fix UUU tagging, extend to fslcuuu
Using the UUU-tagged bootloader image directly with UUU can cause UUU
to hang. The bootloader image is split on a certain transmit size, and
the hang occurs if the tag does not fit with the final bytes of the
bootloader image and must be split into a new transmit package.
The UUU tag is needed by UUU only in the SD Card image file itself so
that UUU can find the end of the boot partition.
Rework the design so the default bootloader and the default imx-boot
binaries are not tagged.
Also, extend the UUU tagging to fslc so it can gain the same benefit.
Fixes: https://github.com/Freescale/meta-freescale/pull/1762
Fixes: https://github.com/nxp-imx/mfgtools/issues/416
Co-authored-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/imx-mkimage/imx-boot_1.0.bb | 4 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-fslc_2024.07.bb | 5 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2024.04.bb | 13 |
3 files changed, 8 insertions, 14 deletions
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index 06832fc46..fb2499196 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
@@ -22,9 +22,7 @@ DEPENDS:append:mx93-generic-bsp = " u-boot-mkimage-native dtc-native" | |||
22 | 22 | ||
23 | inherit deploy uuu_bootloader_tag | 23 | inherit deploy uuu_bootloader_tag |
24 | 24 | ||
25 | UUU_BOOTLOADER = "imx-boot" | 25 | UUU_BOOTLOADER = "imx-boot" |
26 | UUU_BOOTLOADER_TAGGED = "imx-boot-tagged" | ||
27 | UUU_BOOTLOADER_UNTAGGED = "imx-boot-untagged" | ||
28 | 26 | ||
29 | # Add CFLAGS with native INCDIR & LIBDIR for imx-mkimage build | 27 | # Add CFLAGS with native INCDIR & LIBDIR for imx-mkimage build |
30 | CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}" | 28 | CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR_NATIVE} -L ${STAGING_LIBDIR_NATIVE}" |
diff --git a/recipes-bsp/u-boot/u-boot-fslc_2024.07.bb b/recipes-bsp/u-boot/u-boot-fslc_2024.07.bb index eba8876aa..4dc698219 100644 --- a/recipes-bsp/u-boot/u-boot-fslc_2024.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc_2024.07.bb | |||
@@ -6,8 +6,6 @@ order to provide support for some backported features and fixes, or because it \ | |||
6 | was submitted for revision and it takes some time to become part of a stable \ | 6 | was submitted for revision and it takes some time to become part of a stable \ |
7 | version, or because it is not applicable for upstreaming." | 7 | version, or because it is not applicable for upstreaming." |
8 | 8 | ||
9 | inherit ${@oe.utils.ifelse(d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '1', 'imx-boot-container', '')} | ||
10 | |||
11 | DEPENDS += "bc-native dtc-native python3-setuptools-native gnutls-native" | 9 | DEPENDS += "bc-native dtc-native python3-setuptools-native gnutls-native" |
12 | 10 | ||
13 | PROVIDES += "u-boot u-boot-mfgtool" | 11 | PROVIDES += "u-boot u-boot-mfgtool" |
@@ -21,5 +19,8 @@ EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | |||
21 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ | 19 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ |
22 | HOSTSTRIP=true' | 20 | HOSTSTRIP=true' |
23 | 21 | ||
22 | inherit ${@oe.utils.ifelse(d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '1', 'imx-boot-container', '')} | ||
23 | inherit uuu_bootloader_tag | ||
24 | |||
24 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 25 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
25 | COMPATIBLE_MACHINE = "(imx-generic-bsp)" | 26 | COMPATIBLE_MACHINE = "(imx-generic-bsp)" |
diff --git a/recipes-bsp/u-boot/u-boot-imx_2024.04.bb b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb index 3d03c8349..aff04279c 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2024.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb | |||
@@ -9,15 +9,10 @@ PROVIDES += "u-boot u-boot-mfgtool" | |||
9 | 9 | ||
10 | inherit uuu_bootloader_tag | 10 | inherit uuu_bootloader_tag |
11 | 11 | ||
12 | UUU_BOOTLOADER = "" | 12 | # The UUU tag goes on the boot partition 8+, the boot partition image is imx-boot, and UUU-tagging |
13 | UUU_BOOTLOADER:mx6-generic-bsp = "${UBOOT_BINARY}" | 13 | # is disabled. |
14 | UUU_BOOTLOADER:mx7-generic-bsp = "${UBOOT_BINARY}" | 14 | UUU_BOOTLOADER:mx8-generic-bsp = "" |
15 | UUU_BOOTLOADER_TAGGED = "" | 15 | UUU_BOOTLOADER:mx9-generic-bsp = "" |
16 | UUU_BOOTLOADER_TAGGED:mx6-generic-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" | ||
17 | UUU_BOOTLOADER_TAGGED:mx7-generic-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" | ||
18 | UUU_BOOTLOADER_UNTAGGED = "" | ||
19 | UUU_BOOTLOADER_UNTAGGED:mx6-generic-bsp = "u-boot-untagged.${UBOOT_SUFFIX}" | ||
20 | UUU_BOOTLOADER_UNTAGGED:mx7-generic-bsp = "u-boot-untagged.${UBOOT_SUFFIX}" | ||
21 | 16 | ||
22 | do_deploy:append:mx8m-generic-bsp() { | 17 | do_deploy:append:mx8m-generic-bsp() { |
23 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | 18 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary |