summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2023-01-26 01:43:11 +0000
committerRyan Eatmon <reatmon@ti.com>2023-01-31 14:44:38 -0600
commitf843fa1914896358911b52eba7052ba1996a6919 (patch)
tree39069444281a91514eb60bb284fa8f0532396bba
parent0b3fa09a5f0bddcedeadc90e694aa098b7fd1733 (diff)
downloadmeta-ti-f843fa1914896358911b52eba7052ba1996a6919.tar.gz
meta-ti-bsp: add BeagleBone AI-64 support
BeagleBone AI-64 (https://beagleboard.org/ai-64) uses Texas Instruments Jacinto TDA4VM/J721e SoC. Officially BeagleBone AI-64 supports Debian Linux and builds its BSP on top of meta-ti and TI SDK, but adds custom DTBs and DTBO overlays, plus integrates other drivers and features. Let's add corresponding recipes for beagleboard.org kernel and u-boot along with the BeagleBone AI-64 machine config. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf22
-rw-r--r--meta-ti-bsp/conf/machine/beaglebone-ai64.conf79
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb3
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb14
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb35
5 files changed, 153 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
new file mode 100644
index 00000000..21b8702b
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
@@ -0,0 +1,22 @@
1#@TYPE: Machine
2#@NAME: BeagleBone AI-64 (R5F)
3#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
8PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
9
10SYSFW_SOC = "j721e"
11SYSFW_CONFIG = "evm"
12SYSFW_SUFFIX = "gp"
13
14SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
15SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
16UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
17UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
18UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
19
20UBOOT_MACHINE = "j721e_evm_r5_defconfig"
21
22TI_SECURE_DEV_PKG_K3 = "none"
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
new file mode 100644
index 00000000..6e8c863c
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
@@ -0,0 +1,79 @@
1#@TYPE: Machine
2#@NAME: BeagleBone AI-64 (A72)
3#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 board (A72 core)
4
5require conf/machine/include/j721e.inc
6
7SERIAL_CONSOLES = "115200;ttyS2"
8SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
9
10UBOOT_MACHINE = "j721e_evm_a72_config"
11
12PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
13PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
14PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
15
16KERNEL_DEVICETREE = " \
17ti/k3-j721e-beagleboneai64.dtb \
18ti/k3-j721e-beagleboneai64-no-shared-mem.dtb \
19ti/k3-j721e-common-proc-board.dtb \
20ti/k3-j721e-common-proc-board-infotainment.dtbo \
21ti/k3-j721e-cpb-csi2-ov5640.dtbo \
22ti/k3-j721e-fpdlink-cpb-fusion.dtbo \
23ti/k3-j721e-fpdlink-imx390-cm-0-0.dtbo \
24ti/k3-j721e-fpdlink-imx390-cm-0-1.dtbo \
25ti/k3-j721e-fpdlink-imx390-cm-0-2.dtbo \
26ti/k3-j721e-fpdlink-imx390-cm-0-3.dtbo \
27ti/k3-j721e-fpdlink-imx390-cm-1-0.dtbo \
28ti/k3-j721e-fpdlink-imx390-cm-1-1.dtbo \
29ti/k3-j721e-fpdlink-imx390-cm-1-2.dtbo \
30ti/k3-j721e-fpdlink-imx390-cm-1-3.dtbo \
31ti/k3-j721e-fpdlink-imx390-rcm-0-0.dtbo \
32ti/k3-j721e-fpdlink-imx390-rcm-0-1.dtbo \
33ti/k3-j721e-fpdlink-imx390-rcm-0-2.dtbo \
34ti/k3-j721e-fpdlink-imx390-rcm-0-3.dtbo \
35ti/k3-j721e-fpdlink-imx390-rcm-1-0.dtbo \
36ti/k3-j721e-fpdlink-imx390-rcm-1-1.dtbo \
37ti/k3-j721e-fpdlink-imx390-rcm-1-2.dtbo \
38ti/k3-j721e-fpdlink-imx390-rcm-1-3.dtbo \
39ti/k3-j721e-fpdlink-sk-fusion.dtbo \
40ti/k3-j721e-gesi-exp-board.dtbo \
41ti/k3-j721e-proc-board-tps65917.dtb \
42ti/k3-j721e-quad-port-eth-exp.dtbo \
43ti/k3-j721e-sk-csi2-ov5640.dtbo \
44ti/k3-j721e-sk.dtb \
45ti/k3-j721e-sk-rpi-cam-imx219.dtbo \
46ti/k3-j721e-sk-rpi-hdr-ehrpwm.dtbo \
47ti/overlays/BBAI64-CSI0-imx219.dtbo \
48ti/overlays/BBAI64-CSI1-imx219.dtbo \
49ti/overlays/BBAI64-DSI-RPi-7inch-panel.dtbo \
50ti/overlays/BBAI64-P8_37-ehrpwm5_a.dtbo \
51ti/overlays/BBAI64-P9_25-ehrpwm4_b.dtbo \
52ti/overlays/BB-I2C2-MPU6050.dtbo \
53ti/overlays/BBORG_LOAD-00A2.dtbo \
54ti/overlays/BBORG_RELAY-00A2.dtbo \
55ti/overlays/BBORG_SERVO-00A2.dtbo \
56ti/overlays/BONE-FAN.dtbo \
57ti/overlays/BONE-I2C1.dtbo \
58ti/overlays/BONE-I2C2.dtbo \
59ti/overlays/BONE-I2C3.dtbo \
60ti/overlays/BONE-LED_P8_03.dtbo \
61ti/overlays/BONE-LED_P9_11.dtbo \
62ti/overlays/BONE-PWM0.dtbo \
63ti/overlays/BONE-PWM1.dtbo \
64ti/overlays/BONE-PWM2.dtbo \
65ti/overlays/BONE-SPI0_0.dtbo \
66ti/overlays/BONE-SPI0_1.dtbo \
67ti/overlays/BONE-UART1.dtbo \
68ti/overlays/BONE-USB0-host.dtbo \
69ti/overlays/J721E-PRU-UIO-00A0.dtbo \
70ti/overlays/k3-j721e-beagleboneai64-RPi-7inch-panel.dtbo \
71ti/overlays/robotics-cape.dtbo \
72"
73
74IMAGE_BOOT_FILES += "sysfw.itb"
75
76MACHINE_GUI_CLASS = "bigscreen"
77MACHINE_FEATURES += "screen"
78
79MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree kernel-image-image"
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 8e88b58b..578f56b8 100644
--- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -11,6 +11,7 @@ DEPENDS:remove:am65xx-hs-evm-k3r5-sr2 = "virtual/bootloader"
11DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader" 11DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader"
12DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader" 12DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader"
13DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader" 13DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader"
14DEPENDS:remove:beaglebone-ai64-k3r5 = "virtual/bootloader"
14DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" 15DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
15 16
16CLEANBROKEN = "1" 17CLEANBROKEN = "1"
@@ -33,6 +34,7 @@ SYSFW_PREFIX = "sci"
33SYSFW_PREFIX:j721e-evm-k3r5 = "fs" 34SYSFW_PREFIX:j721e-evm-k3r5 = "fs"
34SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs" 35SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs"
35SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs" 36SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs"
37SYSFW_PREFIX:beaglebone-ai64-k3r5 = "fs"
36SYSFW_PREFIX:j7200-evm-k3r5 = "fs" 38SYSFW_PREFIX:j7200-evm-k3r5 = "fs"
37SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs" 39SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs"
38SYSFW_PREFIX:j721s2-evm-k3r5 = "fs" 40SYSFW_PREFIX:j721s2-evm-k3r5 = "fs"
@@ -70,6 +72,7 @@ EXTRA_OEMAKE:remove:am65xx-hs-evm-k3r5-sr2 = "SBL="${STAGING_DIR_HOST}/boot/u-bo
70EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" 72EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
71EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" 73EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
72EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" 74EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
75EXTRA_OEMAKE:remove:beaglebone-ai64-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
73 76
74do_compile() { 77do_compile() {
75 cd ${WORKDIR}/imggen/ 78 cd ${WORKDIR}/imggen/
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
new file mode 100644
index 00000000..28a347be
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
@@ -0,0 +1,14 @@
1require u-boot-ti.inc
2
3SUMMARY = "BeagleBoard.org U-Boot"
4
5COMPATIBLE_MACHINE = "beagle.*"
6
7LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
8
9PV = "2021.01"
10
11UBOOT_GIT_URI = "git://git.beagleboard.org/beagleboard/u-boot.git"
12UBOOT_GIT_PROTOCOL = "https"
13BRANCH = "v2021.01-ti-08.05.00.005-SDK-8.5"
14SRCREV = "46ff4982b41067e5c93369bddd49b1541856d80b"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
new file mode 100644
index 00000000..2e0f2448
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
@@ -0,0 +1,35 @@
1SECTION = "kernel"
2SUMMARY = "BeagleBoard.org Linux kernel"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
5
6COMPATIBLE_MACHINE = "beagle.*"
7
8inherit kernel
9
10require recipes-kernel/linux/ti-kernel.inc
11
12DEPENDS += "gmp-native libmpc-native"
13
14KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
15
16S = "${WORKDIR}/git"
17
18# 5.10.145 version
19SRCREV = "9b11aaf2cdb1861ca74dc69d032a0f94cdd32bd6"
20PV = "5.10.145+git${SRCPV}"
21BRANCH = "5.10"
22
23# 5.10.153 version
24SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf"
25PV:k3 = "5.10.153+git${SRCPV}"
26BRANCH:k3 = "5.10-arm64"
27
28SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}"
29
30DEFCONFIG_NAME = "bb.org_defconfig"
31KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
32
33kernel_do_compile:append() {
34 oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
35}