Skip to contentSkip to conversation

AM64x Unification: Update u-boot conf

PATCH New Sinthu Raja M 1 participant 1 message Apr 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/3 AM64x Unification: Update u-boot conf

Update u-boot recipe to build for both SK and EVM compilation and installation through one machine name
Update AM64x config file to add both defconfig files for SK and EVM

---
 conf/machine/am64xx-evm-k3r5.conf | 10 +++++-
 conf/machine/am64xx-evm.conf      | 14 +++++++-
 conf/machine/include/am64xx.inc   |  1 +
 recipes-bsp/u-boot/u-boot-ti.inc  | 55 +++++++++++++++++++++++++++++--
 4 files changed, 76 insertions(+), 4 deletions(-)
conf/machine/am64xx-evm-k3r5.conf +9 -1
index afd36b72e..6fb693791 100644
@@ -8,4 +8,12 @@ SYSFW_SOC = "am64x"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "gp"
 
-UBOOT_MACHINE = "am64x_evm_r5_defconfig"
+UBOOT_CONFIG ??= "evm sk"
+UBOOT_CONFIG[evm] = "am64x_evm_r5_defconfig"
+UBOOT_CONFIG[sk] = "am64x_sk_r5_defconfig"
+
+UBOOT_MACHINE = ""
+
+UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "tiboot3-am64x-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "tiboot3-am64x.${UBOOT_SUFFIX}"
conf/machine/am64xx-evm.conf +13 -1
index c6ba2a873..53837ad19 100644
@@ -4,4 +4,16 @@
 
 require conf/machine/include/am64xx.inc
 
-UBOOT_MACHINE = "am64x_evm_a53_defconfig"
+IMAGE_BOOT_FILES = "tispl.bin u-boot.img"
+
+UBOOT_MACHINE = ""
+
+UBOOT_CONFIG ??= "evm sk"
+UBOOT_CONFIG[evm] = "am64x_evm_a53_defconfig"
+UBOOT_CONFIG[sk] = "am64x_sk_a53_defconfig"
+
+do_image_wic[depends] += "trusted-firmware-a:do_deploy"
+do_image_tar[depends] += "trusted-firmware-a:do_deploy"
+
+do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
conf/machine/include/am64xx.inc +1 -0
index 641bddd00..a46a50ed2 100644
@@ -8,6 +8,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
 KERNEL_DEVICETREE = " \
     ti/k3-am642-evm.dtb \
+    ti/k3-am642-sk.dtb \
 "
 
 # AM64 supports multi-certificate images, use the same
recipes-bsp/u-boot/u-boot-ti.inc +53 -2

61 lines not on this page · raw message

Signature · 1 line
2.17.0