From patchwork Sat Nov 5 19:47:12 2022 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: 1700138 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 4N4Shc26GLz23ls for ; Sun, 6 Nov 2022 06:48:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 99051416C7; Sat, 5 Nov 2022 19:47:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 99051416C7 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 2jBqdhZBO5Ni; Sat, 5 Nov 2022 19:47:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 870C8416BA; Sat, 5 Nov 2022 19:47:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 870C8416BA 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 0D2601BF371 for ; Sat, 5 Nov 2022 19:47:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 400F081A73 for ; Sat, 5 Nov 2022 19:47:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 400F081A73 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 Mfbqmq_yxj-c for ; Sat, 5 Nov 2022 19:47:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org BC37681A65 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by smtp1.osuosl.org (Postfix) with ESMTPS id BC37681A65 for ; Sat, 5 Nov 2022 19:47:24 +0000 (UTC) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 98E34240101 for ; Sat, 5 Nov 2022 20:47:21 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N4Sgs1hdPz6tmG; Sat, 5 Nov 2022 20:47:21 +0100 (CET) From: =?utf-8?q?Gero_Schw=C3=A4ricke?= To: buildroot@buildroot.org Date: Sat, 5 Nov 2022 19:47:12 +0000 Message-Id: <20221105194712.541286-1-gero@schwaericke.email> MIME-Version: 1.0 Subject: [Buildroot] [PATCH] board/cubietech/cubieboard1: add Cubieboard 1 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" Board support for the Cubieboard 1 from Cubietech. Based the config for Cubieboard 2 and the Olimex A10-OLinuXino-LIME which is also an Allwinner A10 board (sunxi kernel). Signed-off-by: Gero Schwäricke --- board/cubietech/cubieboard1/boot.cmd | 7 +++++ board/cubietech/cubieboard1/genimage.cfg | 36 ++++++++++++++++++++++ configs/cubieboard1_defconfig | 39 ++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 board/cubietech/cubieboard1/boot.cmd create mode 100644 board/cubietech/cubieboard1/genimage.cfg create mode 100644 configs/cubieboard1_defconfig diff --git a/board/cubietech/cubieboard1/boot.cmd b/board/cubietech/cubieboard1/boot.cmd new file mode 100644 index 0000000000..eefbdc8169 --- /dev/null +++ b/board/cubietech/cubieboard1/boot.cmd @@ -0,0 +1,7 @@ +# based on board/cubieboard2/boot.cmd + +setenv fdt_high ffffffff +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait +fatload mmc 0 $kernel_addr_r zImage +fatload mmc 0 $fdt_addr_r sun4i-a10-cubieboard.dtb +bootz $kernel_addr_r - $fdt_addr_r diff --git a/board/cubietech/cubieboard1/genimage.cfg b/board/cubietech/cubieboard1/genimage.cfg new file mode 100644 index 0000000000..2ed4dde951 --- /dev/null +++ b/board/cubietech/cubieboard1/genimage.cfg @@ -0,0 +1,36 @@ +# based on board/cubieboard2/genimage.cfg + +image boot.vfat { + vfat { + files = { + "zImage", + "sun4i-a10-cubieboard.dtb", + "boot.scr" + } + } + + size = 16M +} + +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 boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/configs/cubieboard1_defconfig b/configs/cubieboard1_defconfig new file mode 100644 index 0000000000..601d4ab38c --- /dev/null +++ b/configs/cubieboard1_defconfig @@ -0,0 +1,39 @@ +# Architecture +BR2_arm=y +BR2_cortex_a8=y + +# Toolchain options +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.04" +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" +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/cubietech/cubieboard1/boot.cmd" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.0.1" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-cubieboard" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/cubietech/cubieboard1/genimage.cfg" + +# Host Requirements +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_MTOOLS=y