meta-ti-bsp: Build R5 bootloader without multiconfig
RFC 1/1 meta-ti-bsp: Build R5 bootloader without multiconfig
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment. Using multiconfig pulls in a large number of build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
--- meta-ti-bsp/classes/ti-secdev.bbclass | 3 - .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ meta-ti-bsp/conf/machine/include/k3.inc | 4 +- meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 - .../u-boot/tiboot3-staging_2023.5.bb | 65 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 2 - meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ 44 files changed, 152 insertions(+), 303 deletions(-) delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
meta-ti-bsp/classes/ti-secdev.bbclass +0 -3
@@ -2,14 +2,11 @@ # K3 SECDEV scripts use OpenSSL DEPENDS:append:k3 = " openssl-native" -DEPENDS:append:k3r5 = " openssl-native" # Use package version of TI SECDEV for K3 if one is not provided through the environment DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev" TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" # For non-K3 we require the SECDEV tools be provided through the environment with the following vars TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62A HS-FS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62ax" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am62axx-evm.conf +5 -0
@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62a7-sk.dtb \ " +SYSFW_SOC = "am62ax" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig" UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf deleted +0 -12
@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62PX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62px" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am62pxx-evm.conf +5 -0
@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62p5-sk.dtb \ " +SYSFW_SOC = "am62px" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig" UBOOT_MACHINE = "am62px_evm_a53_defconfig"
meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf deleted +0 -12
@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am62xx-evm.conf +5 -0
@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig"
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX LP GP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
meta-ti-bsp/conf/machine/am62xx-lp-evm.conf +5 -0
@@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62-lp-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig" UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0 -16
@@ -1,16 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX SIP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig" - -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
meta-ti-bsp/conf/machine/am62xxsip-evm.conf +10 -0
@@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" + +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM64xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am64x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am64xx-evm.conf +5 -0
@@ -4,4 +4,9 @@ require conf/machine/include/am64xx.inc +SYSFW_SOC = "am64x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + UBOOT_MACHINE = "am64x_evm_a53_defconfig" +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am65xx-evm.conf +5 -0
@@ -4,6 +4,11 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am65xx-hs-evm.conf +5 -0
@@ -4,4 +4,9 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig"
meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf deleted +0 -17
@@ -1,17 +0,0 @@ -#@TYPE: Machine -#@NAME: BeagleBone AI-64 (R5F) -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf +5 -0
@@ -4,6 +4,11 @@ require conf/machine/include/j721e.inc +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
meta-ti-bsp/conf/machine/beagleplay-k3r5.conf deleted +0 -14
@@ -1,14 +0,0 @@ -#@TYPE: Machine -#@NAME: BeaglePlay (R5F) -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) - -require conf/machine/include/k3r5.inc - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/beagleplay.conf +5 -0
@@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1" OPTEEMACHINE = "k3-am62x" +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
meta-ti-bsp/conf/machine/include/k3.inc +1 -3
@@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3" require conf/machine/include/arm/arch-arm64.inc -BBMULTICONFIG += "k3r5" - # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r0"
@@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi" WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" do_image_wic[depends] += "virtual/bootloader:do_deploy" -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" +do_image[depends] += "tiboot3-staging:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0 -27
@@ -1,27 +0,0 @@ -# TI K3 Armv7 profile for Cortex-R5F cores - -require conf/machine/include/ti-soc.inc -SOC_FAMILY:append = ":k3r5" - -# The closest of existing tunes for Cortex-R5F -DEFAULTTUNE = "armv7athf" -require conf/machine/include/arm/armv7a/tune-cortexa8.inc - -# R5 runs early bootloader and loads SYSFW -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" - -SPL_SUFFIX = "bin" -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" -UBOOT_SUFFIX = "bin" -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" - -PACKAGECONFIG:pn-u-boot-ti-staging = "" -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j7200-evm.conf +5 -0
@@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j7200-common-proc-board.dtb \ " +SYSFW_SOC = "j7200" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_config"
meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j7200-hs-evm.conf +5 -0
@@ -4,4 +4,9 @@ require conf/machine/j7200-evm.conf +SYSFW_SOC = "j7200_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_defconfig"
meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721e-evm.conf +5 -0
@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721e-sk.dtb \ " +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config"
meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e_sr1_1" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721e-hs-evm.conf +2 -1
@@ -4,4 +4,5 @@ require conf/machine/j721e-evm.conf -UBOOT_MACHINE = "j721e_evm_a72_defconfig" +SYSFW_SOC = "j721e_sr1_1" +SYSFW_SUFFIX = "hs"
meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721s2-evm.conf +5 -0
@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721s2-common-proc-board.dtb \ " +SYSFW_SOC = "j721s2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig" UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721s2-hs-evm.conf +2 -0
@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM require conf/machine/j721s2-evm.conf + +SYSFW_SUFFIX = "hs"
meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j784s4-evm.conf +5 -0
@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j784s4-evm.dtb \ " +SYSFW_SOC = "j784s4" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig" UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf deleted +0 -11
@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j784s4-hs-evm.conf +2 -0
@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM require conf/machine/j784s4-evm.conf + +SYSFW_SUFFIX = "hs"
meta-ti-bsp/conf/multiconfig/k3r5.conf deleted +0 -10
@@ -1,10 +0,0 @@ -MAINMACHINE := "${MACHINE}" - -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}" - -MACHINE:append = "-k3r5" -TCLIBC = "baremetal" -TI_TMPDIR_APPEND ?= "-k3r5" -TMPDIR:append = "${TI_TMPDIR_APPEND}" - -SDKPKGSUFFIX = "k3r5-nativesdk"
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0 -3
@@ -17,9 +17,6 @@ do_install() { } do_deploy(){ -} - -do_deploy:k3r5() { install -d ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +65 -0
65 lines not on this page · raw message
meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb +0 -2
@@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011" SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82" BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay" -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay" SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d" -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0 -40
@@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n # SYSFW/TIFS Firmware DEPENDS:append:k3 = " ti-sci-fw" -DEPENDS:append:k3r5 = " ti-sci-fw" DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
@@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot" # SPL (Second Program Loader) to be loaded over UART SPL_UART_BINARY = "u-boot-spl.bin" -SPL_UART_BINARY:k3r5 = "" SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
@@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" -do_compile:append:k3r5 () { - if [ -n "${UBOOT_CONFIG}" ]; - then - for config in ${UBOOT_MACHINE}; do - i=$(expr $i + 1); - for type in ${UBOOT_CONFIG}; do - j=$(expr $j + 1); - if [ $j -eq $i ]; - then - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} - fi - fi - done - unset j - done - unset i - else - if ! [ -f ${B}/${UBOOT_BINARY} ]; then - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} - fi - fi -} - do_install:append () { if [ -n "${UBOOT_CONFIG}" ] then
@@ -204,20 +178,6 @@ do_install:append () { fi } -do_deploy:append:k3r5 () { - for f in ${B}/tiboot3-*.bin; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done - - for f in ${B}/sysfw*.itb; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done -} - do_deploy:append () { if [ -n "${UBOOT_CONFIG}" ] then
Signature · 1 line
2.39.2
Quoted 80 lines · Andrew Davis
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment. Using multiconfig pulls in a large number of build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/classes/ti-secdev.bbclass | 3 - .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ meta-ti-bsp/conf/machine/include/k3.inc | 4 +- meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 - .../u-boot/tiboot3-staging_2023.5.bb | 65 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 2 - meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ 44 files changed, 152 insertions(+), 303 deletions(-)delete mode 100644
meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.confdelete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
Quoted 8 lines
delete mode 100644
meta-ti-bsp/conf/machine/j721e-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.confcreate mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
Hopefully the diffstat above speak for itself in how much this cleans up :) This also should let us now recombine the deploy directories and several other cleanups in tisdk-bundle that have continue to cause user confusion.
This is still and RFC as it needs more testing and a few more cleanups yet but wanted to get the idea out in the open for alignment before the final rounds of polishing.
Andrew
Quoted 17 lines · Andrew Davis
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment. Using multiconfig pulls in a large number of build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
Quoted 2 lines
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
On first glance, this looks good. Let me do some test builds.
Quoted 901 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/classes/ti-secdev.bbclass | 3 - .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ meta-ti-bsp/conf/machine/include/k3.inc | 4 +- meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 - .../u-boot/tiboot3-staging_2023.5.bb | 65 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 2 - meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ 44 files changed, 152 insertions(+), 303 deletions(-)delete mode 100644
meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.confdelete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721e-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.confcreate mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bbmeta-ti-bsp/classes/ti-secdev.bbclass +0
-3@@ -2,14 +2,11 @@ # K3 SECDEV scripts use OpenSSL DEPENDS:append:k3 = " openssl-native" -DEPENDS:append:k3r5 = " openssl-native" # Use package version of TI SECDEV for K3 if one is not provided through the environment DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev" TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" # For non-K3 we require the SECDEV tools be provided through the environment with the following vars TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62A HS-FS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62ax" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62axx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62a7-sk.dtb \ " +SYSFW_SOC = "am62ax" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig" UBOOT_MACHINE = "am62ax_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62PX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62px" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62px_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62pxx-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62p5-sk.dtb \ " +SYSFW_SOC = "am62px" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig" UBOOT_MACHINE = "am62px_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62xx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX LP GP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"meta-ti-bsp/conf/machine/am62xx-lp-evm.conf +5
-0@@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62-lp-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig" UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-16@@ -1,16 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX SIP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig" - -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"meta-ti-bsp/conf/machine/am62xxsip-evm.conf +10
-0@@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" + +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM64xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am64x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am64x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am64xx-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am64xx.inc +SYSFW_SOC = "am64x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + UBOOT_MACHINE = "am64x_evm_a53_defconfig" +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-evm.conf +5
-0@@ -4,6 +4,11 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig"meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf deleted +0
-17@@ -1,17 +0,0 @@ -#@TYPE: Machine -#@NAME: BeagleBone AI-64 (R5F) -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +5
-0@@ -4,6 +4,11 @@ require conf/machine/include/j721e.inc +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"meta-ti-bsp/conf/machine/beagleplay-k3r5.conf deleted +0
-14@@ -1,14 +0,0 @@ -#@TYPE: Machine -#@NAME: BeaglePlay (R5F) -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) - -require conf/machine/include/k3r5.inc - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"meta-ti-bsp/conf/machine/beagleplay.conf +5
-0@@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1" OPTEEMACHINE = "k3-am62x" +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"meta-ti-bsp/conf/machine/include/k3.inc +1
-3@@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3" require conf/machine/include/arm/arch-arm64.inc -BBMULTICONFIG += "k3r5" - # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r0"@@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi" WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" do_image_wic[depends] += "virtual/bootloader:do_deploy" -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" +do_image[depends] += "tiboot3-staging:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-27@@ -1,27 +0,0 @@ -# TI K3 Armv7 profile for Cortex-R5F cores - -require conf/machine/include/ti-soc.inc -SOC_FAMILY:append = ":k3r5" - -# The closest of existing tunes for Cortex-R5F -DEFAULTTUNE = "armv7athf" -require conf/machine/include/arm/armv7a/tune-cortexa8.inc - -# R5 runs early bootloader and loads SYSFW -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" - -SPL_SUFFIX = "bin" -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" -UBOOT_SUFFIX = "bin" -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" - -PACKAGECONFIG:pn-u-boot-ti-staging = "" -PACKAGECONFIG:pn-u-boot-ti-mainline = ""meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"meta-ti-bsp/conf/machine/j7200-evm.conf +5
-0@@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j7200-common-proc-board.dtb \ " +SYSFW_SOC = "j7200" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_config"meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"meta-ti-bsp/conf/machine/j7200-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/j7200-evm.conf +SYSFW_SOC = "j7200_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_defconfig"meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721e-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721e-sk.dtb \ " +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config"meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e_sr1_1" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721e-hs-evm.conf +2
-1@@ -4,4 +4,5 @@ require conf/machine/j721e-evm.conf -UBOOT_MACHINE = "j721e_evm_a72_defconfig" +SYSFW_SOC = "j721e_sr1_1" +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721s2-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721s2-common-proc-board.dtb \ " +SYSFW_SOC = "j721s2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig" UBOOT_MACHINE = "j721s2_evm_a72_defconfig"meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721s2-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM require conf/machine/j721s2-evm.conf + +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"meta-ti-bsp/conf/machine/j784s4-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j784s4-evm.dtb \ " +SYSFW_SOC = "j784s4" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig" UBOOT_MACHINE = "j784s4_evm_a72_defconfig"meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"meta-ti-bsp/conf/machine/j784s4-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM require conf/machine/j784s4-evm.conf + +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/multiconfig/k3r5.conf deleted +0
-10@@ -1,10 +0,0 @@ -MAINMACHINE := "${MACHINE}" - -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}" - -MACHINE:append = "-k3r5" -TCLIBC = "baremetal" -TI_TMPDIR_APPEND ?= "-k3r5" -TMPDIR:append = "${TI_TMPDIR_APPEND}" - -SDKPKGSUFFIX = "k3r5-nativesdk"meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0
-3@@ -17,9 +17,6 @@ do_install() { } do_deploy(){ -} - -do_deploy:k3r5() { install -d ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfwmeta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +65
-0@@ -0,0 +1,65 @@ +require u-boot-ti.inc + +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} + +PR = "r0" +BRANCH = "ti-u-boot-2023.04" +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb" + +PROVIDES:remove = "virtual/bootloader" +PROVIDES:remove = "u-boot" + +# Using gcc-cross-arm-native here would have been ideal +# as the compiler version would match between R5 and +# main ARM core builds. arm-oe-linux-gnueabi- +DEPENDS += "gcc-arm-none-eabi-native" + +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc" + +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}" + +SPL_SUFFIX = "bin" +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" +UBOOT_SUFFIX = "bin" +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" + +do_compile:append () { + if [ -n "${UBOOT_CONFIG}" ]; + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ]; + then + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} + fi + fi + done + unset j + done + unset i + else + if ! [ -f ${B}/${UBOOT_BINARY} ]; then + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} + fi + fi +} + +do_deploy:append () { + for f in ${B}/tiboot3-*.bin; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done + + for f in ${B}/sysfw*.itb; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done +}meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb +0
-2@@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011" SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82" BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay" -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay" SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d" -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-40@@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n # SYSFW/TIFS Firmware DEPENDS:append:k3 = " ti-sci-fw" -DEPENDS:append:k3r5 = " ti-sci-fw" DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"@@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot" # SPL (Second Program Loader) to be loaded over UART SPL_UART_BINARY = "u-boot-spl.bin" -SPL_UART_BINARY:k3r5 = "" SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"@@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" -do_compile:append:k3r5 () { - if [ -n "${UBOOT_CONFIG}" ]; - then - for config in ${UBOOT_MACHINE}; do - i=$(expr $i + 1); - for type in ${UBOOT_CONFIG}; do - j=$(expr $j + 1); - if [ $j -eq $i ]; - then - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} - fi - fi - done - unset j - done - unset i - else - if ! [ -f ${B}/${UBOOT_BINARY} ]; then - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} - fi - fi -} - do_install:append () { if [ -n "${UBOOT_CONFIG}" ] then@@ -204,20 +178,6 @@ do_install:append () { fi } -do_deploy:append:k3r5 () { - for f in ${B}/tiboot3-*.bin; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done - - for f in ${B}/sysfw*.itb; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done -} - do_deploy:append () { if [ -n "${UBOOT_CONFIG}" ] then
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Hi Andrew,
I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
I will test it but maybe only next year.
Jose
Ryan Eatmon via lists.yoctoproject.org <reatmon= [email protected]> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
Quoted 1,020 lines · Andrew Davis
Quoted 17 lines
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment. Using multiconfig pulls in a large number of build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
Quoted 2 lines
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
On first glance, this looks good. Let me do some test builds.
Quoted 60 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/classes/ti-secdev.bbclass | 3 - .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ meta-ti-bsp/conf/machine/include/k3.inc | 4 +- meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 - .../u-boot/tiboot3-staging_2023.5.bb | 65 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 2 - meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ 44 files changed, 152 insertions(+), 303 deletions(-)delete mode 100644
meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.confdelete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confQuoted 8 lines
delete mode 100644
meta-ti-bsp/conf/machine/j721e-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confdelete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.confcreate mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
Review
Quoted 2 lines
(quoted diff) +0
-0b/meta-ti-bsp/classes/ti-secdev.bbclass
meta-ti-bsp/classes/ti-secdev.bbclass line 6
Quoted 10 lines
index
b3d70e5c..18d15269100644meta-ti-bsp/classes/ti-secdev.bbclass +0
-1@@ -2,14 +2,11 @@ # K3 SECDEV scripts use OpenSSL DEPENDS:append:k3 = " openssl-native" -DEPENDS:append:k3r5 = " openssl-native" # Use package version of TI SECDEV for K3 if one is not providedthrough the environment
meta-ti-bsp/classes/ti-secdev.bbclass line 7
Quoted 1 line
meta-ti-bsp/classes/ti-secdev.bbclass +0
-0DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else 'ti-k3-secdev-native' }"
meta-ti-bsp/classes/ti-secdev.bbclass line 9
Quoted 1 line
meta-ti-bsp/classes/ti-secdev.bbclass +0
-1-DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else' ti-k3-secdev-native' }"
meta-ti-bsp/classes/ti-secdev.bbclass line 8
Quoted 1 line
meta-ti-bsp/classes/ti-secdev.bbclass +0
-0TI_K3_SECDEV_INSTALL_DIR ="${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
meta-ti-bsp/classes/ti-secdev.bbclass line 9
Quoted 1 line
meta-ti-bsp/classes/ti-secdev.bbclass +0
-0TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or
d.getVar('TI_K3_SECDEV_INSTALL_DIR')}"meta-ti-bsp/classes/ti-secdev.bbclass line 12
Quoted 1 line
meta-ti-bsp/classes/ti-secdev.bbclass +0
-1-TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or
d.getVar('TI_K3_SECDEV_INSTALL_DIR')}"meta-ti-bsp/classes/ti-secdev.bbclass line 10
Quoted 2 lines
meta-ti-bsp/classes/ti-secdev.bbclass +0
-0# For non-K3 we require the SECDEV tools be provided through theenvironment with the following vars
Review
Quoted 2 lines
meta-ti-bsp/classes/ti-secdev.bbclass +0
-0TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 2af3317e..00000000meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62A HS-FS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62ax" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62axx-evm.confReview
Quoted 14 lines
index 22f61401..59884629 100644
meta-ti-bsp/conf/machine/am62axx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62a7-sk.dtb \ " +SYSFW_SOC = "am62ax" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig" UBOOT_MACHINE = "am62ax_evm_a53_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confReview
Quoted 18 lines
deleted file mode 100644
index 36915381..00000000meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62PX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62px" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62px_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62pxx-evm.confReview
Quoted 14 lines
index
d7c9f589..116d819b100644meta-ti-bsp/conf/machine/am62pxx-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62p5-sk.dtb \ " +SYSFW_SOC = "am62px" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig" UBOOT_MACHINE = "am62px_evm_a53_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confReview
Quoted 18 lines
deleted file mode 100644
index 548369ca..00000000meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xx-evm.confReview
Quoted 14 lines
index
fadbc6f4..6f234811100644meta-ti-bsp/conf/machine/am62xx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confmeta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf line 3
Quoted 8 lines
deleted file mode 100644
index aa9422cd..00000000meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf deleted +0
-3@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX LP GP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5Fcore)
Review
Quoted 9 lines
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf deleted +0
-8- -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xx-lp-evm.confReview
Quoted 14 lines
index
229b74bc..e33b60e2100644meta-ti-bsp/conf/machine/am62xx-lp-evm.conf +5
-0@@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62-lp-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig" UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confmeta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf line 3
Quoted 8 lines
deleted file mode 100644
index 0daff2b9..00000000meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-3@@ -1,16 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX SIP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5Fcore)
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
Quoted 10 lines
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-10- -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig" - -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragmentswhich has to be build
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf line 14
Quoted 1 line
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-1-# along with the base defconfig mentioned in UBOOT_MACHINE. Referu-boot-mergeconfig.inc
Review
Quoted 3 lines
meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-2-# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am62xxsip-evm.confQuoted 5 lines
index
b5dd18f1..2e077f75100644meta-ti-bsp/conf/machine/am62xxsip-evm.conf +0
-0@@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \meta-ti-bsp/conf/machine/am62xxsip-evm.conf KERNEL_DEVICETREE = " \ · line 23
Quoted 10 lines
meta-ti-bsp/conf/machine/am62xxsip-evm.conf +7
-0" +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" + +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragmentswhich has to be build
meta-ti-bsp/conf/machine/am62xxsip-evm.conf KERNEL_DEVICETREE = " \ · line 24
Quoted 1 line
meta-ti-bsp/conf/machine/am62xxsip-evm.conf +1
-0+# along with the base defconfig mentioned in UBOOT_MACHINE. Referu-boot-mergeconfig.inc
Review
Quoted 3 lines
meta-ti-bsp/conf/machine/am62xxsip-evm.conf +2
-0+# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index e932928a..00000000meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM64xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am64x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am64x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am64xx-evm.confReview
Quoted 14 lines
index
c6ba2a87..dc21c174100644meta-ti-bsp/conf/machine/am64xx-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am64xx.inc +SYSFW_SOC = "am64x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + UBOOT_MACHINE = "am64x_evm_a53_defconfig" +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 8744ac3e..00000000meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am65xx-evm.confQuoted 5 lines
index
f6eb6f0c..9b050b03100644meta-ti-bsp/conf/machine/am65xx-evm.conf +0
-0@@ -4,6 +4,11 @@meta-ti-bsp/conf/machine/am65xx-evm.conf line 14
Quoted 10 lines
meta-ti-bsp/conf/machine/am65xx-evm.conf +5
-0require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
Review
Quoted 1 line
(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 337c8413..00000000meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/am65xx-hs-evm.confReview
Quoted 14 lines
index
f8221f31..4164ae53100644meta-ti-bsp/conf/machine/am65xx-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confReview
Quoted 23 lines
deleted file mode 100644
index b893f380..00000000meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf deleted +0
-17@@ -1,17 +0,0 @@ -#@TYPE: Machine -#@NAME: BeagleBone AI-64 (R5F) -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/beaglebone-ai64.confReview
Quoted 16 lines
index
e529f565..bad86a22100644meta-ti-bsp/conf/machine/beaglebone-ai64.conf +5
-0@@ -4,6 +4,11 @@ require conf/machine/include/j721e.inc +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/beagleplay-k3r5.confReview
Quoted 20 lines
deleted file mode 100644
index c40615c9..00000000meta-ti-bsp/conf/machine/beagleplay-k3r5.conf deleted +0
-14@@ -1,14 +0,0 @@ -#@TYPE: Machine -#@NAME: BeaglePlay (R5F) -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) - -require conf/machine/include/k3r5.inc - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/beagleplay.confReview
Quoted 16 lines
index
ac4a202a..312fc503100644meta-ti-bsp/conf/machine/beagleplay.conf +5
-0@@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1" OPTEEMACHINE = "k3-am62x" +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"(quoted diff) +0
-0b/meta-ti-bsp/conf/machine/include/k3.inc
Quoted 13 lines
index
2415f0ba..84feee08100644meta-ti-bsp/conf/machine/include/k3.inc +0
-2@@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3" require conf/machine/include/arm/arch-arm64.inc -BBMULTICONFIG += "k3r5" - # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r0"meta-ti-bsp/conf/machine/include/k3.inc MACHINE_FEATURES += "efi" · line 60
Quoted 1 line
meta-ti-bsp/conf/machine/include/k3.inc +0
-0@@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi" WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
Review
Quoted 8 lines
meta-ti-bsp/conf/machine/include/k3.inc +1
-1do_image_wic[depends] += "virtual/bootloader:do_deploy" -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" +do_image[depends] += "tiboot3-staging:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"(quoted diff) +0
-0b/meta-ti-bsp/conf/machine/include/k3r5.inc
Quoted 6 lines
deleted file mode 100644
index 63267a5e..00000000meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-1@@ -1,27 +0,0 @@ -# TI K3 Armv7 profile for Cortex-R5F coresmeta-ti-bsp/conf/machine/include/k3r5.inc line 11
Quoted 10 lines
meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-10- -require conf/machine/include/ti-soc.inc -SOC_FAMILY:append = ":k3r5" - -# The closest of existing tunes for Cortex-R5F -DEFAULTTUNE = "armv7athf" -require conf/machine/include/arm/armv7a/tune-cortexa8.inc - -# R5 runs early bootloader and loads SYSFW -#https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
meta-ti-bsp/conf/machine/include/k3r5.inc line 12
Quoted 1 line
meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-1-#https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
meta-ti-bsp/conf/machine/include/k3r5.inc
Quoted 7 lines
meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-7-# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" - -SPL_SUFFIX = "bin" -SPL_BINARY ="tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
Review
Quoted 9 lines
meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-8-SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" -UBOOT_SUFFIX = "bin" -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" - -PACKAGECONFIG:pn-u-boot-ti-staging = "" -PACKAGECONFIG:pn-u-boot-ti-mainline = ""(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 68061883..00000000meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j7200-evm.confReview
Quoted 14 lines
index
dff1da69..e733d15a100644meta-ti-bsp/conf/machine/j7200-evm.conf +5
-0@@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j7200-common-proc-board.dtb \ " +SYSFW_SOC = "j7200" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_config"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 1922d5c8..00000000meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j7200-hs-evm.confReview
Quoted 14 lines
index
54fd2b4a..fc33106c100644meta-ti-bsp/conf/machine/j7200-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/j7200-evm.conf +SYSFW_SOC = "j7200_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 070bf7aa..00000000meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721e-evm.confReview
Quoted 14 lines
index
5e1f6dca..ca23e3e3100644meta-ti-bsp/conf/machine/j721e-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721e-sk.dtb \ " +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 7904c660..00000000meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e_sr1_1" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721e-hs-evm.confReview
Quoted 11 lines
index
441ca169..3d4bedb6100644meta-ti-bsp/conf/machine/j721e-hs-evm.conf +2
-1@@ -4,4 +4,5 @@ require conf/machine/j721e-evm.conf -UBOOT_MACHINE = "j721e_evm_a72_defconfig" +SYSFW_SOC = "j721e_sr1_1" +SYSFW_SUFFIX = "hs"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 508e96e5..00000000meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721s2-evm.confReview
Quoted 14 lines
index
ecb1836f..63d86af0100644meta-ti-bsp/conf/machine/j721s2-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721s2-common-proc-board.dtb \ " +SYSFW_SOC = "j721s2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig" UBOOT_MACHINE = "j721s2_evm_a72_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 58cd92c4..00000000meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j721s2-hs-evm.confReview
Quoted 10 lines
index
4cf32a28..1129a189100644meta-ti-bsp/conf/machine/j721s2-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM require conf/machine/j721s2-evm.conf + +SYSFW_SUFFIX = "hs"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 04feebc6..00000000meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j784s4-evm.confReview
Quoted 14 lines
index
40a63651..a242ef8a100644meta-ti-bsp/conf/machine/j784s4-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j784s4-evm.dtb \ " +SYSFW_SOC = "j784s4" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig" UBOOT_MACHINE = "j784s4_evm_a72_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confReview
Quoted 17 lines
deleted file mode 100644
index 80a228a0..00000000meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"(quoted diff) +0
-0
b/meta-ti-bsp/conf/machine/j784s4-hs-evm.confReview
Quoted 10 lines
index 8fa1c1fd..42468088 100644
meta-ti-bsp/conf/machine/j784s4-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM require conf/machine/j784s4-evm.conf + +SYSFW_SUFFIX = "hs"(quoted diff) +0
-0
b/meta-ti-bsp/conf/multiconfig/k3r5.confReview
Quoted 16 lines
deleted file mode 100644
index 936bce2f..00000000meta-ti-bsp/conf/multiconfig/k3r5.conf deleted +0
-10@@ -1,10 +0,0 @@ -MAINMACHINE := "${MACHINE}" - -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}" - -MACHINE:append = "-k3r5" -TCLIBC = "baremetal" -TI_TMPDIR_APPEND ?= "-k3r5" -TMPDIR:append = "${TI_TMPDIR_APPEND}" - -SDKPKGSUFFIX = "k3r5-nativesdk"(quoted diff) +0
-0b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb do_install() { · line 21
Quoted 12 lines
index
12292c88..0597d9bb100644meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0
-3@@ -17,9 +17,6 @@ do_install() { } do_deploy(){ -} - -do_deploy:k3r5() { install -d ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-sci-firmware-*${DEPLOYDIR}/ti-sysfw
Review
Quoted 2 lines
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0
-0install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw(quoted diff) +0
-0b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb line 3
Quoted 8 lines
new file mode 100644
index 00000000..0f1929b5meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +3
-0@@ -0,0 +1,65 @@ +require u-boot-ti.inc + +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS')else ''}
Quoted 9 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +9
-0+ +PR = "r0" +BRANCH = "ti-u-boot-2023.04" +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb" + +PROVIDES:remove = "virtual/bootloader" +PROVIDES:remove = "u-boot" + +# Using gcc-cross-arm-native here would have been idealmeta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
Quoted 10 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +10
-0+# as the compiler version would match between R5 and +# main ARM core builds. arm-oe-linux-gnueabi- +DEPENDS += "gcc-arm-none-eabi-native" + +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc" + +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}" + +SPL_SUFFIX = "bin" +SPL_BINARY ="tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
Quoted 6 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +6
-0+SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" +UBOOT_SUFFIX = "bin" +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" +meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
Quoted 10 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +10
-0+do_compile:append () { + if [ -n "${UBOOT_CONFIG}" ]; + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ]; + then + if ! [ -L${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb line 39
Quoted 1 line
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +1
-0+ ln -s${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
Quoted 9 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +9
-0+ fi + fi + done + unset j + done + unset i + else + if ! [ -f ${B}/${UBOOT_BINARY} ]; then + ln -s spl/u-boot-spl.${UBOOT_SUFFIX}${B}/${UBOOT_BINARY}
Review
Quoted 18 lines
meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +17
-0+ fi + fi +} + +do_deploy:append () { + for f in ${B}/tiboot3-*.bin; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done + + for f in ${B}/sysfw*.itb; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done +}(quoted diff) +0
-0b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
Review
Quoted 11 lines
index
5bb20213..1ec5f9bf100644meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb +0
-2@@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011" SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82" BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay" -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay" SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d" -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"(quoted diff) +0
-0b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc DEPENDS += "python3-pyelftools-native
Quoted 4 lines
index
2f15c4fb..b0f88a5a100644meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-0@@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-nativepython3-pyyaml-native python3-jsonschema-n
Quoted 19 lines
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-2# SYSFW/TIFS Firmware DEPENDS:append:k3 = " ti-sci-fw" -DEPENDS:append:k3r5 = " ti-sci-fw" DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"@@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot" # SPL (Second Program Loader) to be loaded over UART SPL_UART_BINARY = "u-boot-spl.bin" -SPL_UART_BINARY:k3r5 = "" SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"@@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" · line 120
Quoted 10 lines
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-10-do_compile:append:k3r5 () { - if [ -n "${UBOOT_CONFIG}" ]; - then - for config in ${UBOOT_MACHINE}; do - i=$(expr $i + 1); - for type in ${UBOOT_CONFIG}; do - j=$(expr $j + 1); - if [ $j -eq $i ]; - then - if ! [ -L${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" · line 121
Quoted 1 line
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-1- ln -s${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
Quoted 9 lines
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-9- fi - fi - done - unset j - done - unset i - else - if ! [ -f ${B}/${UBOOT_BINARY} ]; then - ln -s spl/u-boot-spl.${UBOOT_SUFFIX}${B}/${UBOOT_BINARY}
Quoted 18 lines
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-11- fi - fi -} - do_install:append () { if [ -n "${UBOOT_CONFIG}" ] then@@ -204,20 +178,6 @@ do_install:append () { fi } -do_deploy:append:k3r5 () { - for f in ${B}/tiboot3-*.bin; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done -meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc do_install:append () { · line 183
Quoted 10 lines
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-7- for f in ${B}/sysfw*.itb; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done -} - do_deploy:append () { if [ -n "${UBOOT_CONFIG}" ] then--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#17353):
https://lists.yoctoproject.org/g/meta-ti/message/17353
Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Best regards, José Quaresma
Quoted 3 lines · Jose Quaresma
Hi Andrew,
I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
I hope so, I was thinking of the troubles you have been having when puting this together. (plus several others on E2E with multiconf issues)
Quoted 1 line
I will test it but maybe only next year.
This is a very early RFC so no guarantee it even boots on all platforms. Denys and Ryan put a lot of work into keeping multiconf working so just wanted to make sure they are okay with dropping it back out before I do too much work on getting all the exact details right.
There is also a change needed up in the meta-arago layer so this all will probably end up targeting only master/scarthgap and not kirkstone.
Andrew
Quoted 952 lines
Jose
Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <[email protected] <mailto:[email protected]>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
On 12/20/2023 10:07 AM, Andrew Davis wrote: > The R5 SPL bootloader is the only software we build using the R5 (arm32) > multiconfig environment. Using multiconfig pulls in a large number of > build dependencies (see the -native environment in baremetal tmp dir) > this increases build time and space. > > Using multiconfig for a deploy target also leads to several oddities in > the bitbake build system forcing use of a non-standard deploy directory > and careful checks that no recipe built in both configuration deploy > the same files. > > While I believe we will get more use out of multiconfig for future > devices, today let's simplify the K3 build infrastructure here by > building R5 SPL like a normal firmware using a foreign targeting cross > compiler. This is the technique meta-arm uses to build firmware (see > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware > recipe here. > > With that we can also drop all the related k3r5 multiconfig files and > definitions. Do that here. On first glance, this looks good. Let me do some test builds. > Signed-off-by: Andrew Davis <[email protected] <mailto:[email protected]>> > --- > meta-ti-bsp/classes/ti-secdev.bbclass | 3 - > .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ > .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- > meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ > meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- > meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ > .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ > .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- > meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ > meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ > meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ > .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ > .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- > meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ > meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- > meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ > meta-ti-bsp/conf/machine/include/k3.inc | 4 +- > meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- > meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ > .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ > meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ > .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- > meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ > .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + > meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ > .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- > meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + > meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- > .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> | 3 - > .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> | 65 +++++++++++++++++++ > .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> | 2 - > meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ > 44 files changed, 152 insertions(+), 303 deletions(-) > delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc > delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf > delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf > create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> > > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass > index b3d70e5c..18d15269 100644 > --- a/meta-ti-bsp/classes/ti-secdev.bbclass > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass > @@ -2,14 +2,11 @@ > > # K3 SECDEV scripts use OpenSSL > DEPENDS:append:k3 = " openssl-native" > -DEPENDS:append:k3r5 = " openssl-native" > > # Use package version of TI SECDEV for K3 if one is not provided through the environment > DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" > -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" > TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev" > TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" > -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" > > # For non-K3 we require the SECDEV tools be provided through the environment with the following vars > TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x" > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf > deleted file mode 100644 > index 2af3317e..00000000 > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM62A HS-FS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am62ax" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf > index 22f61401..59884629 100644 > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-am62a7-sk.dtb \ > " > > +SYSFW_SOC = "am62ax" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig" > UBOOT_MACHINE = "am62ax_evm_a53_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf > deleted file mode 100644 > index 36915381..00000000 > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf > +++ /dev/null > @@ -1,12 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM62PX EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > -require conf/machine/include/ti-extras.inc > - > -SYSFW_SOC = "am62px" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am62px_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf > index d7c9f589..116d819b 100644 > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-am62p5-sk.dtb \ > " > > +SYSFW_SOC = "am62px" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig" > UBOOT_MACHINE = "am62px_evm_a53_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf > deleted file mode 100644 > index 548369ca..00000000 > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf > +++ /dev/null > @@ -1,12 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM62XX EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > -require conf/machine/include/ti-extras.inc > - > -SYSFW_SOC = "am62x" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am62x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf > index fadbc6f4..6f234811 100644 > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-am625-sk.dtb \ > " > > +SYSFW_SOC = "am62x" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" > UBOOT_MACHINE = "am62x_evm_a53_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf > deleted file mode 100644 > index aa9422cd..00000000 > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM62XX LP GP EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am62x" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf > index 229b74bc..e33b60e2 100644 > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-am62-lp-sk.dtb \ > " > > +SYSFW_SOC = "am62x" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig" > UBOOT_MACHINE = "am62x_lpsk_a53_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf > deleted file mode 100644 > index 0daff2b9..00000000 > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf > +++ /dev/null > @@ -1,16 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM62XX SIP EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am62x" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am62x_evm_r5_defconfig" > - > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build > -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config" > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf > index b5dd18f1..2e077f75 100644 > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \ > ti/k3-am625-sk.dtb \ > " > > +SYSFW_SOC = "am62x" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" > UBOOT_MACHINE = "am62x_evm_a53_defconfig" > + > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build > +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config" > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf > deleted file mode 100644 > index e932928a..00000000 > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM64xx EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am64x_sr2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs-fs" > - > -UBOOT_MACHINE = "am64x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf > index c6ba2a87..dc21c174 100644 > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf > @@ -4,4 +4,9 @@ > > require conf/machine/include/am64xx.inc > > +SYSFW_SOC = "am64x_sr2" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs-fs" > + > UBOOT_MACHINE = "am64x_evm_a53_defconfig" > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf > deleted file mode 100644 > index 8744ac3e..00000000 > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM65xx EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am65x_sr2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "am65x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf > index f6eb6f0c..9b050b03 100644 > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf > @@ -4,6 +4,11 @@ > > require conf/machine/include/am65xx.inc > > +SYSFW_SOC = "am65x_sr2" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" > UBOOT_MACHINE = "am65x_evm_a53_defconfig" > > MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2" > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf > deleted file mode 100644 > index 337c8413..00000000 > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: AM65xx HS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "am65x_sr2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs" > - > -UBOOT_MACHINE = "am65x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf > index f8221f31..4164ae53 100644 > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf > @@ -4,4 +4,9 @@ > > require conf/machine/include/am65xx.inc > > +SYSFW_SOC = "am65x_sr2" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs" > + > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" > UBOOT_MACHINE = "am65x_evm_a53_defconfig" > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf > deleted file mode 100644 > index b893f380..00000000 > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf > +++ /dev/null > @@ -1,17 +0,0 @@ > -#@TYPE: Machine > -#@NAME: BeagleBone AI-64 (R5F) > -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j721e" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" > -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" > - > -UBOOT_MACHINE = "j721e_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf > index e529f565..bad86a22 100644 > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf > @@ -4,6 +4,11 @@ > > require conf/machine/include/j721e.inc > > +SYSFW_SOC = "j721e" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" > UBOOT_MACHINE = "j721e_evm_a72_config" > > PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>" > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf > deleted file mode 100644 > index c40615c9..00000000 > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf > +++ /dev/null > @@ -1,14 +0,0 @@ > -#@TYPE: Machine > -#@NAME: BeaglePlay (R5F) > -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>" > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>" > - > -SYSFW_SOC = "am62x" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "am62x_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf > index ac4a202a..312fc503 100644 > --- a/meta-ti-bsp/conf/machine/beagleplay.conf > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1" > > OPTEEMACHINE = "k3-am62x" > > +SYSFW_SOC = "am62x" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" > UBOOT_MACHINE = "am62x_evm_a53_defconfig" > > PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>" > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc > index 2415f0ba..84feee08 100644 > --- a/meta-ti-bsp/conf/machine/include/k3.inc > +++ b/meta-ti-bsp/conf/machine/include/k3.inc > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3" > > require conf/machine/include/arm/arch-arm64.inc > > -BBMULTICONFIG += "k3r5" > - > # Increase this everytime you change something in the kernel > MACHINE_KERNEL_PR = "r0" > > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi" > WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}" > > do_image_wic[depends] += "virtual/bootloader:do_deploy" > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" > +do_image[depends] += "tiboot3-staging:do_deploy" > > SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" > SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc > deleted file mode 100644 > index 63267a5e..00000000 > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc > +++ /dev/null > @@ -1,27 +0,0 @@ > -# TI K3 Armv7 profile for Cortex-R5F cores > - > -require conf/machine/include/ti-soc.inc > -SOC_FAMILY:append = ":k3r5" > - > -# The closest of existing tunes for Cortex-R5F > -DEFAULTTUNE = "armv7athf" > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc > - > -# R5 runs early bootloader and loads SYSFW > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst> > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst> > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst> > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" > - > -SPL_SUFFIX = "bin" > -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" > -UBOOT_SUFFIX = "bin" > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" > -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" > - > -PACKAGECONFIG:pn-u-boot-ti-staging = "" > -PACKAGECONFIG:pn-u-boot-ti-mainline = "" > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf > deleted file mode 100644 > index 68061883..00000000 > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J7200 EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j7200" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "j7200_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf > index dff1da69..e733d15a 100644 > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-j7200-common-proc-board.dtb \ > " > > +SYSFW_SOC = "j7200" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" > UBOOT_MACHINE = "j7200_evm_a72_config" > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf > deleted file mode 100644 > index 1922d5c8..00000000 > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J7200 HS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j7200_sr2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs" > - > -UBOOT_MACHINE = "j7200_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf > index 54fd2b4a..fc33106c 100644 > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf > @@ -4,4 +4,9 @@ > > require conf/machine/j7200-evm.conf > > +SYSFW_SOC = "j7200_sr2" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "hs" > + > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" > UBOOT_MACHINE = "j7200_evm_a72_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf > deleted file mode 100644 > index 070bf7aa..00000000 > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J721e EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j721e" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "j721e_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf > index 5e1f6dca..ca23e3e3 100644 > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-j721e-sk.dtb \ > " > > +SYSFW_SOC = "j721e" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" > UBOOT_MACHINE = "j721e_evm_a72_config" > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf > deleted file mode 100644 > index 7904c660..00000000 > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J721e HS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j721e_sr1_1" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs" > - > -UBOOT_MACHINE = "j721e_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf > index 441ca169..3d4bedb6 100644 > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf > @@ -4,4 +4,5 @@ > > require conf/machine/j721e-evm.conf > > -UBOOT_MACHINE = "j721e_evm_a72_defconfig" > +SYSFW_SOC = "j721e_sr1_1" > +SYSFW_SUFFIX = "hs" > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf > deleted file mode 100644 > index 508e96e5..00000000 > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J721S2 EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j721s2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf > index ecb1836f..63d86af0 100644 > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-j721s2-common-proc-board.dtb \ > " > > +SYSFW_SOC = "j721s2" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig" > UBOOT_MACHINE = "j721s2_evm_a72_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf > deleted file mode 100644 > index 58cd92c4..00000000 > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J721S2 HS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j721s2" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs" > - > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf > index 4cf32a28..1129a189 100644 > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf > @@ -3,3 +3,5 @@ > #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM > > require conf/machine/j721s2-evm.conf > + > +SYSFW_SUFFIX = "hs" > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf > deleted file mode 100644 > index 04feebc6..00000000 > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J784S4 EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j784s4" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "gp" > - > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf > index 40a63651..a242ef8a 100644 > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ > ti/k3-j784s4-evm.dtb \ > " > > +SYSFW_SOC = "j784s4" > +SYSFW_CONFIG = "evm" > +SYSFW_SUFFIX = "gp" > + > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig" > UBOOT_MACHINE = "j784s4_evm_a72_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf > deleted file mode 100644 > index 80a228a0..00000000 > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf > +++ /dev/null > @@ -1,11 +0,0 @@ > -#@TYPE: Machine > -#@NAME: J784S4 HS EVM (R5F) > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core) > - > -require conf/machine/include/k3r5.inc > - > -SYSFW_SOC = "j784s4" > -SYSFW_CONFIG = "evm" > -SYSFW_SUFFIX = "hs" > - > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig" > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf > index 8fa1c1fd..42468088 100644 > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf > @@ -3,3 +3,5 @@ > #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM > > require conf/machine/j784s4-evm.conf > + > +SYSFW_SUFFIX = "hs" > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf > deleted file mode 100644 > index 936bce2f..00000000 > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf > +++ /dev/null > @@ -1,10 +0,0 @@ > -MAINMACHINE := "${MACHINE}" > - > -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}" > - > -MACHINE:append = "-k3r5" > -TCLIBC = "baremetal" > -TI_TMPDIR_APPEND ?= "-k3r5" > -TMPDIR:append = "${TI_TMPDIR_APPEND}" > - > -SDKPKGSUFFIX = "k3r5-nativesdk" > diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> > index 12292c88..0597d9bb 100644 > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> > @@ -17,9 +17,6 @@ do_install() { > } > > do_deploy(){ > -} > - > -do_deploy:k3r5() { > install -d ${DEPLOYDIR}/ti-sysfw > install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw > install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> > new file mode 100644 > index 00000000..0f1929b5 > --- /dev/null > +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> > @@ -0,0 +1,65 @@ > +require u-boot-ti.inc > + > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} > + > +PR = "r0" > +BRANCH = "ti-u-boot-2023.04" > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb" > + > +PROVIDES:remove = "virtual/bootloader" > +PROVIDES:remove = "u-boot" > + > +# Using gcc-cross-arm-native here would have been ideal > +# as the compiler version would match between R5 and > +# main ARM core builds. arm-oe-linux-gnueabi- > +DEPENDS += "gcc-arm-none-eabi-native" > + > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc" > + > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}" > + > +SPL_SUFFIX = "bin" > +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" > +UBOOT_SUFFIX = "bin" > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" > +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" > + > +do_compile:append () { > + if [ -n "${UBOOT_CONFIG}" ]; > + then > + for config in ${UBOOT_MACHINE}; do > + i=$(expr $i + 1); > + for type in ${UBOOT_CONFIG}; do > + j=$(expr $j + 1); > + if [ $j -eq $i ]; > + then > + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then > + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} > + fi > + fi > + done > + unset j > + done > + unset i > + else > + if ! [ -f ${B}/${UBOOT_BINARY} ]; then > + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} > + fi > + fi > +} > + > +do_deploy:append () { > + for f in ${B}/tiboot3-*.bin; do > + if [ -f "$f" ]; then > + install -m 644 $f ${DEPLOYDIR}/ > + fi > + done > + > + for f in ${B}/sysfw*.itb; do > + if [ -f "$f" ]; then > + install -m 644 $f ${DEPLOYDIR}/ > + fi > + done > +} > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> > index 5bb20213..1ec5f9bf 100644 > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011" > SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82" > > BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay" > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay" > SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d" > -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d" > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc > index 2f15c4fb..b0f88a5a 100644 > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n > > # SYSFW/TIFS Firmware > DEPENDS:append:k3 = " ti-sci-fw" > -DEPENDS:append:k3r5 = " ti-sci-fw" > > DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" > > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot" > > # SPL (Second Program Loader) to be loaded over UART > SPL_UART_BINARY = "u-boot-spl.bin" > -SPL_UART_BINARY:k3r5 = "" > > SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" > SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" > UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" > UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" > > -do_compile:append:k3r5 () { > - if [ -n "${UBOOT_CONFIG}" ]; > - then > - for config in ${UBOOT_MACHINE}; do > - i=$(expr $i + 1); > - for type in ${UBOOT_CONFIG}; do > - j=$(expr $j + 1); > - if [ $j -eq $i ]; > - then > - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then > - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} > - fi > - fi > - done > - unset j > - done > - unset i > - else > - if ! [ -f ${B}/${UBOOT_BINARY} ]; then > - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} > - fi > - fi > -} > - > do_install:append () { > if [ -n "${UBOOT_CONFIG}" ] > then > @@ -204,20 +178,6 @@ do_install:append () { > fi > } > > -do_deploy:append:k3r5 () { > - for f in ${B}/tiboot3-*.bin; do > - if [ -f "$f" ]; then > - install -m 644 $f ${DEPLOYDIR}/ > - fi > - done > - > - for f in ${B}/sysfw*.itb; do > - if [ -f "$f" ]; then > - install -m 644 $f ${DEPLOYDIR}/ > - fi > - done > -} > - > do_deploy:append () { > if [ -n "${UBOOT_CONFIG}" ] > then -- Ryan Eatmon [email protected] <mailto:[email protected]> ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17353): https://lists.yoctoproject.org/g/meta-ti/message/17353 <https://lists.yoctoproject.org/g/meta-ti/message/17353> Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612 <https://lists.yoctoproject.org/mt/103283292/5052612> Group Owner: [email protected] <mailto:meta-ti%[email protected]> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [[email protected] <mailto:[email protected]>] -=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
Best regards, José Quaresma
Quoted 10 lines · Andrew Davis
Quoted 3 lines · Jose Quaresma
Hi Andrew,
I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
I hope so, I was thinking of the troubles you have been having when puting this together. (plus several others on E2E with multiconf issues)
Quoted 1 line
I will test it but maybe only next year.
Quoted 7 lines
This is a very early RFC so no guarantee it even boots on all platforms. Denys and Ryan put a lot of work into keeping multiconf working so just wanted to make sure they are okay with dropping it back out before I do too much work on getting all the exact details right.
There is also a change needed up in the meta-arago layer so this all will probably end up targeting only master/scarthgap and not kirkstone.
What's the change in arago? Will my test builds even work without that change?
Quoted 953 lines
Andrew
Quoted 951 lines
Jose
Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <[email protected] <mailto:[email protected]>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
On 12/20/2023 10:07 AM, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32) > multiconfig environment. Using multiconfig pulls in a large number of > build dependencies (see the -native environment in baremetal tmp dir) > this increases build time and space.
>
> Using multiconfig for a deploy target also leads to several oddities in > the bitbake build system forcing use of a non-standard deploy directory > and careful checks that no recipe built in both configuration deploy > the same files.
>
> While I believe we will get more use out of multiconfig for future > devices, today let's simplify the K3 build infrastructure here by > building R5 SPL like a normal firmware using a foreign targeting cross > compiler. This is the technique meta-arm uses to build firmware (see > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware > recipe here.
>
> With that we can also drop all the related k3r5 multiconfig files and > definitions. Do that here.On first glance, this looks good. Let me do some test builds.
> Signed-off-by: Andrew Davis <[email protected] <mailto:[email protected]>>
> ---
> meta-ti-bsp/classes/ti-secdev.bbclass | 3 -
> .../conf/machine/am62axx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++
> .../conf/machine/am62pxx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++
> .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++
> .../conf/machine/am62xxsip-evm-k3r5.conf | 16 -----
> meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++
> meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++
> .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++
> .../conf/machine/beaglebone-ai64-k3r5.conf | 17 -----
> meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++
> meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
> meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++
> meta-ti-bsp/conf/machine/include/k3.inc | 4 +-
> meta-ti-bsp/conf/machine/include/k3r5.inc | 27 --------
> meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++
> .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++
> .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +-
> meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++
> .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 +
> meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++
> .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 +
> meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 ---
> .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> | 3 -
> .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> | 65 +++++++++++++++++++
> .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> | 2 -
> meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------
> 44 files changed, 152 insertions(+), 303 deletions(-)
> delete mode 100644meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
> delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.conf
> create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>
> diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
> indexb3d70e5c..18d15269100644
> --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> @@ -2,14 +2,11 @@
>
> # K3 SECDEV scripts use OpenSSL
> DEPENDS:append:k3 = " openssl-native"
> -DEPENDS:append:k3r5 = " openssl-native"
>
> # Use package version of TI SECDEV for K3 if one is not provided through the environment
> DEPENDS:append:k3 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }"
> -DEPENDS:append:k3r5 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }"
> TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
> TI_SECURE_DEV_PKG:k3 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}"
> -TI_SECURE_DEV_PKG:k3r5 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}"
>
> # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
> TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> deleted file mode 100644
> index 2af3317e..00000000
> ---a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62A HS-FS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62ax"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm.confb/meta-ti-bsp/conf/machine/am62axx-evm.conf
> index 22f61401..59884629 100644
> ---a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62a7-sk.dtb \
> "
>
> +SYSFW_SOC = "am62ax"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
> UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> deleted file mode 100644
> index 36915381..00000000
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62PX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62px"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm.confb/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> indexd7c9f589..116d819b100644
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62p5-sk.dtb \
> "
>
> +SYSFW_SOC = "am62px"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
> UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> deleted file mode 100644
> index 548369ca..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm.confb/meta-ti-bsp/conf/machine/am62xx-evm.conf
> indexfadbc6f4..6f234811100644
> ---a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> deleted file mode 100644
> index aa9422cd..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX LP GP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> index229b74bc..e33b60e2100644
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> @@ -16,4 +16,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62-lp-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
> UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> deleted file mode 100644
> index 0daff2b9..00000000
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> +++/dev/null
> @@ -1,16 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX SIP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> -
> -#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> -# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
> diff --gita/meta-ti-bsp/conf/machine/am62xxsip-evm.confb/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> indexb5dd18f1..2e077f75100644
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> @@ -13,4 +13,14 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> +
> +#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> +# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> deleted file mode 100644
> index e932928a..00000000
> ---a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM64xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am64x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm.confb/meta-ti-bsp/conf/machine/am64xx-evm.conf
> indexc6ba2a87..dc21c174100644
> ---a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am64xx.inc
>
> +SYSFW_SOC = "am64x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> deleted file mode 100644
> index 8744ac3e..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm.confb/meta-ti-bsp/conf/machine/am65xx-evm.conf
> indexf6eb6f0c..9b050b03100644
> ---a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>
> MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> deleted file mode 100644
> index 337c8413..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> indexf8221f31..4164ae53100644
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confb/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> deleted file mode 100644
> index b893f380..00000000
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> +++/dev/null
> @@ -1,17 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeagleBone AI-64 (R5F)
> -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64.confb/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> indexe529f565..bad86a22100644
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> +++b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/j721e.inc
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay-k3r5.confb/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> deleted file mode 100644
> index c40615c9..00000000
> ---a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> +++/dev/null
> @@ -1,14 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeaglePlay (R5F)
> -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>"
> -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>"
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay.confb/meta-ti-bsp/conf/machine/beagleplay.conf
> indexac4a202a..312fc503100644
> ---a/meta-ti-bsp/conf/machine/beagleplay.conf
> +++b/meta-ti-bsp/conf/machine/beagleplay.conf
> @@ -18,6 +18,11 @@TFA_K3_SYSTEM_SUSPEND= "1"
>
> OPTEEMACHINE = "k3-am62x"
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index2415f0ba..84feee08100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>
> require conf/machine/include/arm/arch-arm64.inc
>
> -BBMULTICONFIG += "k3r5"
> -
> # Increase this everytime you change something in the kernel
> MACHINE_KERNEL_PR = "r0"
>
> @@ -62,7 +60,7 @@MACHINE_FEATURES+= "efi"
> WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}"
>
> do_image_wic[depends] += "virtual/bootloader:do_deploy"
> -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> +do_image[depends] += "tiboot3-staging:do_deploy"
>
> SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
> SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
> deleted file mode 100644
> index 63267a5e..00000000
> --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> +++/dev/null
> @@ -1,27 +0,0 @@
> -# TI K3 Armv7 profile for Cortex-R5F cores
> -
> -require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":k3r5"
> -
> -# The closest of existing tunes for Cortex-R5F
> -DEFAULTTUNE = "armv7athf"
> -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> -
> -# R5 runs early bootloader and loads SYSFW
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
> -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> -
> -SPL_SUFFIX = "bin"
> -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> -UBOOT_SUFFIX = "bin"
> -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> deleted file mode 100644
> index 68061883..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm.confb/meta-ti-bsp/conf/machine/j7200-evm.conf
> indexdff1da69..e733d15a100644
> ---a/meta-ti-bsp/conf/machine/j7200-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-evm.conf
> @@ -10,4 +10,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j7200-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j7200"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> deleted file mode 100644
> index 1922d5c8..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm.confb/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> index54fd2b4a..fc33106c100644
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> requireconf/machine/j7200-evm.conf
>
> +SYSFW_SOC = "j7200_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> deleted file mode 100644
> index 070bf7aa..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm.confb/meta-ti-bsp/conf/machine/j721e-evm.conf
> index5e1f6dca..ca23e3e3100644
> ---a/meta-ti-bsp/conf/machine/j721e-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721e-sk.dtb \
> "
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> deleted file mode 100644
> index 7904c660..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e_sr1_1"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm.confb/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> index441ca169..3d4bedb6100644
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> @@ -4,4 +4,5 @@
>
> requireconf/machine/j721e-evm.conf
>
> -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> +SYSFW_SOC = "j721e_sr1_1"
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> deleted file mode 100644
> index 508e96e5..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm.confb/meta-ti-bsp/conf/machine/j721s2-evm.conf
> indexecb1836f..63d86af0100644
> ---a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721s2-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j721s2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
> UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> deleted file mode 100644
> index 58cd92c4..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> index4cf32a28..1129a189100644
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>
> requireconf/machine/j721s2-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> deleted file mode 100644
> index 04feebc6..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm.confb/meta-ti-bsp/conf/machine/j784s4-evm.conf
> index40a63651..a242ef8a100644
> ---a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j784s4-evm.dtb \
> "
>
> +SYSFW_SOC = "j784s4"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
> UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> deleted file mode 100644
> index 80a228a0..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> index 8fa1c1fd..42468088 100644
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>
> requireconf/machine/j784s4-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/multiconfig/k3r5.confb/meta-ti-bsp/conf/multiconfig/k3r5.conf
> deleted file mode 100644
> index 936bce2f..00000000
> ---a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> +++/dev/null
> @@ -1,10 +0,0 @@
> -MAINMACHINE := "${MACHINE}"
> -
> -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> -
> -MACHINE:append = "-k3r5"
> -TCLIBC = "baremetal"
> -TI_TMPDIR_APPEND ?= "-k3r5"
> -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> -
> -SDKPKGSUFFIX = "k3r5-nativesdk"
> diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> index12292c88..0597d9bb100644
> --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> @@ -17,9 +17,6 @@do_install(){
> }
>
> do_deploy(){
> -}
> -
> -do_deploy:k3r5() {
> install -d ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> new file mode 100644
> index 00000000..0f1929b5
> ---/dev/null
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> @@ -0,0 +1,65 @@
> +require u-boot-ti.inc
> +
> +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}
> +
> +PR = "r0"
> +BRANCH = "ti-u-boot-2023.04"
> +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> +
> +PROVIDES:remove = "virtual/bootloader"
> +PROVIDES:remove = "u-boot"
> +
> +# Using gcc-cross-arm-native here would have been ideal
> +# as the compiler version would match between R5 and
> +# main ARM core builds. arm-oe-linux-gnueabi-
> +DEPENDS += "gcc-arm-none-eabi-native"
> +
> +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> +
> +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> +
> +SPL_SUFFIX = "bin"
> +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> +UBOOT_SUFFIX = "bin"
> +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> +
> +do_compile:append () {
> + if [ -n "${UBOOT_CONFIG}" ];
> + then
> + for config in ${UBOOT_MACHINE}; do
> + i=$(expr $i + 1);
> + for type in ${UBOOT_CONFIG}; do
> + j=$(expr $j + 1);
> + if [ $j -eq $i ];
> + then
> + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> + fi
> + fi
> + done
> + unset j
> + done
> + unset i
> + else
> + if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> + fi
> + fi
> +}
> +
> +do_deploy:append () {
> + for f in ${B}/tiboot3-*.bin; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +
> + for f in ${B}/sysfw*.itb; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +}
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> index5bb20213..1ec5f9bf100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
> SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>
> BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
> SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> index2f15c4fb..b0f88a5a100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>
> # SYSFW/TIFS Firmware
> DEPENDS:append:k3 = " ti-sci-fw"
> -DEPENDS:append:k3r5 = " ti-sci-fw"
>
> DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>
> @@ -79,7 +78,6 @@SYSROOT_DIRS+= "/boot"
>
> # SPL (Second Program Loader) to be loaded over UART
> SPL_UART_BINARY = "u-boot-spl.bin"
> -SPL_UART_BINARY:k3r5 = ""
>
> SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
> SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> @@ -108,30 +106,6 @@UBOOT_HS_2ND_BINARY= "u-boot-spl_HS_2ND"
> UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
> UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>
> -do_compile:append:k3r5 () {
> - if [ -n "${UBOOT_CONFIG}" ];
> - then
> - for config in ${UBOOT_MACHINE}; do
> - i=$(expr $i + 1);
> - for type in ${UBOOT_CONFIG}; do
> - j=$(expr $j + 1);
> - if [ $j -eq $i ];
> - then
> - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> - fi
> - fi
> - done
> - unset j
> - done
> - unset i
> - else
> - if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> - fi
> - fi
> -}
> -
> do_install:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then
> @@ -204,20 +178,6 @@ do_install:append () {
> fi
> }
>
> -do_deploy:append:k3r5 () {
> - for f in ${B}/tiboot3-*.bin; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -
> - for f in ${B}/sysfw*.itb; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -}
> -
> do_deploy:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then-- Ryan Eatmon [email protected] <mailto:[email protected]>
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17353): https://lists.yoctoproject.org/g/meta-ti/message/17353 <https://lists.yoctoproject.org/g/meta-ti/message/17353>
Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612 <https://lists.yoctoproject.org/mt/103283292/5052612>
Group Owner: [email protected] <mailto:meta-ti%[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
Best regards, José Quaresma
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Quoted 18 lines · Ryan Eatmon
Quoted 15 lines · Andrew Davis
Quoted 3 lines · Jose Quaresma
Hi Andrew,
I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
I hope so, I was thinking of the troubles you have been having when puting this together. (plus several others on E2E with multiconf issues)
Quoted 1 line
I will test it but maybe only next year.
This is a very early RFC so no guarantee it even boots on all platforms. Denys and Ryan put a lot of work into keeping multiconf working so just wanted to make sure they are okay with dropping it back out before I do too much work on getting all the exact details right.
Quoted 5 lines
Quoted 2 lines
There is also a change needed up in the meta-arago layer so this all will probably end up targeting only master/scarthgap and not kirkstone.
What's the change in arago? Will my test builds even work without that change?
In tisdk-core-bundle the arm32 toolchain is pulled in so tiboot3.bin can be rebuilt in the SDK. Should be a simple fix, but means tisdk-core-bundle might not build right now, other images should be fine.
Andrew
Quoted 955 lines
Quoted 954 lines
Andrew
Quoted 951 lines
Jose
Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <[email protected] <mailto:[email protected]>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
On 12/20/2023 10:07 AM, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32) > multiconfig environment. Using multiconfig pulls in a large number of > build dependencies (see the -native environment in baremetal tmp dir) > this increases build time and space.
>
> Using multiconfig for a deploy target also leads to several oddities in > the bitbake build system forcing use of a non-standard deploy directory > and careful checks that no recipe built in both configuration deploy > the same files.
>
> While I believe we will get more use out of multiconfig for future > devices, today let's simplify the K3 build infrastructure here by > building R5 SPL like a normal firmware using a foreign targeting cross > compiler. This is the technique meta-arm uses to build firmware (see > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware > recipe here.
>
> With that we can also drop all the related k3r5 multiconfig files and > definitions. Do that here.On first glance, this looks good. Let me do some test builds.
> Signed-off-by: Andrew Davis <[email protected] <mailto:[email protected]>>
> ---
> meta-ti-bsp/classes/ti-secdev.bbclass | 3 -
> .../conf/machine/am62axx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++
> .../conf/machine/am62pxx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++
> .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++
> .../conf/machine/am62xxsip-evm-k3r5.conf | 16 -----
> meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++
> meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++
> .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++
> .../conf/machine/beaglebone-ai64-k3r5.conf | 17 -----
> meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++
> meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
> meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++
> meta-ti-bsp/conf/machine/include/k3.inc | 4 +-
> meta-ti-bsp/conf/machine/include/k3r5.inc | 27 --------
> meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++
> .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++
> .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +-
> meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++
> .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 +
> meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++
> .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 +
> meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 ---
> .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> | 3 -
> .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> | 65 +++++++++++++++++++
> .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> | 2 -
> meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------
> 44 files changed, 152 insertions(+), 303 deletions(-)
> delete mode 100644meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
> delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.conf
> create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>
> diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
> indexb3d70e5c..18d15269100644
> --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> @@ -2,14 +2,11 @@
>
> # K3 SECDEV scripts use OpenSSL
> DEPENDS:append:k3 = " openssl-native"
> -DEPENDS:append:k3r5 = " openssl-native"
>
> # Use package version of TI SECDEV for K3 if one is not provided through the environment
> DEPENDS:append:k3 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }"
> -DEPENDS:append:k3r5 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }"
> TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
> TI_SECURE_DEV_PKG:k3 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}"
> -TI_SECURE_DEV_PKG:k3r5 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}"
>
> # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
> TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> deleted file mode 100644
> index 2af3317e..00000000
> ---a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62A HS-FS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62ax"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm.confb/meta-ti-bsp/conf/machine/am62axx-evm.conf
> index 22f61401..59884629 100644
> ---a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62a7-sk.dtb \
> "
>
> +SYSFW_SOC = "am62ax"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
> UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> deleted file mode 100644
> index 36915381..00000000
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62PX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62px"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm.confb/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> indexd7c9f589..116d819b100644
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62p5-sk.dtb \
> "
>
> +SYSFW_SOC = "am62px"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
> UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> deleted file mode 100644
> index 548369ca..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm.confb/meta-ti-bsp/conf/machine/am62xx-evm.conf
> indexfadbc6f4..6f234811100644
> ---a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> deleted file mode 100644
> index aa9422cd..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX LP GP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> index229b74bc..e33b60e2100644
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> @@ -16,4 +16,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62-lp-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
> UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> deleted file mode 100644
> index 0daff2b9..00000000
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> +++/dev/null
> @@ -1,16 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX SIP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> -
> -#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> -# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
> diff --gita/meta-ti-bsp/conf/machine/am62xxsip-evm.confb/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> indexb5dd18f1..2e077f75100644
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> @@ -13,4 +13,14 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> +
> +#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> +# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> deleted file mode 100644
> index e932928a..00000000
> ---a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM64xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am64x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm.confb/meta-ti-bsp/conf/machine/am64xx-evm.conf
> indexc6ba2a87..dc21c174100644
> ---a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am64xx.inc
>
> +SYSFW_SOC = "am64x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> deleted file mode 100644
> index 8744ac3e..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm.confb/meta-ti-bsp/conf/machine/am65xx-evm.conf
> indexf6eb6f0c..9b050b03100644
> ---a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>
> MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> deleted file mode 100644
> index 337c8413..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> indexf8221f31..4164ae53100644
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confb/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> deleted file mode 100644
> index b893f380..00000000
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> +++/dev/null
> @@ -1,17 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeagleBone AI-64 (R5F)
> -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64.confb/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> indexe529f565..bad86a22100644
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> +++b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/j721e.inc
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay-k3r5.confb/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> deleted file mode 100644
> index c40615c9..00000000
> ---a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> +++/dev/null
> @@ -1,14 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeaglePlay (R5F)
> -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>"
> -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>"
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay.confb/meta-ti-bsp/conf/machine/beagleplay.conf
> indexac4a202a..312fc503100644
> ---a/meta-ti-bsp/conf/machine/beagleplay.conf
> +++b/meta-ti-bsp/conf/machine/beagleplay.conf
> @@ -18,6 +18,11 @@TFA_K3_SYSTEM_SUSPEND= "1"
>
> OPTEEMACHINE = "k3-am62x"
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index2415f0ba..84feee08100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>
> require conf/machine/include/arm/arch-arm64.inc
>
> -BBMULTICONFIG += "k3r5"
> -
> # Increase this everytime you change something in the kernel
> MACHINE_KERNEL_PR = "r0"
>
> @@ -62,7 +60,7 @@MACHINE_FEATURES+= "efi"
> WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}"
>
> do_image_wic[depends] += "virtual/bootloader:do_deploy"
> -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> +do_image[depends] += "tiboot3-staging:do_deploy"
>
> SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
> SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
> deleted file mode 100644
> index 63267a5e..00000000
> --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> +++/dev/null
> @@ -1,27 +0,0 @@
> -# TI K3 Armv7 profile for Cortex-R5F cores
> -
> -require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":k3r5"
> -
> -# The closest of existing tunes for Cortex-R5F
> -DEFAULTTUNE = "armv7athf"
> -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> -
> -# R5 runs early bootloader and loads SYSFW
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
> -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> -
> -SPL_SUFFIX = "bin"
> -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> -UBOOT_SUFFIX = "bin"
> -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> deleted file mode 100644
> index 68061883..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm.confb/meta-ti-bsp/conf/machine/j7200-evm.conf
> indexdff1da69..e733d15a100644
> ---a/meta-ti-bsp/conf/machine/j7200-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-evm.conf
> @@ -10,4 +10,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j7200-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j7200"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> deleted file mode 100644
> index 1922d5c8..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm.confb/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> index54fd2b4a..fc33106c100644
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> requireconf/machine/j7200-evm.conf
>
> +SYSFW_SOC = "j7200_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> deleted file mode 100644
> index 070bf7aa..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm.confb/meta-ti-bsp/conf/machine/j721e-evm.conf
> index5e1f6dca..ca23e3e3100644
> ---a/meta-ti-bsp/conf/machine/j721e-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721e-sk.dtb \
> "
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> deleted file mode 100644
> index 7904c660..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e_sr1_1"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm.confb/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> index441ca169..3d4bedb6100644
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> @@ -4,4 +4,5 @@
>
> requireconf/machine/j721e-evm.conf
>
> -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> +SYSFW_SOC = "j721e_sr1_1"
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> deleted file mode 100644
> index 508e96e5..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm.confb/meta-ti-bsp/conf/machine/j721s2-evm.conf
> indexecb1836f..63d86af0100644
> ---a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721s2-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j721s2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
> UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> deleted file mode 100644
> index 58cd92c4..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> index4cf32a28..1129a189100644
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>
> requireconf/machine/j721s2-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> deleted file mode 100644
> index 04feebc6..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm.confb/meta-ti-bsp/conf/machine/j784s4-evm.conf
> index40a63651..a242ef8a100644
> ---a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j784s4-evm.dtb \
> "
>
> +SYSFW_SOC = "j784s4"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
> UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> deleted file mode 100644
> index 80a228a0..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> index 8fa1c1fd..42468088 100644
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>
> requireconf/machine/j784s4-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/multiconfig/k3r5.confb/meta-ti-bsp/conf/multiconfig/k3r5.conf
> deleted file mode 100644
> index 936bce2f..00000000
> ---a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> +++/dev/null
> @@ -1,10 +0,0 @@
> -MAINMACHINE := "${MACHINE}"
> -
> -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> -
> -MACHINE:append = "-k3r5"
> -TCLIBC = "baremetal"
> -TI_TMPDIR_APPEND ?= "-k3r5"
> -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> -
> -SDKPKGSUFFIX = "k3r5-nativesdk"
> diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> index12292c88..0597d9bb100644
> --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> @@ -17,9 +17,6 @@do_install(){
> }
>
> do_deploy(){
> -}
> -
> -do_deploy:k3r5() {
> install -d ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> new file mode 100644
> index 00000000..0f1929b5
> ---/dev/null
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> @@ -0,0 +1,65 @@
> +require u-boot-ti.inc
> +
> +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}
> +
> +PR = "r0"
> +BRANCH = "ti-u-boot-2023.04"
> +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> +
> +PROVIDES:remove = "virtual/bootloader"
> +PROVIDES:remove = "u-boot"
> +
> +# Using gcc-cross-arm-native here would have been ideal
> +# as the compiler version would match between R5 and
> +# main ARM core builds. arm-oe-linux-gnueabi-
> +DEPENDS += "gcc-arm-none-eabi-native"
> +
> +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> +
> +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> +
> +SPL_SUFFIX = "bin"
> +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> +UBOOT_SUFFIX = "bin"
> +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> +
> +do_compile:append () {
> + if [ -n "${UBOOT_CONFIG}" ];
> + then
> + for config in ${UBOOT_MACHINE}; do
> + i=$(expr $i + 1);
> + for type in ${UBOOT_CONFIG}; do
> + j=$(expr $j + 1);
> + if [ $j -eq $i ];
> + then
> + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> + fi
> + fi
> + done
> + unset j
> + done
> + unset i
> + else
> + if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> + fi
> + fi
> +}
> +
> +do_deploy:append () {
> + for f in ${B}/tiboot3-*.bin; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +
> + for f in ${B}/sysfw*.itb; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +}
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> index5bb20213..1ec5f9bf100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
> SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>
> BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
> SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> index2f15c4fb..b0f88a5a100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>
> # SYSFW/TIFS Firmware
> DEPENDS:append:k3 = " ti-sci-fw"
> -DEPENDS:append:k3r5 = " ti-sci-fw"
>
> DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>
> @@ -79,7 +78,6 @@SYSROOT_DIRS+= "/boot"
>
> # SPL (Second Program Loader) to be loaded over UART
> SPL_UART_BINARY = "u-boot-spl.bin"
> -SPL_UART_BINARY:k3r5 = ""
>
> SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
> SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> @@ -108,30 +106,6 @@UBOOT_HS_2ND_BINARY= "u-boot-spl_HS_2ND"
> UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
> UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>
> -do_compile:append:k3r5 () {
> - if [ -n "${UBOOT_CONFIG}" ];
> - then
> - for config in ${UBOOT_MACHINE}; do
> - i=$(expr $i + 1);
> - for type in ${UBOOT_CONFIG}; do
> - j=$(expr $j + 1);
> - if [ $j -eq $i ];
> - then
> - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> - fi
> - fi
> - done
> - unset j
> - done
> - unset i
> - else
> - if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> - fi
> - fi
> -}
> -
> do_install:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then
> @@ -204,20 +178,6 @@ do_install:append () {
> fi
> }
>
> -do_deploy:append:k3r5 () {
> - for f in ${B}/tiboot3-*.bin; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -
> - for f in ${B}/sysfw*.itb; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -}
> -
> do_deploy:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then-- Ryan Eatmon [email protected] <mailto:[email protected]>
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17353): https://lists.yoctoproject.org/g/meta-ti/message/17353 <https://lists.yoctoproject.org/g/meta-ti/message/17353>
Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612 <https://lists.yoctoproject.org/mt/103283292/5052612>
Group Owner: [email protected] <mailto:meta-ti%[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
Best regards, José Quaresma
Hi Andrew,
Quoted 22 lines · Andrew Davis via lists.yoctoproject.org
Quoted 21 lines · Ryan Eatmon
Quoted 17 lines · Andrew Davis
Quoted 3 lines · Jose Quaresma
Hi Andrew,
I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
I hope so, I was thinking of the troubles you have been having when puting this together. (plus several others on E2E with multiconf issues)
Quoted 1 line
I will test it but maybe only next year.
This is a very early RFC so no guarantee it even boots on all platforms. Denys and Ryan put a lot of work into keeping multiconf working so just wanted to make sure they are okay with dropping it back out before I do too much work on getting all the exact details right.
There is also a change needed up in the meta-arago layer so this all will probably end up targeting only master/scarthgap and not kirkstone.
Quoted 280 lines
Quoted 2 lines
What's the change in arago? Will my test builds even work without that change?
In tisdk-core-bundle the arm32 toolchain is pulled in so tiboot3.bin can be rebuilt in the SDK. Should be a simple fix, but means tisdk-core-bundle might not build right now, other images should be fine.
Andrew
Quoted 271 lines
Quoted 271 lines
Andrew
Quoted 268 lines
Jose
Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <[email protected] <mailto:[email protected]>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
On 12/20/2023 10:07 AM, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32) > multiconfig environment. Using multiconfig pulls in a large number of > build dependencies (see the -native environment in baremetal tmp dir) > this increases build time and space.
>
> Using multiconfig for a deploy target also leads to several oddities in > the bitbake build system forcing use of a non-standard deploy directory > and careful checks that no recipe built in both configuration deploy > the same files.
>
> While I believe we will get more use out of multiconfig for future > devices, today let's simplify the K3 build infrastructure here by > building R5 SPL like a normal firmware using a foreign targeting cross > compiler. This is the technique meta-arm uses to build firmware (see > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware > recipe here.
>
> With that we can also drop all the related k3r5 multiconfig files and > definitions. Do that here.On first glance, this looks good. Let me do some test builds.
> Signed-off-by: Andrew Davis <[email protected] <mailto:[email protected]>>
> ---
> meta-ti-bsp/classes/ti-secdev.bbclass | 3 -
> .../conf/machine/am62axx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++
> .../conf/machine/am62pxx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
> meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++
> .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++
> .../conf/machine/am62xxsip-evm-k3r5.conf | 16 -----
> meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++
> meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++
> .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++
> .../conf/machine/beaglebone-ai64-k3r5.conf | 17 -----
> meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++
> meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
> meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++
> meta-ti-bsp/conf/machine/include/k3.inc | 4 +-
> meta-ti-bsp/conf/machine/include/k3r5.inc | 27 --------
> meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++
> .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++
> meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++
> .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +-
> meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++
> .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 +
> meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++
> .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ----
> meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 +
> meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 ---
> .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> | 3 -
> .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> | 65 +++++++++++++++++++ > .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> | 2 -
> meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40
------------
> 44 files changed, 152 insertions(+), 303 deletions(-)
> delete mode 100644meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
> delete mode 100644meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> delete mode 100644meta-ti-bsp/conf/multiconfig/k3r5.conf
> create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>
> diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
> indexb3d70e5c..18d15269100644
> --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> @@ -2,14 +2,11 @@
>
> # K3 SECDEV scripts use OpenSSL
> DEPENDS:append:k3 = " openssl-native"
> -DEPENDS:append:k3r5 = " openssl-native"
>
> # Use package version of TI SECDEV for K3 if one is not provided through the environment
> DEPENDS:append:k3 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }" > -DEPENDS:append:k3r5 = "${@ '' ifd.getVar('TI_SECURE_DEV_PKG_K3')else ' ti-k3-secdev-native' }" > TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
> TI_SECURE_DEV_PKG:k3 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}" > -TI_SECURE_DEV_PKG:k3r5 = "${@d.getVar('TI_SECURE_DEV_PKG_K3')ord.getVar('TI_K3_SECDEV_INSTALL_DIR')}" >
> # For non-K3 we require the SECDEV tools be provided through the environment with the following vars > TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf> deleted file mode 100644
> index 2af3317e..00000000
> ---a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62A HS-FS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62ax"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62axx-evm.confb/meta-ti-bsp/conf/machine/am62axx-evm.conf> index 22f61401..59884629 100644
> ---a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62a7-sk.dtb \
> "
>
> +SYSFW_SOC = "am62ax"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
> UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf> deleted file mode 100644
> index 36915381..00000000
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62PX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62px"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62pxx-evm.confb/meta-ti-bsp/conf/machine/am62pxx-evm.conf> indexd7c9f589..116d819b100644
> ---a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62p5-sk.dtb \
> "
>
> +SYSFW_SOC = "am62px"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
> UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf> deleted file mode 100644
> index 548369ca..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-evm.confb/meta-ti-bsp/conf/machine/am62xx-evm.conf> indexfadbc6f4..6f234811100644
> ---a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> @@ -14,4 +14,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf> deleted file mode 100644
> index aa9422cd..00000000
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX LP GP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xx-lp-evm.confb/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf> index229b74bc..e33b60e2100644
> ---a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> @@ -16,4 +16,9 @@KERNEL_DEVICETREE= " \
> ti/k3-am62-lp-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
> UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.confb/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf> deleted file mode 100644
> index 0daff2b9..00000000
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> +++/dev/null
> @@ -1,16 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX SIP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> -
> -#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> -# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
Handling u-boot fragments configs was developed considering we have separate machine configs.
So different machine config for A53 & R5 was the differentiator to have a
single variable named UBOOT_CONFIG_FRAGMENTS for handling u-boot fragments
in u-boot-mergeconfig.inc- https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc?h=kirkstone
<https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc?h=kirkstone>With single config, a fixed is needed in u-boot-mergeconfig.inc as well. One way to quickly fix this is maintaining 2 variables.
So something like UBOOT_CONFIG_FRAGMENTS & UBOOT_CONFIG_FRAGMENTS_R5
and updating the u-boot-mergeconfig.inc to handle both the variables.
Not sure if this is the ideal way to do it though.
Currently this logic is used by AM62SIP only but we might have more platforms
in future with fragment defconfigs in u-boot.
Quoted 689 lines
Quoted 675 lines
Quoted 675 lines
Quoted 675 lines
> diff --git
a/meta-ti-bsp/conf/machine/am62xxsip-evm.confb/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> indexb5dd18f1..2e077f75100644
> ---a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> +++b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> @@ -13,4 +13,14 @@KERNEL_DEVICETREE= " \
> ti/k3-am625-sk.dtb \
> "
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> +
> +#UBOOT_CONFIG_FRAGMENTSholds the list of u-boot config fragments which has to be build
> +# along with the base defconfig mentioned inUBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> deleted file mode 100644
> index e932928a..00000000
> ---a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM64xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am64x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am64xx-evm.confb/meta-ti-bsp/conf/machine/am64xx-evm.conf
> indexc6ba2a87..dc21c174100644
> ---a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am64xx.inc
>
> +SYSFW_SOC = "am64x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> deleted file mode 100644
> index 8744ac3e..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-evm.confb/meta-ti-bsp/conf/machine/am65xx-evm.conf
> indexf6eb6f0c..9b050b03100644
> ---a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>
> MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> deleted file mode 100644
> index 337c8413..00000000
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/am65xx-hs-evm.confb/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> indexf8221f31..4164ae53100644
> ---a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> require conf/machine/include/am65xx.inc
>
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.confb/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> deleted file mode 100644
> index b893f380..00000000
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> +++/dev/null
> @@ -1,17 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeagleBone AI-64 (R5F)
> -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beaglebone-ai64.confb/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> indexe529f565..bad86a22100644
> ---a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> +++b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> @@ -4,6 +4,11 @@
>
> require conf/machine/include/j721e.inc
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay-k3r5.confb/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> deleted file mode 100644
> index c40615c9..00000000
> ---a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> +++/dev/null
> @@ -1,14 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeaglePlay (R5F)
> -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>"
> -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>"
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/beagleplay.confb/meta-ti-bsp/conf/machine/beagleplay.conf
> indexac4a202a..312fc503100644
> ---a/meta-ti-bsp/conf/machine/beagleplay.conf
> +++b/meta-ti-bsp/conf/machine/beagleplay.conf
> @@ -18,6 +18,11 @@TFA_K3_SYSTEM_SUSPEND= "1"
>
> OPTEEMACHINE = "k3-am62x"
>
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index2415f0ba..84feee08100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>
> require conf/machine/include/arm/arch-arm64.inc
>
> -BBMULTICONFIG += "k3r5"
> -
> # Increase this everytime you change something in the kernel
> MACHINE_KERNEL_PR = "r0"
>
> @@ -62,7 +60,7 @@MACHINE_FEATURES+= "efi"
> WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}" >
> do_image_wic[depends] += "virtual/bootloader:do_deploy"
> -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> +do_image[depends] += "tiboot3-staging:do_deploy"
>
> SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
> SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
> deleted file mode 100644
> index 63267a5e..00000000
> --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> +++/dev/null
> @@ -1,27 +0,0 @@
> -# TI K3 Armv7 profile for Cortex-R5F cores
> -
> -require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":k3r5"
> -
> -# The closest of existing tunes for Cortex-R5F
> -DEFAULTTUNE = "armv7athf"
> -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> -
> -# R5 runs early bootloader and loads SYSFW
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
> -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> -
> -SPL_SUFFIX = "bin"
> -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> -UBOOT_SUFFIX = "bin"
> -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> deleted file mode 100644
> index 68061883..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-evm.confb/meta-ti-bsp/conf/machine/j7200-evm.conf
> indexdff1da69..e733d15a100644
> ---a/meta-ti-bsp/conf/machine/j7200-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-evm.conf
> @@ -10,4 +10,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j7200-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j7200"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> deleted file mode 100644
�� > index 1922d5c8..00000000
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j7200-hs-evm.confb/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> index54fd2b4a..fc33106c100644
> ---a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> @@ -4,4 +4,9 @@
>
> requireconf/machine/j7200-evm.conf
>
> +SYSFW_SOC = "j7200_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> deleted file mode 100644
> index 070bf7aa..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-evm.confb/meta-ti-bsp/conf/machine/j721e-evm.conf
> index5e1f6dca..ca23e3e3100644
> ---a/meta-ti-bsp/conf/machine/j721e-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-evm.conf
> @@ -15,4 +15,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721e-sk.dtb \
> "
>
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> UBOOT_MACHINE = "j721e_evm_a72_config"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> deleted file mode 100644
> index 7904c660..00000000
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e_sr1_1"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721e-hs-evm.confb/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> index441ca169..3d4bedb6100644
> ---a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> @@ -4,4 +4,5 @@
>
> requireconf/machine/j721e-evm.conf
>
> -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> +SYSFW_SOC = "j721e_sr1_1"
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> deleted file mode 100644
> index 508e96e5..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-evm.confb/meta-ti-bsp/conf/machine/j721s2-evm.conf
> indexecb1836f..63d86af0100644
> ---a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j721s2-common-proc-board.dtb \
> "
>
> +SYSFW_SOC = "j721s2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
> UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> deleted file mode 100644
> index 58cd92c4..00000000
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j721s2-hs-evm.confb/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> index4cf32a28..1129a189100644
> ---a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>
> requireconf/machine/j721s2-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> deleted file mode 100644
> index 04feebc6..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-evm.confb/meta-ti-bsp/conf/machine/j784s4-evm.conf
> index40a63651..a242ef8a100644
> ---a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> @@ -18,4 +18,9 @@KERNEL_DEVICETREE= " \
> ti/k3-j784s4-evm.dtb \
> "
>
> +SYSFW_SOC = "j784s4"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
> UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> deleted file mode 100644
> index 80a228a0..00000000
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> +++/dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --gita/meta-ti-bsp/conf/machine/j784s4-hs-evm.confb/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> index 8fa1c1fd..42468088 100644
> ---a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> +++b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> @@ -3,3 +3,5 @@
> #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>
> requireconf/machine/j784s4-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --gita/meta-ti-bsp/conf/multiconfig/k3r5.confb/meta-ti-bsp/conf/multiconfig/k3r5.conf
> deleted file mode 100644
> index 936bce2f..00000000
> ---a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> +++/dev/null
> @@ -1,10 +0,0 @@
> -MAINMACHINE := "${MACHINE}"
> -
> -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> -
> -MACHINE:append = "-k3r5"
> -TCLIBC = "baremetal"
> -TI_TMPDIR_APPEND ?= "-k3r5"
> -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> -
> -SDKPKGSUFFIX = "k3r5-nativesdk"
> diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> index12292c88..0597d9bb100644
> --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
> @@ -17,9 +17,6 @@do_install(){
> }
>
> do_deploy(){
> -}
> -
> -do_deploy:k3r5() {
> install -d ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
> install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> new file mode 100644
> index 00000000..0f1929b5
> ---/dev/null
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
> @@ -0,0 +1,65 @@
> +require u-boot-ti.inc
> +
> +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' ifd.getVar('TI_EXTRAS')else ''}
> +
> +PR = "r0"
> +BRANCH = "ti-u-boot-2023.04"
> +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> +
> +PROVIDES:remove = "virtual/bootloader"
> +PROVIDES:remove = "u-boot"
> +
> +# Using gcc-cross-arm-native here would have been ideal
> +# as the compiler version would match between R5 and
> +# main ARM core builds. arm-oe-linux-gnueabi-
> +DEPENDS += "gcc-arm-none-eabi-native"
> +
> +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> +
> +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> +
> +SPL_SUFFIX = "bin"
> +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> +UBOOT_SUFFIX = "bin"
> +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> +
> +do_compile:append () {
> + if [ -n "${UBOOT_CONFIG}" ];
> + then
> + for config in ${UBOOT_MACHINE}; do
> + i=$(expr $i + 1);
> + for type in ${UBOOT_CONFIG}; do
> + j=$(expr $j + 1);
> + if [ $j -eq $i ];
> + then
> + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> + fi
> + fi
> + done
> + unset j
> + done
> + unset i
> + else
> + if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> + fi
> + fi
> +}
> +
> +do_deploy:append () {
> + for f in ${B}/tiboot3-*.bin; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +
> + for f in ${B}/sysfw*.itb; do
> + if [ -f "$f" ]; then
> + install -m 644 $f ${DEPLOYDIR}/
> + fi
> + done
> +}
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> index5bb20213..1ec5f9bf100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
> @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
> SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>
> BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
> SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> index2f15c4fb..b0f88a5a100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>
> # SYSFW/TIFS Firmware
> DEPENDS:append:k3 = " ti-sci-fw"
> -DEPENDS:append:k3r5 = " ti-sci-fw"
>
> DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>
> @@ -79,7 +78,6 @@SYSROOT_DIRS+= "/boot"
>
> # SPL (Second Program Loader) to be loaded over UART
> SPL_UART_BINARY = "u-boot-spl.bin"
> -SPL_UART_BINARY:k3r5 = ""
>
> SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
> SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> @@ -108,30 +106,6 @@UBOOT_HS_2ND_BINARY= "u-boot-spl_HS_2ND"
> UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
> UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>
> -do_compile:append:k3r5 () {
> - if [ -n "${UBOOT_CONFIG}" ];
> - then
> - for config in ${UBOOT_MACHINE}; do
> - i=$(expr $i + 1);
> - for type in ${UBOOT_CONFIG}; do
> - j=$(expr $j + 1);
> - if [ $j -eq $i ];
> - then
> - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> - fi
> - fi
> - done
> - unset j
> - done
> - unset i
> - else
> - if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> - fi
> - fi
> -}
> -
> do_install:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then
> @@ -204,20 +178,6 @@ do_install:append () {
> fi
> }
>
> -do_deploy:append:k3r5 () {
> - for f in ${B}/tiboot3-*.bin; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -
> - for f in ${B}/sysfw*.itb; do
> - if [ -f "$f" ]; then
> - install -m 644 $f ${DEPLOYDIR}/
> - fi
> - done
> -}
> -
> do_deploy:append () {
> if [ -n "${UBOOT_CONFIG}" ]
> then-- Ryan Eatmon [email protected] <mailto:[email protected]>
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTSQuoted 5 lines
Quoted 4 lines
Quoted 4 lines
Signature · 3 lines
Best regards, José Quaresma-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17357): https://lists.yoctoproject.org/g/meta-ti/message/17357
Mute This Topic: https://lists.yoctoproject.org/mt/103283292/7030289
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 17 lines · Andrew Davis
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment. Using multiconfig pulls in a large number of build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
Quoted 3 lines
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
Looks like this would have avoided some of the pain to get our master CI build again. ;-)
Looking forward to it.
Nitpick: The new recipe has a fancy version:
tiboot3-staging_2023.5.bb
Thanks
Max
Quoted 905 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/classes/ti-secdev.bbclass | 3 - .../conf/machine/am62axx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62axx-evm.conf | 5 ++ .../conf/machine/am62pxx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ---- meta-ti-bsp/conf/machine/am62xx-evm.conf | 5 ++ .../conf/machine/am62xx-lp-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 5 ++ .../conf/machine/am62xxsip-evm-k3r5.conf | 16 ----- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 10 +++ meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am64xx-evm.conf | 5 ++ meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-evm.conf | 5 ++ .../conf/machine/am65xx-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/am65xx-hs-evm.conf | 5 ++ .../conf/machine/beaglebone-ai64-k3r5.conf | 17 ----- meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++ meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ---- meta-ti-bsp/conf/machine/beagleplay.conf | 5 ++ meta-ti-bsp/conf/machine/include/k3.inc | 4 +- meta-ti-bsp/conf/machine/include/k3r5.inc | 27 -------- meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-evm.conf | 5 ++ .../conf/machine/j7200-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j7200-hs-evm.conf | 5 ++ meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-evm.conf | 5 ++ .../conf/machine/j721e-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721e-hs-evm.conf | 3 +- meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-evm.conf | 5 ++ .../conf/machine/j721s2-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 2 + meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-evm.conf | 5 ++ .../conf/machine/j784s4-hs-evm-k3r5.conf | 11 ---- meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 2 + meta-ti-bsp/conf/multiconfig/k3r5.conf | 10 --- .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 - .../u-boot/tiboot3-staging_2023.5.bb | 65 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 2 - meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 40 ------------ 44 files changed, 152 insertions(+), 303 deletions(-) delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bbmeta-ti-bsp/classes/ti-secdev.bbclass +0
-3@@ -2,14 +2,11 @@ # K3 SECDEV scripts use OpenSSL DEPENDS:append:k3 = " openssl-native" -DEPENDS:append:k3r5 = " openssl-native" # Use package version of TI SECDEV for K3 if one is not provided through the environment DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev" TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" # For non-K3 we require the SECDEV tools be provided through the environment with the following vars TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62A HS-FS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62ax" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62axx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62a7-sk.dtb \ " +SYSFW_SOC = "am62ax" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig" UBOOT_MACHINE = "am62ax_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62PX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62px" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62px_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62pxx-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62p5-sk.dtb \ " +SYSFW_SOC = "am62px" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig" UBOOT_MACHINE = "am62px_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf deleted +0
-12@@ -1,12 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) - -require conf/machine/include/k3r5.inc -require conf/machine/include/ti-extras.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am62xx-evm.conf +5
-0@@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig"meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX LP GP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"meta-ti-bsp/conf/machine/am62xx-lp-evm.conf +5
-0@@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \ ti/k3-am62-lp-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig" UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf deleted +0
-16@@ -1,16 +0,0 @@ -#@TYPE: Machine -#@NAME: AM62XX SIP EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig" - -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"meta-ti-bsp/conf/machine/am62xxsip-evm.conf +10
-0@@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \ ti/k3-am625-sk.dtb \ " +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" + +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details. +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM64xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am64x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs-fs" - -UBOOT_MACHINE = "am64x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am64xx-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am64xx.inc +SYSFW_SOC = "am64x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs-fs" + UBOOT_MACHINE = "am64x_evm_a53_defconfig" +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-evm.conf +5
-0@@ -4,6 +4,11 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: AM65xx HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "am65x_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "am65x_evm_r5_defconfig"meta-ti-bsp/conf/machine/am65xx-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/include/am65xx.inc +SYSFW_SOC = "am65x_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig" UBOOT_MACHINE = "am65x_evm_a53_defconfig"meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf deleted +0
-17@@ -1,17 +0,0 @@ -#@TYPE: Machine -#@NAME: BeagleBone AI-64 (R5F) -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/beaglebone-ai64.conf +5
-0@@ -4,6 +4,11 @@ require conf/machine/include/j721e.inc +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"meta-ti-bsp/conf/machine/beagleplay-k3r5.conf deleted +0
-14@@ -1,14 +0,0 @@ -#@TYPE: Machine -#@NAME: BeaglePlay (R5F) -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) - -require conf/machine/include/k3r5.inc - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" - -SYSFW_SOC = "am62x" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "am62x_evm_r5_defconfig"meta-ti-bsp/conf/machine/beagleplay.conf +5
-0@@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1" OPTEEMACHINE = "k3-am62x" +SYSFW_SOC = "am62x" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig" UBOOT_MACHINE = "am62x_evm_a53_defconfig" PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"meta-ti-bsp/conf/machine/include/k3.inc +1
-3@@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3" require conf/machine/include/arm/arch-arm64.inc -BBMULTICONFIG += "k3r5" - # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r0"@@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi" WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" do_image_wic[depends] += "virtual/bootloader:do_deploy" -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" +do_image[depends] += "tiboot3-staging:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"meta-ti-bsp/conf/machine/include/k3r5.inc deleted +0
-27@@ -1,27 +0,0 @@ -# TI K3 Armv7 profile for Cortex-R5F cores - -require conf/machine/include/ti-soc.inc -SOC_FAMILY:append = ":k3r5" - -# The closest of existing tunes for Cortex-R5F -DEFAULTTUNE = "armv7athf" -require conf/machine/include/arm/armv7a/tune-cortexa8.inc - -# R5 runs early bootloader and loads SYSFW -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" - -SPL_SUFFIX = "bin" -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" -UBOOT_SUFFIX = "bin" -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" - -PACKAGECONFIG:pn-u-boot-ti-staging = "" -PACKAGECONFIG:pn-u-boot-ti-mainline = ""meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"meta-ti-bsp/conf/machine/j7200-evm.conf +5
-0@@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j7200-common-proc-board.dtb \ " +SYSFW_SOC = "j7200" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_config"meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J7200 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j7200_sr2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j7200_evm_r5_defconfig"meta-ti-bsp/conf/machine/j7200-hs-evm.conf +5
-0@@ -4,4 +4,9 @@ require conf/machine/j7200-evm.conf +SYSFW_SOC = "j7200_sr2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "hs" + +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig" UBOOT_MACHINE = "j7200_evm_a72_defconfig"meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721e-evm.conf +5
-0@@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721e-sk.dtb \ " +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig" UBOOT_MACHINE = "j721e_evm_a72_config"meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721e HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721e_sr1_1" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721e_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721e-hs-evm.conf +2
-1@@ -4,4 +4,5 @@ require conf/machine/j721e-evm.conf -UBOOT_MACHINE = "j721e_evm_a72_defconfig" +SYSFW_SOC = "j721e_sr1_1" +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721s2-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j721s2-common-proc-board.dtb \ " +SYSFW_SOC = "j721s2" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig" UBOOT_MACHINE = "j721s2_evm_a72_defconfig"meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J721S2 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j721s2" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"meta-ti-bsp/conf/machine/j721s2-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM require conf/machine/j721s2-evm.conf + +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "gp" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"meta-ti-bsp/conf/machine/j784s4-evm.conf +5
-0@@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \ ti/k3-j784s4-evm.dtb \ " +SYSFW_SOC = "j784s4" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig" UBOOT_MACHINE = "j784s4_evm_a72_defconfig"meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf deleted +0
-11@@ -1,11 +0,0 @@ -#@TYPE: Machine -#@NAME: J784S4 HS EVM (R5F) -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core) - -require conf/machine/include/k3r5.inc - -SYSFW_SOC = "j784s4" -SYSFW_CONFIG = "evm" -SYSFW_SUFFIX = "hs" - -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"meta-ti-bsp/conf/machine/j784s4-hs-evm.conf +2
-0@@ -3,3 +3,5 @@ #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM require conf/machine/j784s4-evm.conf + +SYSFW_SUFFIX = "hs"meta-ti-bsp/conf/multiconfig/k3r5.conf deleted +0
-10@@ -1,10 +0,0 @@ -MAINMACHINE := "${MACHINE}" - -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}" - -MACHINE:append = "-k3r5" -TCLIBC = "baremetal" -TI_TMPDIR_APPEND ?= "-k3r5" -TMPDIR:append = "${TI_TMPDIR_APPEND}" - -SDKPKGSUFFIX = "k3r5-nativesdk"meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +0
-3@@ -17,9 +17,6 @@ do_install() { } do_deploy(){ -} - -do_deploy:k3r5() { install -d ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfwmeta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb new file +65
-0@@ -0,0 +1,65 @@ +require u-boot-ti.inc + +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} + +PR = "r0" +BRANCH = "ti-u-boot-2023.04" +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb" + +PROVIDES:remove = "virtual/bootloader" +PROVIDES:remove = "u-boot" + +# Using gcc-cross-arm-native here would have been ideal +# as the compiler version would match between R5 and +# main ARM core builds. arm-oe-linux-gnueabi- +DEPENDS += "gcc-arm-none-eabi-native" + +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc" + +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}" + +SPL_SUFFIX = "bin" +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}" +UBOOT_SUFFIX = "bin" +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}" +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}" + +do_compile:append () { + if [ -n "${UBOOT_CONFIG}" ]; + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ]; + then + if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then + ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} + fi + fi + done + unset j + done + unset i + else + if ! [ -f ${B}/${UBOOT_BINARY} ]; then + ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} + fi + fi +} + +do_deploy:append () { + for f in ${B}/tiboot3-*.bin; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done + + for f in ${B}/sysfw*.itb; do + if [ -f "$f" ]; then + install -m 644 $f ${DEPLOYDIR}/ + fi + done +}meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb +0
-2@@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011" SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82" BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay" -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay" SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d" -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +0
-40@@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n # SYSFW/TIFS Firmware DEPENDS:append:k3 = " ti-sci-fw" -DEPENDS:append:k3r5 = " ti-sci-fw" DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"@@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot" # SPL (Second Program Loader) to be loaded over UART SPL_UART_BINARY = "u-boot-spl.bin" -SPL_UART_BINARY:k3r5 = "" SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"@@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" -do_compile:append:k3r5 () { - if [ -n "${UBOOT_CONFIG}" ]; - then - for config in ${UBOOT_MACHINE}; do - i=$(expr $i + 1); - for type in ${UBOOT_CONFIG}; do - j=$(expr $j + 1); - if [ $j -eq $i ]; - then - if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then - ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} - fi - fi - done - unset j - done - unset i - else - if ! [ -f ${B}/${UBOOT_BINARY} ]; then - ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} - fi - fi -} - do_install:append () { if [ -n "${UBOOT_CONFIG}" ] then@@ -204,20 +178,6 @@ do_install:append () { fi } -do_deploy:append:k3r5 () { - for f in ${B}/tiboot3-*.bin; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done - - for f in ${B}/sysfw*.itb; do - if [ -f "$f" ]; then - install -m 644 $f ${DEPLOYDIR}/ - fi - done -} - do_deploy:append () { if [ -n "${UBOOT_CONFIG}" ] thenSignature · 1 line
2.39.2
This feels like a step backwards... I like the simplification side of this change. I also realize the complexities that multiconfig brings. But the alternative is rather a hack and has other issues - let me explain.
We used this approach of using binary compilers masquerading as -native tools (instead of proper -cross ones) to build different firmware images quite often in the past. Initial K3 support also used it, before I converted that to multiconfig.
Quoted 2 lines
The R5 SPL bootloader is the only software we build using the R5 (arm32) multiconfig environment.
Yeah, times are changing. With a recent switch to U-boot binman handling building and managing R5 firmwares behing the scenes, R5 SPL tiboot3.bin became the only arm32 component. But we used to also build k3-image-gen and package it with SYSFW into an .itb FIT image for the first 2 K3 platforms.
Back then we used prebuilt external toolchains and a binary compiler masquerading as -native tool is just a simplified version of such external toolchain. But we always wanted to get rid of external toolchains due to maintenance overhead.
Along with another requirement at that time to compile everything from sources, including FW for R5 cores, it was an obvious choice to build a proper secondary arm32 cross toolchain for R5 cores using multiconfig.
I know building FW images from sources is no longer a requirement, but the long-term plan then was to eventually cover other cores and HW accelerators too, building corresponding cross-compilers for them from the same set of sources. As external toolchains tend to fall behind with updates - e.g. binary gcc in kirkstone is 10.3, while the one built from sources is 11.4
Quoted 3 lines
Using multiconfig pulls in a large number of
build dependencies (see the -native environment in baremetal tmp dir) this increases build time and space.
Yes, building a toolchain from sources pulls some amount of dependencies. Of course, gcc-cross and binutils-cross are the main two, but they pull compiler libs like gmp, mpc, pcre, autotools, build tools, compression and crypto libs, utils and even some python modules...
Quoted 4 lines
Using multiconfig for a deploy target also leads to several oddities in the bitbake build system forcing use of a non-standard deploy directory and careful checks that no recipe built in both configuration deploy the same files.
Sigh, this was a rocky journey! At least it seems to be now mostly resolved in master to avoid internal file conflicts. Yes, can't deploy the same file to a common deploy from different multiconfigs. As of non-standard deploy location - it was quite a surprise that everyone just hardcodes the location to alway be in the main tmp/ dir - but we can move it back there now as that part got fixed.
Quoted 6 lines
While I believe we will get more use out of multiconfig for future devices, today let's simplify the K3 build infrastructure here by building R5 SPL like a normal firmware using a foreign targeting cross compiler. This is the technique meta-arm uses to build firmware (see scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware recipe here.
Yes, meta-arm uses non-standard binary compilers for couple firmware recipes. Other BSPs might use them here and there as well. And meta-ti used to do that a lot in the past, as I mentioned. But it is rather a hack. I've discussed this with Ross in the past and he was interested in possibly adopting multiconfig approach in meta-arm for proper cross-compiler use to build firmware images.
On the other hand, to promote and ease the initial adoption of SystemReady support for generic arm64 in the next LTS, we at the Yocto TSC agreed to completely skip building any boot firmware in OE-Core and simply consume corresponding prebuilt binaries - a simplified reference approach with the assumption that those FW binaries will be properly built from sources in their corresponding BSPs.
As I mentioned above, these hacky native binary compilers are just stripped down external toolchains, but they lack proper packaging and aren't suited for all the use cases and work flows, namely the SDK side of things. While those recipes extend to nativesdk, they don't integrate fully with the SDK and its sysroots, as far as I recall.
Quoted 2 lines
With that we can also drop all the related k3r5 multiconfig files and definitions. Do that here.
And one more point - there's currently work in progress to add support for building and packaging multiple variants of the same platform, e.g. am62x, where we produce multiple configurations of the bootloader, FW images and rootfs, which can then be mix-and-matched into a final set of images. It's still very early in prototyping, but there are chances it could use and build on top of the current k3r5 multiconfig functionality...
Signature · 1 line
Denys