From: Andrew Davis <a...@ti.com>

Use multiconfig to generate a GP SYSFW image. This allows the HS SDK
to be used on GP boards by simply switching out the SYSFW image:

$ cd /mnt/sd-card/boot
$ mv tiboot3-am64x-gp-evm.bin tiboot3.bin

Signed-off-by: Andrew Davis <a...@ti.com>
Signed-off-by: Ryan Eatmon <reat...@ti.com>
Signed-off-by: Denys Dmytriyenko <de...@konsulko.com>
---
 .../conf/machine/am64xx-hs-evm-k3r5-gp.conf      | 16 ++++++++++++++++
 meta-ti-bsp/conf/machine/am64xx-hs-evm.conf      |  6 ++++++
 meta-ti-bsp/conf/multiconfig/k3r5-gp.conf        |  3 +++
 3 files changed, 25 insertions(+)
 create mode 100644 meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5-gp.conf
 create mode 100644 meta-ti-bsp/conf/multiconfig/k3r5-gp.conf

diff --git a/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5-gp.conf 
b/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5-gp.conf
new file mode 100644
index 00000000..41c7027f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5-gp.conf
@@ -0,0 +1,16 @@
+#@TYPE: Machine
+#@NAME: AM64xx GP EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI AM64xx GP EVM (R5F core)
+
+# Booting GP requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/am64xx-hs-evm-k3r5.conf
+SOC_FAMILY:append = ":k3r5-gp"
+
+SYSFW_SUFFIX = "gp"
+SYSFW_TIBOOT3_SYMLINK = ""
+
+SPL_BINARY = ""
+UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "u-boot-r5spl-gp.${UBOOT_SUFFIX}"
diff --git a/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf 
b/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf
index 3ab9a49e..9f076099 100644
--- a/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf
@@ -17,3 +17,9 @@ UBOOT_DTBO_OFFSET =      "0x00010000"
 SPL_BINARY = "tispl.bin_HS"
 UBOOT_BINARY = "u-boot.img_HS"
 UBOOT_SYMLINK = "u-boot.img"
+
+# Since default tiboot3.bin on AM64x is for HS, add a version for GP
+BBMULTICONFIG += "k3r5-gp"
+IMAGE_BOOT_FILES += " tiboot3-am64x-gp-evm.bin"
+do_image_wic[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5-gp.conf 
b/meta-ti-bsp/conf/multiconfig/k3r5-gp.conf
new file mode 100644
index 00000000..80491e35
--- /dev/null
+++ b/meta-ti-bsp/conf/multiconfig/k3r5-gp.conf
@@ -0,0 +1,3 @@
+require k3r5.conf
+
+MACHINE:append = "-gp"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15279): 
https://lists.yoctoproject.org/g/meta-ti/message/15279
Mute This Topic: https://lists.yoctoproject.org/mt/94817229/21656
Group Owner: meta-ti+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to