summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2022-08-04 21:49:31 -0500
committerRyan Eatmon <reatmon@ti.com>2022-08-06 19:04:37 -0500
commit50c39940b63713932603ef2bc77d36aaf1f4fb46 (patch)
tree92da6e263dd9462b0b00f89fd41ef17ae9387b77
parent9d4dd73c37ae9d08db2bbeec3cee802679632106 (diff)
downloadmeta-ti-50c39940b63713932603ef2bc77d36aaf1f4fb46.tar.gz
machine: k3r5: Make combined R5 boot the default
Going forward, the combined tiboot3.bin is going to be the standard. Only AM65x and J721e will still use the split boot. Set the output of U-Boot to be u-boot-spl.bin by default and override only for the two split boot platforms. This makes it easier to add new platforms and simplifies deployment logic. Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--conf/machine/am65xx-evm-k3r5.conf6
-rw-r--r--conf/machine/am65xx-hs-evm-k3r5.conf6
-rw-r--r--conf/machine/include/k3r5.inc6
-rw-r--r--conf/machine/j7-evm-k3r5.conf6
-rw-r--r--conf/machine/j7-hs-evm-k3r5.conf6
-rw-r--r--recipes-bsp/u-boot/u-boot-ti.inc51
6 files changed, 33 insertions, 48 deletions
diff --git a/conf/machine/am65xx-evm-k3r5.conf b/conf/machine/am65xx-evm-k3r5.conf
index bd17474e..a484e444 100644
--- a/conf/machine/am65xx-evm-k3r5.conf
+++ b/conf/machine/am65xx-evm-k3r5.conf
@@ -9,4 +9,10 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp" 9SYSFW_SUFFIX = "gp"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "am65x_evm_r5_defconfig" 18UBOOT_MACHINE = "am65x_evm_r5_defconfig"
diff --git a/conf/machine/am65xx-hs-evm-k3r5.conf b/conf/machine/am65xx-hs-evm-k3r5.conf
index d6d4b1e3..81b8c75f 100644
--- a/conf/machine/am65xx-hs-evm-k3r5.conf
+++ b/conf/machine/am65xx-hs-evm-k3r5.conf
@@ -9,6 +9,12 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs" 9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig" 18UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig"
13 19
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" 20TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/conf/machine/include/k3r5.inc b/conf/machine/include/k3r5.inc
index a32accae..035ad812 100644
--- a/conf/machine/include/k3r5.inc
+++ b/conf/machine/include/k3r5.inc
@@ -16,9 +16,9 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16 16
17SPL_BINARY = "" 17SPL_BINARY = ""
18UBOOT_SUFFIX = "bin" 18UBOOT_SUFFIX = "bin"
19UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" 19UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
20UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" 20UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
21UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" 21UBOOT_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
22 22
23PACKAGECONFIG_pn-u-boot-ti-staging = "" 23PACKAGECONFIG_pn-u-boot-ti-staging = ""
24PACKAGECONFIG_pn-u-boot-ti-mainline = "" 24PACKAGECONFIG_pn-u-boot-ti-mainline = ""
diff --git a/conf/machine/j7-evm-k3r5.conf b/conf/machine/j7-evm-k3r5.conf
index b9e8cc01..862b017c 100644
--- a/conf/machine/j7-evm-k3r5.conf
+++ b/conf/machine/j7-evm-k3r5.conf
@@ -8,4 +8,10 @@ SYSFW_SOC = "j721e"
8SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp" 9SYSFW_SUFFIX = "gp"
10 10
11SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
12SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
13UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
14UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
15UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
16
11UBOOT_MACHINE = "j721e_evm_r5_defconfig" 17UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/conf/machine/j7-hs-evm-k3r5.conf b/conf/machine/j7-hs-evm-k3r5.conf
index 92d37dee..c0ddfcec 100644
--- a/conf/machine/j7-hs-evm-k3r5.conf
+++ b/conf/machine/j7-hs-evm-k3r5.conf
@@ -9,6 +9,12 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs" 9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig" 18UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig"
13 19
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" 20TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc
index acc06fea..e7020613 100644
--- a/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/recipes-bsp/u-boot/u-boot-ti.inc
@@ -57,13 +57,6 @@ SPL_UART_BINARY = "u-boot-spl.bin"
57SPL_UART_BINARY_keystone = "" 57SPL_UART_BINARY_keystone = ""
58SPL_UART_BINARY_k3r5 = "" 58SPL_UART_BINARY_k3r5 = ""
59SPL_UART_BINARY_lego-ev3 = "" 59SPL_UART_BINARY_lego-ev3 = ""
60SPL_UART_BINARY_j7200-evm-k3r5 = "u-boot-spl.bin"
61SPL_UART_BINARY_j7200-hs-evm-k3r5 = "u-boot-spl.bin"
62SPL_UART_BINARY_j721s2-evm-k3r5 = "u-boot-spl.bin"
63SPL_UART_BINARY_j721s2-hs-evm-k3r5 = "u-boot-spl.bin"
64SPL_UART_BINARY_am64xx-evm-k3r5 = "u-boot-spl.bin"
65SPL_UART_BINARY_am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
66SPL_UART_BINARY_am62xx-evm-k3r5 = "u-boot-spl.bin"
67 60
68SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" 61SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
69SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" 62SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
@@ -113,6 +106,12 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
113UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" 106UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
114UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" 107UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
115 108
109do_compile_append_k3r5 () {
110 if ! [ -f ${B}/${UBOOT_BINARY} ]; then
111 ln -s spl/${UBOOT_BINARY} ${B}/${UBOOT_BINARY}
112 fi
113}
114
116do_install_append () { 115do_install_append () {
117 if [ -n "${UBOOT_CONFIG}" ] 116 if [ -n "${UBOOT_CONFIG}" ]
118 then 117 then
@@ -386,42 +385,4 @@ do_deploy_append_keystone () {
386 fi 385 fi
387} 386}
388 387
389# j7200 uses combined image for tiboot3.bin that includes u-boot-spl.bin and sysfw
390# along with board PM/RM configs generated by k3-image-gen and comes from ti-sci-fw
391# hence move the legacy u-boot's tiboot3.bin and u-boot-spl.bin out of the way
392do_deploy_append_j7200-evm-k3r5 () {
393 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
394 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
395}
396
397do_deploy_append_j7200-hs-evm-k3r5 () {
398 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
399 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
400}
401
402do_deploy_append_j721s2-evm-k3r5 () {
403 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
404 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
405}
406
407do_deploy_append_j721s2-hs-evm-k3r5 () {
408 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
409 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
410}
411
412do_deploy_append_am64xx-evm-k3r5 () {
413 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
414 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
415}
416
417do_deploy_append_am64xx-hs-evm-k3r5 () {
418 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
419 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
420}
421
422do_deploy_append_am62xx-evm-k3r5 () {
423 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
424 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
425}
426
427TOOLCHAIN = "gcc" 388TOOLCHAIN = "gcc"