meta-ti-bsp: add BeagleBone AI-64 support
RFC PATCH 1/1 meta-ti-bsp: add BeagleBone AI-64 support
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../conf/machine/beaglebone-ai64-k3r5.conf | 22 ++++++ meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 79 +++++++++++++++++++ .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 + .../recipes-bsp/u-boot/u-boot-bb.org_git.bb | 14 ++++ .../recipes-kernel/linux/linux-bb.org_git.bb | 35 ++++++++ 5 files changed, 153 insertions(+) create mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf create mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64.conf create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf new file +22 -0
@@ -0,0 +1,22 @@ +#@TYPE: Machine +#@NAME: BeagleBone AI-64 (R5F) +#@DESCRIPTION: Machine configuration for the TI BeagleBone AI-64 (R5F core) + +require conf/machine/include/k3r5.inc + +PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" +PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" + +SYSFW_SOC = "j721e" +SYSFW_CONFIG = "evm" +SYSFW_SUFFIX = "gp" + +SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" +SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" +UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" +UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" +UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" + +UBOOT_MACHINE = "j721e_evm_r5_defconfig" + +TI_SECURE_DEV_PKG_K3 = "none"
meta-ti-bsp/conf/machine/beaglebone-ai64.conf new file +79 -0
79 lines not on this page · raw message
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +3 -0
@@ -9,6 +9,7 @@ DEPENDS:remove:am65xx-hs-evm-k3r5-sr2 = "virtual/bootloader" DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader" DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader" DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader" +DEPENDS:remove:beaglebone-ai64-k3r5 = "virtual/bootloader" DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" CLEANBROKEN = "1"
@@ -31,6 +32,7 @@ SYSFW_PREFIX = "sci" SYSFW_PREFIX:j721e-evm-k3r5 = "fs" SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs" SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs" +SYSFW_PREFIX:beaglebone-ai64-k3r5 = "fs" SYSFW_PREFIX:j7200-evm-k3r5 = "fs" SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs" SYSFW_PREFIX:j721s2-evm-k3r5 = "fs"
@@ -68,6 +70,7 @@ EXTRA_OEMAKE:remove:am65xx-hs-evm-k3r5-sr2 = "SBL="${STAGING_DIR_HOST}/boot/u-bo EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" +EXTRA_OEMAKE:remove:beaglebone-ai64-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" do_compile() { cd ${WORKDIR}/imggen/
meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb new file +14 -0
@@ -0,0 +1,14 @@ +require u-boot-ti.inc + +SUMMARY = "BeagleBoard.org U-Boot" + +COMPATIBLE_MACHINE = "beagle.*" + +LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" + +PV = "2021.01" + +UBOOT_GIT_URI = "git://git.beagleboard.org/beagleboard/u-boot.git" +UBOOT_GIT_PROTOCOL = "https" +BRANCH = "v2021.01-ti-08.05.00.005-SDK-8.5" +SRCREV = "46ff4982b41067e5c93369bddd49b1541856d80b"
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb new file +35 -0
@@ -0,0 +1,35 @@ +SECTION = "kernel" +SUMMARY = "BeagleBoard.org Linux kernel" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +COMPATIBLE_MACHINE = "beagle.*" + +inherit kernel + +require recipes-kernel/linux/ti-kernel.inc + +DEPENDS += "gmp-native libmpc-native" + +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" + +S = "${WORKDIR}/git" + +# 5.10.145 version +SRCREV = "9b11aaf2cdb1861ca74dc69d032a0f94cdd32bd6" +PV = "5.10.145+git${SRCPV}" +BRANCH = "5.10" + +# 5.10.153 version +SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf" +PV:k3 = "5.10.153+git${SRCPV}" +BRANCH:k3 = "5.10-arm64" + +SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}" + +DEFCONFIG_NAME = "bb.org_defconfig" +KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" + +kernel_do_compile:append() { + oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} +}
Signature · 1 line
2.25.1