diff options
-rw-r--r-- | meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/include/k3r5.inc | 6 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf | 6 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 51 |
6 files changed, 33 insertions, 48 deletions
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf index bd17474e..a484e444 100644 --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +++ b/meta-ti-bsp/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/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf index d6d4b1e3..81b8c75f 100644 --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +++ b/meta-ti-bsp/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/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc index 3cc79061..d000404e 100644 --- a/meta-ti-bsp/conf/machine/include/k3r5.inc +++ b/meta-ti-bsp/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/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf index 070bf7aa..9544cdb6 100644 --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/j721e-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/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf index 9c285bae..8e53a5cb 100644 --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/j721e-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/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc index d29c80cf..571fa4e3 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 | |||
@@ -56,13 +56,6 @@ SYSROOT_DIRS += "/boot" | |||
56 | SPL_UART_BINARY = "u-boot-spl.bin" | 56 | SPL_UART_BINARY = "u-boot-spl.bin" |
57 | SPL_UART_BINARY:k3r5 = "" | 57 | SPL_UART_BINARY:k3r5 = "" |
58 | SPL_UART_BINARY:lego-ev3 = "" | 58 | SPL_UART_BINARY:lego-ev3 = "" |
59 | SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin" | ||
60 | SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin" | ||
61 | SPL_UART_BINARY:j721s2-evm-k3r5 = "u-boot-spl.bin" | ||
62 | SPL_UART_BINARY:j721s2-hs-evm-k3r5 = "u-boot-spl.bin" | ||
63 | SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin" | ||
64 | SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin" | ||
65 | SPL_UART_BINARY:am62xx-evm-k3r5 = "u-boot-spl.bin" | ||
66 | 59 | ||
67 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | 60 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" |
68 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | 61 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" |
@@ -100,6 +93,12 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | |||
100 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | 93 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" |
101 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | 94 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" |
102 | 95 | ||
96 | do_compile:append:k3r5 () { | ||
97 | if ! [ -f ${B}/${UBOOT_BINARY} ]; then | ||
98 | ln -s spl/${UBOOT_BINARY} ${B}/${UBOOT_BINARY} | ||
99 | fi | ||
100 | } | ||
101 | |||
103 | do_install:append () { | 102 | do_install:append () { |
104 | if [ -n "${UBOOT_CONFIG}" ] | 103 | if [ -n "${UBOOT_CONFIG}" ] |
105 | then | 104 | then |
@@ -260,42 +259,4 @@ do_deploy:append () { | |||
260 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true | 259 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true |
261 | } | 260 | } |
262 | 261 | ||
263 | # j7200 uses combined image for tiboot3.bin that includes u-boot-spl.bin and sysfw | ||
264 | # along with board PM/RM configs generated by k3-image-gen and comes from ti-sci-fw | ||
265 | # hence move the legacy u-boot's tiboot3.bin and u-boot-spl.bin out of the way | ||
266 | do_deploy:append:j7200-evm-k3r5 () { | ||
267 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
268 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
269 | } | ||
270 | |||
271 | do_deploy:append:j7200-hs-evm-k3r5 () { | ||
272 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
273 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
274 | } | ||
275 | |||
276 | do_deploy:append:j721s2-evm-k3r5 () { | ||
277 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
278 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
279 | } | ||
280 | |||
281 | do_deploy:append:j721s2-hs-evm-k3r5 () { | ||
282 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
283 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
284 | } | ||
285 | |||
286 | do_deploy:append:am64xx-evm-k3r5 () { | ||
287 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
288 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
289 | } | ||
290 | |||
291 | do_deploy:append:am64xx-hs-evm-k3r5 () { | ||
292 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
293 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
294 | } | ||
295 | |||
296 | do_deploy:append:am62xx-evm-k3r5 () { | ||
297 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
298 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
299 | } | ||
300 | |||
301 | TOOLCHAIN = "gcc" | 262 | TOOLCHAIN = "gcc" |