From patchwork Thu Jun 22 16:02:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Dannenberg X-Patchwork-Id: 1798484 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qn4sk3gWnz20Xt for ; Fri, 23 Jun 2023 02:03:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 8C479402BA; Thu, 22 Jun 2023 16:03:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8C479402BA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92ZA-bkDz0ve; Thu, 22 Jun 2023 16:03:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 06A1B42112; Thu, 22 Jun 2023 16:03:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 06A1B42112 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 598181BF3D1 for ; Thu, 22 Jun 2023 16:02:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2A48183D21 for ; Thu, 22 Jun 2023 16:02:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2A48183D21 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZA8LcCDa3sfZ for ; Thu, 22 Jun 2023 16:02:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D2E8583CB7 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by smtp1.osuosl.org (Postfix) with ESMTPS id D2E8583CB7 for ; Thu, 22 Jun 2023 16:02:18 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35MG2H1V057212 for ; Thu, 22 Jun 2023 11:02:17 -0500 Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35MG2HHw024660 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 22 Jun 2023 11:02:17 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 22 Jun 2023 11:02:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 22 Jun 2023 11:02:17 -0500 Received: from dasso.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35MG2Gj0107613; Thu, 22 Jun 2023 11:02:17 -0500 To: Date: Thu, 22 Jun 2023 11:02:06 -0500 Message-ID: <20230622160212.2063472-6-dannenberg@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230622160212.2063472-1-dannenberg@ti.com> References: <20230622160212.2063472-1-dannenberg@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1687449737; bh=1dLr6IRqZHWn7POXPAQhwQyARx2eSvu29pTGks2E12k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=clXdp3EkNc3qn1gEfUqsDTqJeJL6XE+U0TtbD1hHMz6IgBcrulCLiFnMyrZbfJaXO zrDxmQOJJBCLv0o67Oopm1xCwXElsO/UXqoUdBCmW70xyX43nCNsjUJQjIe/ded0Oz DOYtoHuz779uHL9G6eupENvtdPq2hfUFFZ/Ditj8= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=clXdp3Ek Subject: [Buildroot] [PATCH v9 05/11] board/ti/am62x_sk: add new board X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andreas Dannenberg via buildroot From: Andreas Dannenberg Reply-To: Andreas Dannenberg Cc: Xuanhao Shi , Andreas Dannenberg Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Xuanhao Shi Adds support for TI's SK-AM62 board by introducing the am62x_sk_defconfig file and related support files. More information about the board can be found at: https://www.ti.com/tool/SK-AM62 Signed-off-by: Xuanhao Shi Signed-off-by: Andreas Dannenberg --- DEVELOPERS | 4 +++ board/ti/am62x_sk/genimage.cfg | 27 ++++++++++++++++++++ board/ti/am62x_sk/readme.txt | 26 ++++++++++++++++++++ configs/am62x_sk_defconfig | 45 ++++++++++++++++++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 board/ti/am62x_sk/genimage.cfg create mode 100644 board/ti/am62x_sk/readme.txt create mode 100644 configs/am62x_sk_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index a4d729983b..8ce903b294 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -129,9 +129,11 @@ F: package/libxmlrpc/ F: package/python-docopt/ N: Anand Gadiyar +F: board/ti/am62x_sk/ F: board/ti/am64x_sk/ F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ +F: configs/am62x_sk_defconfig F: configs/am64x_sk_defconfig N: André Zwing @@ -3023,9 +3025,11 @@ N: Wojciech Niziński F: package/fwup/ N: Xuanhao Shi +F: board/ti/am62x_sk/ F: board/ti/am64x_sk/ F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ +F: configs/am62x_sk_defconfig F: configs/am64x_sk_defconfig N: Yair Ben Avraham diff --git a/board/ti/am62x_sk/genimage.cfg b/board/ti/am62x_sk/genimage.cfg new file mode 100644 index 0000000000..26304fe98f --- /dev/null +++ b/board/ti/am62x_sk/genimage.cfg @@ -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" + } +} diff --git a/board/ti/am62x_sk/readme.txt b/board/ti/am62x_sk/readme.txt new file mode 100644 index 0000000000..ccbb24896b --- /dev/null +++ b/board/ti/am62x_sk/readme.txt @@ -0,0 +1,26 @@ +Texas Instuments SK-AM62 Test and Development Board + +Description +=========== +This configuration will build a complete image for the TI SK-AM62 board. + +How to Build +============ +Select the default configuration for the target: +$ make am62x_sk_defconfig + +Optional: modify the configuration: +$ make menuconfig + +Build: +$ make + +To copy the resultimg output image file to an SD card use dd: +$ dd if=output/images/sdcard.img of=/dev/sdX bs=1M + +How to Run +========== +Insert the SD card into the SK-AM62 board, and power it up through +the USB Type-C connector. The system should come up. You can use +a micro-USB cable to connect to the connector labeled UART to +communicate with the board. diff --git a/configs/am62x_sk_defconfig b/configs/am62x_sk_defconfig new file mode 100644 index 0000000000..083720f512 --- /dev/null +++ b/configs/am62x_sk_defconfig @@ -0,0 +1,45 @@ +BR2_aarch64=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x_sk/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am625-sk" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="256M" +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.7.0" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="k3" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y +BR2_TARGET_OPTEE_OS=y +BR2_TARGET_OPTEE_OS_PLATFORM="k3" +BR2_TARGET_TI_K3_IMAGE_GEN=y +BR2_TARGET_TI_K3_IMAGE_GEN_SOC="am62x" +BR2_TARGET_TI_K3_IMAGE_GEN_SOC_TYPE_GP=y +BR2_TARGET_TI_K3_IMAGE_GEN_CONFIG="evm" +BR2_TARGET_TI_K3_R5_LOADER=y +BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am62x_evm_a53" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_NEEDS_TI_K3_DM=y +BR2_TARGET_UBOOT_TI_K3_DM_SOC="am62xx" +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="tispl.bin" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="TEE=$(BINARIES_DIR)/tee-pager_v2.bin" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y