add support for TI's AM6X boards
v4 cover add support for TI's AM6X boards
The series applied the changes requested by Giulio Benetti to the previous patch for adding support to TI's AM6X boards ([1]). Specifically, it added support for the AM64x_sk board only for now, and fixed the commit log information about the board and related packages.
[1] https://lists.buildroot.org/pipermail/buildroot/2022-August/648321.html
Changes in v4:
- Add board link, description, and maintainer in commit logs.
Changes in v3:
- Fix boot/ti-k3-r5-loader package's build options and dependencies.
- Fix boot/ti-k3-image-gen package's config
- Add more details in board/ti/am64x_sk's readme
- Trim configs/am64x_sk's toolchain options and
fix uboot and genimage dependencies.
- Remove board/ti/am62x_sk and configs/am62x_sk for now due to some firmware dependency problems. Will be added back in the future.
Changes in v2:
- Revert arm-gnu-toolchain back to version 10.x due to a bug. When the pre-packaged GCC was built, it could be targeting a newer x86_64 architecture than the processor being used.
- Add boot/ti-k3-r5-loader package that builds a separate U-Boot for the R5 cores on TI's K3 devices.
- Add boot/ti-k3-image-gen package that builds the full boot binary tiboot3.bin from the spl built from ti-k3-r5-loader.
- Add board/ti directory to include sdcard config and board information for AM64x_sk and AM62x_sk boards.
- Add the Buildroot defconfigs for AM64x_sk and AM62x_sk.
- Add to DEVELOPERS list.
Xuanhao Shi (3):
boot/ti-k3-r5-loader: add new package
boot/ti-k3-image-gen: add new package
board/ti/am64x_sk: add new board
DEVELOPERS | 12 ++++++ board/ti/am64x_sk/genimage.cfg | 27 +++++++++++++ board/ti/am64x_sk/readme.txt | 49 +++++++++++++++++++++++ boot/Config.in | 2 + boot/ti-k3-image-gen/Config.in | 24 +++++++++++ boot/ti-k3-image-gen/ti-k3-image-gen.hash | 2 + boot/ti-k3-image-gen/ti-k3-image-gen.mk | 33 +++++++++++++++ boot/ti-k3-r5-loader/Config.in | 13 ++++++ boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 + boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 45 +++++++++++++++++++++ configs/am64x_sk_defconfig | 48 ++++++++++++++++++++++ 11 files changed, 257 insertions(+) create mode 100644 board/ti/am64x_sk/genimage.cfg create mode 100644 board/ti/am64x_sk/readme.txt create mode 100644 boot/ti-k3-image-gen/Config.in create mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash create mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 boot/ti-k3-r5-loader/Config.in create mode 100644 boot/ti-k3-r5-loader/ti-k3-r5-loader.hash create mode 100644 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk create mode 100644 configs/am64x_sk_defconfig
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v4 1/3 boot/ti-k3-r5-loader: add new package
This is a separate U-Boot package that would build the intermediate spl binary for the R5 core on TI's k3 boards. Usually, the resulting spl will be used for k3-image-gen to build the full R5 boot binary tiboot3.bin.
--- DEVELOPERS | 6 +++ boot/Config.in | 1 + boot/ti-k3-r5-loader/Config.in | 13 +++++++ boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 + boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 45 +++++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 boot/ti-k3-r5-loader/Config.in create mode 100644 boot/ti-k3-r5-loader/ti-k3-r5-loader.hash create mode 100644 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
DEVELOPERS +6 -0
@@ -127,6 +127,9 @@ F: package/dcron/ F: package/libxmlrpc/ F: package/python-docopt/ +N: Anand Gadiyar <[email protected]> +F: boot/ti-k3-r5-loader/ + N: André Zwing <[email protected]> F: package/libkrb5/ F: package/openal/
@@ -3021,6 +3024,9 @@ F: package/python-pyusb/ N: Wojciech Niziński <[email protected]> F: package/fwup/ +N: Xuanhao Shi <[email protected]> +F: boot/ti-k3-r5-loader/ + N: Yair Ben Avraham <[email protected]> F: package/casync/ F: package/gloox/
boot/Config.in +1 -0
@@ -22,6 +22,7 @@ source "boot/s500-bootloader/Config.in" source "boot/shim/Config.in" source "boot/sun20i-d1-spl/Config.in" source "boot/syslinux/Config.in" +source "boot/ti-k3-r5-loader/Config.in" source "boot/uboot/Config.in" source "boot/vexpress-firmware/Config.in"
boot/ti-k3-r5-loader/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +config BR2_TARGET_TI_K3_R5_LOADER + bool "ti-k3-r5-loader" + help + Separate U-Boot build for R5 cores on TI's k3 boards. + Usually used to build tiboot3.bin with k3-image-gen. + +config BR2_TARGET_TI_K3_R5_LOADER_BOARD + string "Board to configure for" + depends on BR2_TARGET_TI_K3_R5_LOADER + help + Specify the board to configure the bootloader for. + This should be the name of a board under board/ti + For example, "am64x_evm".
boot/ti-k3-r5-loader/ti-k3-r5-loader.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 6d69d5e4635cb3fa7852bf15f88ca342ef7740196e71961d3572deb58ba44bea u-boot-2022.10-rc1.tar.bz2
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk new file +45 -0
45 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v4 2/3 boot/ti-k3-image-gen: add new package
In reply to Xuanhao Shi via buildrootThis is the image generator that builds the full boot binary, tiboot3.bin, for the R5 core on TI's k3 devices.
This requires the R5 spl output from the ti-k3-r5-loader package.
https://git.ti.com/cgit/k3-image-gen/k3-image-gen
--- DEVELOPERS | 2 ++ boot/Config.in | 1 + boot/ti-k3-image-gen/Config.in | 24 +++++++++++++++++ boot/ti-k3-image-gen/ti-k3-image-gen.hash | 2 ++ boot/ti-k3-image-gen/ti-k3-image-gen.mk | 33 +++++++++++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 boot/ti-k3-image-gen/Config.in create mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash create mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk
DEVELOPERS +2 -0
@@ -128,6 +128,7 @@ F: package/libxmlrpc/ F: package/python-docopt/ N: Anand Gadiyar <[email protected]> +F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ N: André Zwing <[email protected]>
@@ -3025,6 +3026,7 @@ N: Wojciech Niziński <[email protected]> F: package/fwup/ N: Xuanhao Shi <[email protected]> +F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ N: Yair Ben Avraham <[email protected]>
boot/Config.in +1 -0
@@ -22,6 +22,7 @@ source "boot/s500-bootloader/Config.in" source "boot/shim/Config.in" source "boot/sun20i-d1-spl/Config.in" source "boot/syslinux/Config.in" +source "boot/ti-k3-image-gen/Config.in" source "boot/ti-k3-r5-loader/Config.in" source "boot/uboot/Config.in" source "boot/vexpress-firmware/Config.in"
boot/ti-k3-image-gen/Config.in new file +24 -0
@@ -0,0 +1,24 @@ +config BR2_TARGET_TI_K3_IMAGE_GEN + bool "ti-k3-image-gen" + select BR2_TARGET_TI_K3_R5_LOADER + help + Use TI's k3-image-gen to build a separate bare metal + boot binary from a separate spl. Currently supports + version 08.04.00.005 as default. + + https://git.ti.com/cgit/k3-image-gen/k3-image-gen/ + +config BR2_TARGET_TI_K3_IMAGE_GEN_SOC + string "SOC type for image gen" + depends on BR2_TARGET_TI_K3_IMAGE_GEN + help + The target SoC option for image gen. + For example, "am64x" for AM64X boards. + +config BR2_TARGET_TI_K3_IMAGE_GEN_CONFIG + string "CONFIG type for image gen" + depends on BR2_TARGET_TI_K3_IMAGE_GEN + help + The board config option for image gen. + Usually "sk" or "evm". +
boot/ti-k3-image-gen/ti-k3-image-gen.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 e585dc868ada21ef3389159541d669b88bc406b453470e92da85d9222d271c96 k3-image-gen-08.04.00.005.tar.gz
boot/ti-k3-image-gen/ti-k3-image-gen.mk new file +33 -0
@@ -0,0 +1,33 @@ +################################################################################ +# +# ti-k3-image-gen +# +################################################################################ + +TI_K3_IMAGE_GEN_VERSION = 08.04.00.005 +TI_K3_IMAGE_GEN_SITE = https://git.ti.com/cgit/k3-image-gen/k3-image-gen/snapshot +TI_K3_IMAGE_GEN_SOURCE = k3-image-gen-$(TI_K3_IMAGE_GEN_VERSION).tar.gz +TI_K3_IMAGE_GEN_LICENSE = BSD-3-Clause +TI_K3_IMAGE_GEN_LICENSE_FILES = system-firmware-image-gen-1.0-manifest.html +TI_K3_IMAGE_GEN_INSTALL_IMAGES = YES +TI_K3_IMAGE_GEN_DEPENDENCIES = host-arm-gnu-toolchain ti-k3-r5-loader +TI_K3_IMAGE_GEN_MAKE = $(BR2_MAKE) +TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC)) +TI_K3_IMAGE_GEN_CONFIG = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_CONFIG)) +TI_K3_IMAGE_GEN_MAKE_OPTS = \ + SOC=$(TI_K3_IMAGE_GEN_SOC) \ + CONFIG=$(TI_K3_IMAGE_GEN_CONFIG) \ + CROSS_COMPILE=$(HOST_ARM_GNU_TOOLCHAIN_INSTALL_DIR)/bin/arm-none-eabi- \ + SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \ + O=$(BINARIES_DIR) \ + BIN_DIR=$(BINARIES_DIR) + +define TI_K3_IMAGE_GEN_BUILD_CMDS + $(TI_K3_IMAGE_GEN_MAKE) -C $(@D) $(TI_K3_IMAGE_GEN_MAKE_OPTS) +endef + +define TI_K3_IMAGE_GEN_INSTALL_IMAGES_CMDS + cp $(@D)/tiboot3.bin $(BINARIES_DIR) +endef + +$(eval $(generic-package))
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v4 3/3 board/ti/am64x_sk: add new board
In reply to Xuanhao Shi via buildrootAdds support for ti's am64x_sk board.
Adds the configs for generating output sdcard image. Adds the defconfigs for am64x_sk.
The AM64x_sk board is designed for the AM642 SoC with two ARM Cortex-A53 and four ARM Cortex-R5. It also supports RJ 45 Ethernet, Wi-Fi, and Bluetooth.
More information about the board can be found at:
https://www.ti.com/tool/SK-AM64
--- DEVELOPERS | 4 +++ board/ti/am64x_sk/genimage.cfg | 27 +++++++++++++++++++ board/ti/am64x_sk/readme.txt | 49 ++++++++++++++++++++++++++++++++++ configs/am64x_sk_defconfig | 48 +++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 board/ti/am64x_sk/genimage.cfg create mode 100644 board/ti/am64x_sk/readme.txt create mode 100644 configs/am64x_sk_defconfig
DEVELOPERS +4 -0
@@ -128,8 +128,10 @@ F: package/libxmlrpc/ F: package/python-docopt/ N: Anand Gadiyar <[email protected]> +F: board/ti/am64x_sk/ F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ +F: configs/am64x_sk_defconfig N: André Zwing <[email protected]> F: package/libkrb5/
@@ -3026,8 +3028,10 @@ N: Wojciech Niziński <[email protected]> F: package/fwup/ N: Xuanhao Shi <[email protected]> +F: board/ti/am64x_sk/ F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ +F: configs/am64x_sk_defconfig N: Yair Ben Avraham <[email protected]> F: package/casync/
board/ti/am64x_sk/genimage.cfg new file +27 -0
@@ -0,0 +1,27 @@ +image boot.vfat { + vfat { + files = { + "tiboot3.bin", + "tispl.bin", + "u-boot.img", + } + } + + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/ti/am64x_sk/readme.txt new file +49 -0
49 lines not on this page · raw message
configs/am64x_sk_defconfig new file +48 -0
48 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot