diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2023-01-26 01:43:11 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-01-31 14:44:38 -0600 |
commit | f843fa1914896358911b52eba7052ba1996a6919 (patch) | |
tree | 39069444281a91514eb60bb284fa8f0532396bba | |
parent | 0b3fa09a5f0bddcedeadc90e694aa098b7fd1733 (diff) | |
download | meta-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.conf | 22 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 79 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 3 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb | 14 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb | 35 |
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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" | ||
8 | PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" | ||
9 | |||
10 | SYSFW_SOC = "j721e" | ||
11 | SYSFW_CONFIG = "evm" | ||
12 | SYSFW_SUFFIX = "gp" | ||
13 | |||
14 | SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}" | ||
15 | SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}" | ||
16 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
17 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
18 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
19 | |||
20 | UBOOT_MACHINE = "j721e_evm_r5_defconfig" | ||
21 | |||
22 | TI_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 | |||
5 | require conf/machine/include/j721e.inc | ||
6 | |||
7 | SERIAL_CONSOLES = "115200;ttyS2" | ||
8 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
9 | |||
10 | UBOOT_MACHINE = "j721e_evm_a72_config" | ||
11 | |||
12 | PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org" | ||
13 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" | ||
14 | PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" | ||
15 | |||
16 | KERNEL_DEVICETREE = " \ | ||
17 | ti/k3-j721e-beagleboneai64.dtb \ | ||
18 | ti/k3-j721e-beagleboneai64-no-shared-mem.dtb \ | ||
19 | ti/k3-j721e-common-proc-board.dtb \ | ||
20 | ti/k3-j721e-common-proc-board-infotainment.dtbo \ | ||
21 | ti/k3-j721e-cpb-csi2-ov5640.dtbo \ | ||
22 | ti/k3-j721e-fpdlink-cpb-fusion.dtbo \ | ||
23 | ti/k3-j721e-fpdlink-imx390-cm-0-0.dtbo \ | ||
24 | ti/k3-j721e-fpdlink-imx390-cm-0-1.dtbo \ | ||
25 | ti/k3-j721e-fpdlink-imx390-cm-0-2.dtbo \ | ||
26 | ti/k3-j721e-fpdlink-imx390-cm-0-3.dtbo \ | ||
27 | ti/k3-j721e-fpdlink-imx390-cm-1-0.dtbo \ | ||
28 | ti/k3-j721e-fpdlink-imx390-cm-1-1.dtbo \ | ||
29 | ti/k3-j721e-fpdlink-imx390-cm-1-2.dtbo \ | ||
30 | ti/k3-j721e-fpdlink-imx390-cm-1-3.dtbo \ | ||
31 | ti/k3-j721e-fpdlink-imx390-rcm-0-0.dtbo \ | ||
32 | ti/k3-j721e-fpdlink-imx390-rcm-0-1.dtbo \ | ||
33 | ti/k3-j721e-fpdlink-imx390-rcm-0-2.dtbo \ | ||
34 | ti/k3-j721e-fpdlink-imx390-rcm-0-3.dtbo \ | ||
35 | ti/k3-j721e-fpdlink-imx390-rcm-1-0.dtbo \ | ||
36 | ti/k3-j721e-fpdlink-imx390-rcm-1-1.dtbo \ | ||
37 | ti/k3-j721e-fpdlink-imx390-rcm-1-2.dtbo \ | ||
38 | ti/k3-j721e-fpdlink-imx390-rcm-1-3.dtbo \ | ||
39 | ti/k3-j721e-fpdlink-sk-fusion.dtbo \ | ||
40 | ti/k3-j721e-gesi-exp-board.dtbo \ | ||
41 | ti/k3-j721e-proc-board-tps65917.dtb \ | ||
42 | ti/k3-j721e-quad-port-eth-exp.dtbo \ | ||
43 | ti/k3-j721e-sk-csi2-ov5640.dtbo \ | ||
44 | ti/k3-j721e-sk.dtb \ | ||
45 | ti/k3-j721e-sk-rpi-cam-imx219.dtbo \ | ||
46 | ti/k3-j721e-sk-rpi-hdr-ehrpwm.dtbo \ | ||
47 | ti/overlays/BBAI64-CSI0-imx219.dtbo \ | ||
48 | ti/overlays/BBAI64-CSI1-imx219.dtbo \ | ||
49 | ti/overlays/BBAI64-DSI-RPi-7inch-panel.dtbo \ | ||
50 | ti/overlays/BBAI64-P8_37-ehrpwm5_a.dtbo \ | ||
51 | ti/overlays/BBAI64-P9_25-ehrpwm4_b.dtbo \ | ||
52 | ti/overlays/BB-I2C2-MPU6050.dtbo \ | ||
53 | ti/overlays/BBORG_LOAD-00A2.dtbo \ | ||
54 | ti/overlays/BBORG_RELAY-00A2.dtbo \ | ||
55 | ti/overlays/BBORG_SERVO-00A2.dtbo \ | ||
56 | ti/overlays/BONE-FAN.dtbo \ | ||
57 | ti/overlays/BONE-I2C1.dtbo \ | ||
58 | ti/overlays/BONE-I2C2.dtbo \ | ||
59 | ti/overlays/BONE-I2C3.dtbo \ | ||
60 | ti/overlays/BONE-LED_P8_03.dtbo \ | ||
61 | ti/overlays/BONE-LED_P9_11.dtbo \ | ||
62 | ti/overlays/BONE-PWM0.dtbo \ | ||
63 | ti/overlays/BONE-PWM1.dtbo \ | ||
64 | ti/overlays/BONE-PWM2.dtbo \ | ||
65 | ti/overlays/BONE-SPI0_0.dtbo \ | ||
66 | ti/overlays/BONE-SPI0_1.dtbo \ | ||
67 | ti/overlays/BONE-UART1.dtbo \ | ||
68 | ti/overlays/BONE-USB0-host.dtbo \ | ||
69 | ti/overlays/J721E-PRU-UIO-00A0.dtbo \ | ||
70 | ti/overlays/k3-j721e-beagleboneai64-RPi-7inch-panel.dtbo \ | ||
71 | ti/overlays/robotics-cape.dtbo \ | ||
72 | " | ||
73 | |||
74 | IMAGE_BOOT_FILES += "sysfw.itb" | ||
75 | |||
76 | MACHINE_GUI_CLASS = "bigscreen" | ||
77 | MACHINE_FEATURES += "screen" | ||
78 | |||
79 | MACHINE_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" | |||
11 | DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader" | 11 | DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader" |
12 | DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader" | 12 | DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader" |
13 | DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader" | 13 | DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader" |
14 | DEPENDS:remove:beaglebone-ai64-k3r5 = "virtual/bootloader" | ||
14 | DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" | 15 | DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" |
15 | 16 | ||
16 | CLEANBROKEN = "1" | 17 | CLEANBROKEN = "1" |
@@ -33,6 +34,7 @@ SYSFW_PREFIX = "sci" | |||
33 | SYSFW_PREFIX:j721e-evm-k3r5 = "fs" | 34 | SYSFW_PREFIX:j721e-evm-k3r5 = "fs" |
34 | SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs" | 35 | SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs" |
35 | SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs" | 36 | SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs" |
37 | SYSFW_PREFIX:beaglebone-ai64-k3r5 = "fs" | ||
36 | SYSFW_PREFIX:j7200-evm-k3r5 = "fs" | 38 | SYSFW_PREFIX:j7200-evm-k3r5 = "fs" |
37 | SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs" | 39 | SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs" |
38 | SYSFW_PREFIX:j721s2-evm-k3r5 = "fs" | 40 | SYSFW_PREFIX:j721s2-evm-k3r5 = "fs" |
@@ -70,6 +72,7 @@ EXTRA_OEMAKE:remove:am65xx-hs-evm-k3r5-sr2 = "SBL="${STAGING_DIR_HOST}/boot/u-bo | |||
70 | EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 72 | EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
71 | EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 73 | EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
72 | EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 74 | EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
75 | EXTRA_OEMAKE:remove:beaglebone-ai64-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
73 | 76 | ||
74 | do_compile() { | 77 | do_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 @@ | |||
1 | require u-boot-ti.inc | ||
2 | |||
3 | SUMMARY = "BeagleBoard.org U-Boot" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "beagle.*" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" | ||
8 | |||
9 | PV = "2021.01" | ||
10 | |||
11 | UBOOT_GIT_URI = "git://git.beagleboard.org/beagleboard/u-boot.git" | ||
12 | UBOOT_GIT_PROTOCOL = "https" | ||
13 | BRANCH = "v2021.01-ti-08.05.00.005-SDK-8.5" | ||
14 | SRCREV = "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 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "BeagleBoard.org Linux kernel" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "beagle.*" | ||
7 | |||
8 | inherit kernel | ||
9 | |||
10 | require recipes-kernel/linux/ti-kernel.inc | ||
11 | |||
12 | DEPENDS += "gmp-native libmpc-native" | ||
13 | |||
14 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | # 5.10.145 version | ||
19 | SRCREV = "9b11aaf2cdb1861ca74dc69d032a0f94cdd32bd6" | ||
20 | PV = "5.10.145+git${SRCPV}" | ||
21 | BRANCH = "5.10" | ||
22 | |||
23 | # 5.10.153 version | ||
24 | SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf" | ||
25 | PV:k3 = "5.10.153+git${SRCPV}" | ||
26 | BRANCH:k3 = "5.10-arm64" | ||
27 | |||
28 | SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}" | ||
29 | |||
30 | DEFCONFIG_NAME = "bb.org_defconfig" | ||
31 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" | ||
32 | |||
33 | kernel_do_compile:append() { | ||
34 | oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} | ||
35 | } | ||