From patchwork Thu Aug 10 20:48:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Gero_Schw=C3=A4ricke?= X-Patchwork-Id: 1820043 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=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RMJvC5hLRz1yYC for ; Fri, 11 Aug 2023 06:49:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id F3569409E6; Thu, 10 Aug 2023 20:49:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org F3569409E6 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 y2-PQyAmOB3e; Thu, 10 Aug 2023 20:49:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 2F1EC4052B; Thu, 10 Aug 2023 20:49:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2F1EC4052B X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id AECE01BF97F for ; Thu, 10 Aug 2023 20:49:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 885AF60AD5 for ; Thu, 10 Aug 2023 20:49:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 885AF60AD5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WffLjFaxtRkd for ; Thu, 10 Aug 2023 20:49:19 +0000 (UTC) Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by smtp3.osuosl.org (Postfix) with ESMTPS id B60CF60AB0 for ; Thu, 10 Aug 2023 20:49:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B60CF60AB0 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0FBEA240103 for ; Thu, 10 Aug 2023 22:49:16 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RMJtz4tTQz9rxD; Thu, 10 Aug 2023 22:49:15 +0200 (CEST) From: =?utf-8?q?Gero_Schw=C3=A4ricke?= To: buildroot@buildroot.org Date: Thu, 10 Aug 2023 20:48:44 +0000 Message-Id: <20230810204844.803954-1-gero@schwaericke.email> In-Reply-To: <20221105194712.541286-1-gero@schwaericke.email> References: <20221105194712.541286-1-gero@schwaericke.email> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] configs/cubieboard1: new defconfig 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: , Cc: =?utf-8?q?Gero_Schw=C3=A4ricke?= Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Support for Cubieboard 1 from Cubietech. Signed-off-by: Gero Schwäricke Reviewed-by: Giulio Benetti --- Changes v1 -> v2: - fix commit subject format - add myself to DEVELOPERS - add board/cubieboard1/readme.txt - use extlinux.conf instead of boot.cmd DEVELOPERS | 4 +++ board/cubietech/cubieboard1/genimage.cfg | 16 +++++++++ board/cubietech/cubieboard1/readme.txt | 29 ++++++++++++++++ .../boot/extlinux/extlinux.conf | 5 +++ configs/cubieboard1_defconfig | 34 +++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 board/cubietech/cubieboard1/genimage.cfg create mode 100644 board/cubietech/cubieboard1/readme.txt create mode 100644 board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf create mode 100644 configs/cubieboard1_defconfig -- 2.25.1 diff --git a/DEVELOPERS b/DEVELOPERS index 6ffa3ee693..82f2f8c8cd 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1137,6 +1137,10 @@ F: package/flannel/ N: Geoffrey Ragot F: package/python-pyyaml/ +N: Gero Schwaericke +F: board/cubietech/cubieboard1/ +F: configs/cubieboard1_defconfig + N: Gilles Talis F: board/freescale/imx8mmevk/ F: board/friendlyarm/nanopi-r2s/ diff --git a/board/cubietech/cubieboard1/genimage.cfg b/board/cubietech/cubieboard1/genimage.cfg new file mode 100644 index 0000000000..92c8677545 --- /dev/null +++ b/board/cubietech/cubieboard1/genimage.cfg @@ -0,0 +1,16 @@ +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1016K # 1MB - 8KB + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/board/cubietech/cubieboard1/readme.txt b/board/cubietech/cubieboard1/readme.txt new file mode 100644 index 0000000000..294b4e5eec --- /dev/null +++ b/board/cubietech/cubieboard1/readme.txt @@ -0,0 +1,29 @@ +Cubietech Cubieboard1 +===================== + +Minimal configuration for the Cubietech Cubieboard1. It includes just what is +needed to boot a bare Linux and login via serial console. + + +Building +======== + +Configure and build with + + make cubieboard1_defconfig + make + + +Flashing +======== + +Flash the sdcard image onto a micro sdcard with + + dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync + + +Running +======= + +Connect a 3V3 serial interface to the serial header on the top side of the board +(between the USB jacks and the A10 chip). Then provide power to the board. diff --git a/board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf b/board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf new file mode 100644 index 0000000000..2fde683f38 --- /dev/null +++ b/board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf @@ -0,0 +1,5 @@ +DEFAULT linux +LABEL linux + KERNEL /boot/zImage + DEVICETREE /boot/sun4i-a10-cubieboard.dtb + APPEND console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 rootwait diff --git a/configs/cubieboard1_defconfig b/configs/cubieboard1_defconfig new file mode 100644 index 0000000000..7ef20db669 --- /dev/null +++ b/configs/cubieboard1_defconfig @@ -0,0 +1,34 @@ +# Architecture +BR2_arm=y +BR2_cortex_a8=y + +# Toolchain options +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=y + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07" +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Cubieboard" +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.9" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-cubieboard" +BR2_LINUX_KERNEL_INSTALL_TARGET=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_ROOTFS_OVERLAY="board/cubietech/cubieboard1/rootfs_overlay" +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/cubietech/cubieboard1/genimage.cfg"