diff options
| author | Yogesh Siraswar <yogeshs@ti.com> | 2021-11-19 22:26:05 -0500 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2021-12-15 11:40:51 -0600 |
| commit | 29fe207bec19f72fcdc30a991c8c66adf72d884e (patch) | |
| tree | 7ff13fb8690587fc6155ea92614ba428700b8a4e | |
| parent | 21feb29d8b9ddca7613a3b713a42842f8fc72f1c (diff) | |
| download | meta-ti-29fe207bec19f72fcdc30a991c8c66adf72d884e.tar.gz | |
j7200-hs: changes to support new hs platform
Changes to support new j7200 hs platform in:
1) optee: sign the image
2) atf: sign the image
3) u-boot: Add u-boot-spl image for combined boot image
4) ti-sci-fw_git: Update firmware prefix for j7200 hs
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
| -rw-r--r-- | recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 18 | ||||
| -rw-r--r-- | recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | 8 | ||||
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 6 | ||||
| -rw-r--r-- | recipes-security/optee/optee-os_%.bbappend | 4 |
4 files changed, 36 insertions, 0 deletions
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb index dd0ce090..f70c3aec 100644 --- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | |||
| @@ -2,6 +2,7 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
| 2 | 2 | ||
| 3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" | 3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" |
| 4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" | 4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" |
| 5 | DEPENDS:append:j7200-hs-evm-k3r5 = " virtual/bootloader" | ||
| 5 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" | 6 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" |
| 6 | DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader" | 7 | DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader" |
| 7 | 8 | ||
| @@ -24,6 +25,7 @@ SYSFW_PREFIX = "ti-sci-firmware" | |||
| 24 | SYSFW_PREFIX:j7-evm-k3r5 = "ti-fs-firmware" | 25 | SYSFW_PREFIX:j7-evm-k3r5 = "ti-fs-firmware" |
| 25 | SYSFW_PREFIX:j7200-evm-k3r5 = "ti-fs-firmware" | 26 | SYSFW_PREFIX:j7200-evm-k3r5 = "ti-fs-firmware" |
| 26 | SYSFW_PREFIX:j7-hs-evm-k3r5 = "ti-fs-firmware" | 27 | SYSFW_PREFIX:j7-hs-evm-k3r5 = "ti-fs-firmware" |
| 28 | SYSFW_PREFIX:j7200-hs-evm-k3r5 = "ti-fs-firmware" | ||
| 27 | 29 | ||
| 28 | SYSFW_SUFFIX ?= "unknown" | 30 | SYSFW_SUFFIX ?= "unknown" |
| 29 | 31 | ||
| @@ -54,6 +56,7 @@ EXTRA_OEMAKE_HS = " \ | |||
| 54 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" | 56 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" |
| 55 | 57 | ||
| 56 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 58 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
| 59 | EXTRA_OEMAKE:append:j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
| 57 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 60 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
| 58 | EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 61 | EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
| 59 | 62 | ||
| @@ -103,6 +106,21 @@ do_deploy:j7200-evm-k3r5() { | |||
| 103 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | 106 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ |
| 104 | } | 107 | } |
| 105 | 108 | ||
| 109 | do_install:j7200-hs-evm-k3r5() { | ||
| 110 | install -d ${D}/boot | ||
| 111 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 112 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
| 113 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 114 | } | ||
| 115 | |||
| 116 | do_deploy:j7200-hs-evm-k3r5() { | ||
| 117 | install -d ${DEPLOYDIR} | ||
| 118 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 119 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
| 120 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
| 121 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 122 | } | ||
| 123 | |||
| 106 | do_install:am64xx-evm-k3r5() { | 124 | do_install:am64xx-evm-k3r5() { |
| 107 | install -d ${D}/boot | 125 | install -d ${D}/boot |
| 108 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | 126 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} |
diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend index 8fdccbe8..42e867a9 100644 --- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | |||
| @@ -31,3 +31,11 @@ do_compile:append:j7-hs-evm() { | |||
| 31 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | 31 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ |
| 32 | ) | 32 | ) |
| 33 | } | 33 | } |
| 34 | |||
| 35 | do_compile:append:j7200-hs-evm() { | ||
| 36 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
| 37 | ( cd ${B}/${BUILD_DIR}/release/; \ | ||
| 38 | mv bl31.bin bl31.bin.unsigned; \ | ||
| 39 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
| 40 | ) | ||
| 41 | } | ||
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 633975ce..8ded12c2 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
| @@ -65,6 +65,7 @@ SPL_UART_BINARY:keystone = "" | |||
| 65 | SPL_UART_BINARY:k3r5 = "" | 65 | SPL_UART_BINARY:k3r5 = "" |
| 66 | SPL_UART_BINARY:lego-ev3 = "" | 66 | SPL_UART_BINARY:lego-ev3 = "" |
| 67 | SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin" | 67 | SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin" |
| 68 | SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin" | ||
| 68 | SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin" | 69 | SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin" |
| 69 | SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin" | 70 | SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin" |
| 70 | 71 | ||
| @@ -397,6 +398,11 @@ do_deploy:append:j7200-evm-k3r5 () { | |||
| 397 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | 398 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true |
| 398 | } | 399 | } |
| 399 | 400 | ||
| 401 | do_deploy:append:j7200-hs-evm-k3r5 () { | ||
| 402 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
| 403 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
| 404 | } | ||
| 405 | |||
| 400 | do_deploy:append:am64xx-evm-k3r5 () { | 406 | do_deploy:append:am64xx-evm-k3r5 () { |
| 401 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | 407 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true |
| 402 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | 408 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true |
diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend index 0a40fa23..5cb70df9 100644 --- a/recipes-security/optee/optee-os_%.bbappend +++ b/recipes-security/optee/optee-os_%.bbappend | |||
| @@ -57,6 +57,10 @@ do_compile:append:j7-hs-evm() { | |||
| 57 | optee_sign_k3hs | 57 | optee_sign_k3hs |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | do_compile:append:j7200-hs-evm() { | ||
| 61 | optee_sign_k3hs | ||
| 62 | } | ||
| 63 | |||
| 60 | do_install:append:ti-soc() { | 64 | do_install:append:ti-soc() { |
| 61 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true | 65 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true |
| 62 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true | 66 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true |
