From patchwork Sat May 8 17:12:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 1475898 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=laposte.net header.i=@laposte.net header.a=rsa-sha256 header.s=lpn-wlmd header.b=MjgVercy; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fcv5d5h8pz9vFD for ; Sun, 9 May 2021 03:12:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3844B402C2; Sat, 8 May 2021 17:12:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6VFl7wVHOS_J; Sat, 8 May 2021 17:12:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 83926400D7; Sat, 8 May 2021 17:12:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 2B2191BF2B7 for ; Sat, 8 May 2021 17:12:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1A6DB400D7 for ; Sat, 8 May 2021 17:12:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JEpg6-lqsvGG for ; Sat, 8 May 2021 17:12:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtp-outgoing-1803.laposte.net (smtp-outgoing-1803.laposte.net [160.92.124.104]) by smtp2.osuosl.org (Postfix) with ESMTPS id CE579400D6 for ; Sat, 8 May 2021 17:12:45 +0000 (UTC) X-mail-filterd: {"version":"1.2.2", "queueID":"4Fcv5Q1FHDz10MQQ", "contextId":"62ee90ff-09ff-48b7-b5ad-ffeb766be7b2"} Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0103.laposte.net (SMTP Server) with ESMTP id 4Fcv5Q1FHDz10MQQ; Sat, 8 May 2021 19:12:42 +0200 (CEST) X-mail-filterd: {"version":"1.2.2", "queueID":"4Fcv5Q0MPDz10MQ4", "contextId":"3f943724-2144-449f-8ebb-91ed2ba11996"} X-lpn-mailing: LEGIT X-lpn-spamrating: 40 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgeduledrvdeggedguddufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfntefrqffuvffgpdfqfgfvpdggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtredtjeenucfhrhhomhepgghinhgtvghnthcuufhtvghhlhoruceovhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhnvghtqeenucggtffrrghtthgvrhhnpeejjeejheeiueeifeetueetledvhfekfedvheduvdeiudfgjeegleegvdevieffvdenucffohhmrghinhepshhvthhrohhnihgtshdrtghomhdpthhirdgtohhmnecukfhppeekkedruddvuddrudegledrgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheprhhomhhurghlugdrsggvrhhgvghrihgvpdhinhgvthepkeekrdduvddurddugeelrdegledpmhgrihhlfhhrohhmpehvihhntggvnhhtrdhsthgvhhhlvgeslhgrphhoshhtvgdrnhgvthdprhgtphhtthhopegsuhhilhgurhhoohhtsegsuhhilhgurhhoohhtrdhorhhgpdhrtghpthhtohepvhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhnvght Received: from romuald.bergerie (unknown [88.121.149.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mlpnf0103.laposte.net (SMTP Server) with ESMTPSA id 4Fcv5Q0MPDz10MQ4; Sat, 8 May 2021 19:12:42 +0200 (CEST) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with ESMTP id 9E620410F498; Sat, 8 May 2021 19:12:41 +0200 (CEST) Received: from vincent by radicelle.bergerie with local (Exim 4.94) (envelope-from ) id 1lfQVN-0006wb-4p; Sat, 08 May 2021 19:12:41 +0200 To: buildroot@buildroot.org Date: Sat, 8 May 2021 19:12:32 +0200 Message-Id: <20210508171232.26650-1-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1620493962; bh=A1wPs6206yvRuVMhYRTOEp7RjMOwGleS/rsG5jKGPTc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MjgVercy1YEmeoFIsjzwt34Pat5B3kN3I1L+LjSjfM5LkBbpwOsxRS41sMUPyLFWE6pplit5Ml3sbe2Zji/PN6pvB9pQCmGfNhVug1CeABtKF0ET4vZ3idbwhD04rK2fSasBxjf90w7fJYGTGUVzaE0F08oT76b47z2fcDDiIsalsEJLfTUlEX0FwLyle5uaaXHJIk3U+RFWDMRAe5/MH+10C5e2+Q01BJhuqwK5RbKOJJ1ZzD0LWJE1jUSq9tTpb6DP1mPHgoF5vYCcXVKPY3tL+VVMGvJl2cV1HP1oXvlpUG2x1a5AiCVtXLd7E5b5z3u2rzl6ORRDEpjBe4xAXw==; Subject: [Buildroot] [PATCH] configs/uevm5432: new defconfig X-BeenThere: buildroot@busybox.net 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: , From: =?utf-8?q?Vincent_Stehl=C3=A9_via_buildroot?= Reply-To: =?utf-8?q?Vincent_Stehl=C3=A9?= Cc: =?utf-8?q?Vincent_Stehl=C3=A9?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The OMAP5432 uEVM[1] is a development board from Texas Instruments. It is similar to the OMAP4 Panda boards, from which this configuration is inspired. [1]: https://svtronics.com/5432 Signed-off-by: Vincent Stehlé --- DEVELOPERS | 1 + board/uevm5432/genimage.cfg | 26 +++++++++++++++++++++ board/uevm5432/readme.txt | 40 ++++++++++++++++++++++++++++++++ configs/uevm5432_defconfig | 46 +++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 board/uevm5432/genimage.cfg create mode 100644 board/uevm5432/readme.txt create mode 100644 configs/uevm5432_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index bbbb0ecfa8..fb345e0254 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2709,6 +2709,7 @@ F: package/utp_com/ N: Vincent Stehlé F: board/bananapi/bananapi-m2-zero/ F: configs/bananapi_m2_zero_defconfig +F: configs/uevm5432_defconfig F: package/i7z/ F: package/msr-tools/ F: package/pixz/ diff --git a/board/uevm5432/genimage.cfg b/board/uevm5432/genimage.cfg new file mode 100644 index 0000000000..f30033f023 --- /dev/null +++ b/board/uevm5432/genimage.cfg @@ -0,0 +1,26 @@ +image boot.vfat { + vfat { + files = { + "MLO", + "u-boot.img" + } + } + size = 8M +} + +image sdcard.img { + hdimage { + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/uevm5432/readme.txt b/board/uevm5432/readme.txt new file mode 100644 index 0000000000..4569fbd84e --- /dev/null +++ b/board/uevm5432/readme.txt @@ -0,0 +1,40 @@ +OMAP5432 uEVM +============= + +This file documents the Buildroot support for the OMAP5432 uEVM[1], a +single-board computer development platform based on the Texas Instruments +OMAP5432 system on a chip (SoC). + +How to build +============ + + $ make uevm5432_defconfig + $ make + +How to write the SD card +======================== + +Once the build process is finished you will have an image called "sdcard.img" +in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an SD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX + $ sync + +Where /dev/sdX is the device node of your SD card (may be /dev/mmcblkX instead +depending on setup). + +To boot from SD card, set the SYSBOOT switches S1 of your OMAP5432 uEVM to the +following position: + + ON x x + x x + 1 2 3 4 + +Insert the micro SDcard in your OMAP5432 uEVM, and power it up with the POWER +ON push button switch S3. The console is on the micro USB Debug UART, with +serial settings 115200 8N1. Refer also to the quick start guide[2]. + +[1]: https://svtronics.com/5432 +[2]: https://www.ti.com/lit/ug/swcu131/swcu131.pdf diff --git a/configs/uevm5432_defconfig b/configs/uevm5432_defconfig new file mode 100644 index 0000000000..7b9a4309c6 --- /dev/null +++ b/configs/uevm5432_defconfig @@ -0,0 +1,46 @@ +# Architecture +BR2_arm=y +BR2_cortex_a15=y +BR2_ARM_FPU_NEON_VFPV4=y + +# Linux headers same as kernel, a 5.12 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS2" +BR2_SYSTEM_DHCP="eth0" + +# Image +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/uevm5432/genimage.cfg" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.12.2" +BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="omap5-uevm" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.04" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="omap5_uevm" +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="MLO" + +# Required tools to create the SD card image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y