diff options
-rw-r--r-- | conf/machine/am65xx-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | conf/machine/am65xx-hs-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | conf/machine/include/k3r5.inc | 6 | ||||
-rw-r--r-- | conf/machine/j7-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | conf/machine/j7-hs-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 51 |
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" | |||
9 | SYSFW_SUFFIX = "gp" | 9 | SYSFW_SUFFIX = "gp" |
10 | SYSFW_SYMLINK = "" | 10 | SYSFW_SYMLINK = "" |
11 | 11 | ||
12 | SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" | ||
13 | SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" | ||
14 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
15 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
16 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
17 | |||
12 | UBOOT_MACHINE = "am65x_evm_r5_defconfig" | 18 | UBOOT_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" | |||
9 | SYSFW_SUFFIX = "hs" | 9 | SYSFW_SUFFIX = "hs" |
10 | SYSFW_SYMLINK = "" | 10 | SYSFW_SYMLINK = "" |
11 | 11 | ||
12 | SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" | ||
13 | SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" | ||
14 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
15 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
16 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
17 | |||
12 | UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig" | 18 | UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig" |
13 | 19 | ||
14 | TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" | 20 | TI_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 | ||
17 | SPL_BINARY = "" | 17 | SPL_BINARY = "" |
18 | UBOOT_SUFFIX = "bin" | 18 | UBOOT_SUFFIX = "bin" |
19 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | 19 | UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}" |
20 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | 20 | UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" |
21 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | 21 | UBOOT_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" |
22 | 22 | ||
23 | PACKAGECONFIG_pn-u-boot-ti-staging = "" | 23 | PACKAGECONFIG_pn-u-boot-ti-staging = "" |
24 | PACKAGECONFIG_pn-u-boot-ti-mainline = "" | 24 | PACKAGECONFIG_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" | |||
8 | SYSFW_CONFIG = "evm" | 8 | SYSFW_CONFIG = "evm" |
9 | SYSFW_SUFFIX = "gp" | 9 | SYSFW_SUFFIX = "gp" |
10 | 10 | ||
11 | SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" | ||
12 | SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" | ||
13 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
14 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
15 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
16 | |||
11 | UBOOT_MACHINE = "j721e_evm_r5_defconfig" | 17 | UBOOT_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" | |||
9 | SYSFW_SUFFIX = "hs" | 9 | SYSFW_SUFFIX = "hs" |
10 | SYSFW_SYMLINK = "" | 10 | SYSFW_SYMLINK = "" |
11 | 11 | ||
12 | SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" | ||
13 | SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" | ||
14 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
15 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
16 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
17 | |||
12 | UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig" | 18 | UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig" |
13 | 19 | ||
14 | TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" | 20 | TI_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" | |||
57 | SPL_UART_BINARY_keystone = "" | 57 | SPL_UART_BINARY_keystone = "" |
58 | SPL_UART_BINARY_k3r5 = "" | 58 | SPL_UART_BINARY_k3r5 = "" |
59 | SPL_UART_BINARY_lego-ev3 = "" | 59 | SPL_UART_BINARY_lego-ev3 = "" |
60 | SPL_UART_BINARY_j7200-evm-k3r5 = "u-boot-spl.bin" | ||
61 | SPL_UART_BINARY_j7200-hs-evm-k3r5 = "u-boot-spl.bin" | ||
62 | SPL_UART_BINARY_j721s2-evm-k3r5 = "u-boot-spl.bin" | ||
63 | SPL_UART_BINARY_j721s2-hs-evm-k3r5 = "u-boot-spl.bin" | ||
64 | SPL_UART_BINARY_am64xx-evm-k3r5 = "u-boot-spl.bin" | ||
65 | SPL_UART_BINARY_am64xx-hs-evm-k3r5 = "u-boot-spl.bin" | ||
66 | SPL_UART_BINARY_am62xx-evm-k3r5 = "u-boot-spl.bin" | ||
67 | 60 | ||
68 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | 61 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" |
69 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | 62 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" |
@@ -113,6 +106,12 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | |||
113 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | 106 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" |
114 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | 107 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" |
115 | 108 | ||
109 | do_compile_append_k3r5 () { | ||
110 | if ! [ -f ${B}/${UBOOT_BINARY} ]; then | ||
111 | ln -s spl/${UBOOT_BINARY} ${B}/${UBOOT_BINARY} | ||
112 | fi | ||
113 | } | ||
114 | |||
116 | do_install_append () { | 115 | do_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 | ||
392 | do_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 | |||
397 | do_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 | |||
402 | do_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 | |||
407 | do_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 | |||
412 | do_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 | |||
417 | do_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 | |||
422 | do_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 | |||
427 | TOOLCHAIN = "gcc" | 388 | TOOLCHAIN = "gcc" |