From patchwork Mon Dec 4 23:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal via buildroot" X-Patchwork-Id: 1871735 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::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SkfZv0fCxz23mj for ; Tue, 5 Dec 2023 10:12:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 98D6C821A9; Mon, 4 Dec 2023 23:12:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 98D6C821A9 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 knLxsuBGc1uX; Mon, 4 Dec 2023 23:12:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id B9890821D6; Mon, 4 Dec 2023 23:12:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B9890821D6 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 4429C1BF2A9 for ; Mon, 4 Dec 2023 23:12:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2ABA2821A9 for ; Mon, 4 Dec 2023 23:12:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2ABA2821A9 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 os7xrPdAcdw4 for ; Mon, 4 Dec 2023 23:12:21 +0000 (UTC) Received: from shout02.mail.de (shout02.mail.de [IPv6:2001:868:100:600::217]) by smtp1.osuosl.org (Postfix) with ESMTPS id EA1838175C for ; Mon, 4 Dec 2023 23:12:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EA1838175C Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout02.mail.de (Postfix) with ESMTP id 1E13D240CA6; Tue, 5 Dec 2023 00:12:19 +0100 (CET) Received: from smtp01.mail.de (smtp01.bt.mail.de [10.0.121.211]) by postfix03.mail.de (Postfix) with ESMTP id 014ED801E7; Tue, 5 Dec 2023 00:12:19 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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 smtp01.mail.de (Postfix) with ESMTPSA id AFEE6240072; Tue, 5 Dec 2023 00:12:18 +0100 (CET) To: buildroot@buildroot.org Date: Tue, 5 Dec 2023 00:12:11 +0100 Message-Id: <20231204231212.36450-2-kilian.zinnecker@mail.de> In-Reply-To: <20231204231212.36450-1-kilian.zinnecker@mail.de> References: <20231204231212.36450-1-kilian.zinnecker@mail.de> MIME-Version: 1.0 X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 3453 X-purgate-ID: 154282::1701731538-47DBA670-DDD1E115/0/0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1701731539; bh=kQgciQPf3mjyKWwH6yXTIRIeKcdwtfDEHaY1HLAr7jM=; h=From:To:Cc:Subject:Date:Message-Id:From:To:CC:Subject:Reply-To; b=q+XyYq8rDyvmLuK1t1TX/VIg3I/FrP+smcrUzxI+IbCEAtqCmw6Dr+y5QNzMSmlAn 2QpdOJi/lX0ExcqUQ8fWO6ysae/vxYYVocnBkHh25uJWmIZssm/JtjZb4BWev29+6V pQe7skDXMXLUArKChiGnbtrfqQBbUER8beyzdq911e5D8hUyrNu/v1/YTcQFa79O5i 3mIDFZWYoVwQco24dOKcB6bqX/avh7XXz8IDcRyBlqp2wu+w/Ll3wDbNjHroXAj0X1 BMqJhSO0SrZicQ/M5FPRns9hh4IzqdV7+6MrtZ42qhOr+xDnsVLHSVAWrQxVKV+HqN Etj+IO5Hm+L7A== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.a=rsa-sha256 header.s=mailde202009 header.b=q+XyYq8r Subject: [Buildroot] [PATCH v2 1/2] package/xuantie-bins: new package 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: "kilian.zinnecker--- via buildroot" From: "Frager, Neal via buildroot" Reply-To: kilian.zinnecker@mail.de Cc: Robert Nelson , Kilian Zinnecker , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Kilian Zinnecker This patch adds a package for Xuantie binary blobs. These binaries are needed for the BeagleV-Ahead. Signed-off-by: Kilian Zinnecker --- DEVELOPERS | 5 +++-- package/Config.in | 1 + package/xuantie-bins/Config.in | 6 ++++++ package/xuantie-bins/xuantie-bins.hash | 1 + package/xuantie-bins/xuantie-bins.mk | 27 ++++++++++++++++++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 package/xuantie-bins/Config.in create mode 100644 package/xuantie-bins/xuantie-bins.hash create mode 100644 package/xuantie-bins/xuantie-bins.mk diff --git a/DEVELOPERS b/DEVELOPERS index f504ca8d36..4d18bc49d4 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1839,9 +1839,10 @@ N: Kieran Bingham F: package/libcamera/ N: Kilian Zinnecker -F: package/rockchip-rkbin/ -F: configs/rock5b_defconfig F: board/radxa/rock5b/ +F: configs/rock5b_defconfig +F: package/rockchip-rkbin/ +F: package/xuantie-bins/ N: Klaus Heinrich Kiwi F: package/wqy-zenhei/ diff --git a/package/Config.in b/package/Config.in index fcc09b07c4..3772e2ac81 100644 --- a/package/Config.in +++ b/package/Config.in @@ -653,6 +653,7 @@ endmenu source "package/wipe/Config.in" source "package/xorriso/Config.in" source "package/xr819-xradio/Config.in" + source "package/xuantie-bins/Config.in" endmenu menu "Interpreter languages and scripting" diff --git a/package/xuantie-bins/Config.in b/package/xuantie-bins/Config.in new file mode 100644 index 0000000000..a04497ce6b --- /dev/null +++ b/package/xuantie-bins/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_XUANTIE_BINS + bool "xuantie-bins" + depends on BR2_riscv + help + This package provides binary blobs, needed for the + BeagleV-Ahead's SoC (TH1520). diff --git a/package/xuantie-bins/xuantie-bins.hash b/package/xuantie-bins/xuantie-bins.hash new file mode 100644 index 0000000000..4d1ec297c9 --- /dev/null +++ b/package/xuantie-bins/xuantie-bins.hash @@ -0,0 +1 @@ +sha256 608e9fec79823996004f65ba692a76d741307b0de23552d147ad1b567e7054dc xuantie-bins-0a2e02bb53758cc12448d8670e65c854528a96b4-br1.tar.gz diff --git a/package/xuantie-bins/xuantie-bins.mk b/package/xuantie-bins/xuantie-bins.mk new file mode 100644 index 0000000000..3a5611cf36 --- /dev/null +++ b/package/xuantie-bins/xuantie-bins.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# xuantie-bins +# +################################################################################ + +XUANTIE_BINS_VERSION = 0a2e02bb53758cc12448d8670e65c854528a96b4 +XUANTIE_BINS_SITE = https://github.com/beagleboard/xuantie-ubuntu.git +XUANTIE_BINS_SITE_METHOD = git +XUANTIE_BINS_LICENSE = PROPRIETARY + +XUANTIE_BINS_INSTALL_IMAGES = YES +XUANTIE_BINS_INSTALL_TARGET = NO + +XUANTIE_BINS_FPGA_BIN_FILENAME = "bins/light_aon_fpga.bin" +XUANTIE_BINS_AUDIO_BIN_FILENAME = "bins/light_c906_audio.bin" + +define XUANTIE_BINS_INSTALL_IMAGES_CMDS + $(foreach f, \ + $(XUANTIE_BINS_FPGA_BIN_FILENAME) \ + $(XUANTIE_BINS_AUDIO_BIN_FILENAME) \ + , \ + $(INSTALL) -D -m 0644 -t $(BINARIES_DIR) $(@D)/$(f) + ) +endef + +$(eval $(generic-package)) From patchwork Mon Dec 4 23:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Frager, Neal via buildroot" X-Patchwork-Id: 1871736 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::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Skfb71hp8z23mj for ; Tue, 5 Dec 2023 10:12:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 59ED4821D6; Mon, 4 Dec 2023 23:12:49 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 59ED4821D6 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 KgN8KSH6vNwu; Mon, 4 Dec 2023 23:12:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 482C8821CC; Mon, 4 Dec 2023 23:12:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 482C8821CC 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 637651BF2A9 for ; Mon, 4 Dec 2023 23:12:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CA447821A9 for ; Mon, 4 Dec 2023 23:12:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CA447821A9 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 b_8oYPaqVlnS for ; Mon, 4 Dec 2023 23:12:21 +0000 (UTC) Received: from shout02.mail.de (shout02.mail.de [IPv6:2001:868:100:600::217]) by smtp1.osuosl.org (Postfix) with ESMTPS id 5EFF88219D for ; Mon, 4 Dec 2023 23:12:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5EFF88219D Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout02.mail.de (Postfix) with ESMTP id 7CAA0240D17; Tue, 5 Dec 2023 00:12:19 +0100 (CET) Received: from smtp01.mail.de (smtp01.bt.mail.de [10.0.121.211]) by postfix02.mail.de (Postfix) with ESMTP id 5ECA3A00E2; Tue, 5 Dec 2023 00:12:19 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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 smtp01.mail.de (Postfix) with ESMTPSA id 0DC5B24007A; Tue, 5 Dec 2023 00:12:19 +0100 (CET) To: buildroot@buildroot.org Date: Tue, 5 Dec 2023 00:12:12 +0100 Message-Id: <20231204231212.36450-3-kilian.zinnecker@mail.de> In-Reply-To: <20231204231212.36450-1-kilian.zinnecker@mail.de> References: <20231204231212.36450-1-kilian.zinnecker@mail.de> MIME-Version: 1.0 X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 10258 X-purgate-ID: 154282::1701731539-47DBA670-6DA478AF/0/0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1701731539; bh=kAQJURv4fEyLNPL5rLBvV40+z/1XRh95dm0rD2QA85s=; h=From:To:Cc:Subject:Date:Message-Id:From:To:CC:Subject:Reply-To; b=tJi9Y8rLzlOgWh9BW/vOk1FPC9dTgCTdrajwC5swmeHMxJa9BRn9JrjZqOeX9YBxy RFwUxZkfd3CNQ2LUVRaiLb2MxYeQkOpfe16MyMuvZnJatFiitp+RJ/ZvEssPysZIb4 4SWcMrtWHXSMyR+Hy5vNQXTEbZfu2cQonDljjOOQu1v70kzwqKo66CkoOjOZrMJRJ8 GtFw9bnrFrvM4V1XUDVXUcnCu9KP5AOnwPArNhTeyeHIIDdcLlV94Y4eKyRHCUA1fu GtiojM0OGBzp9WVTdHFmuEXU77R5xTrjfxmdFmZcJjS8F08vV4p9AIZ2OdpWHuhi/m plOwf+dSir1bA== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=mail.de header.i=@mail.de header.a=rsa-sha256 header.s=mailde202009 header.b=tJi9Y8rL Subject: [Buildroot] [PATCH v2 2/2] configs/beaglev_ahead: 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: , X-Patchwork-Original-From: "kilian.zinnecker--- via buildroot" From: "Frager, Neal via buildroot" Reply-To: kilian.zinnecker@mail.de Cc: Robert Nelson , Kilian Zinnecker , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Kilian Zinnecker This patch adds board support for the BeagleV-Ahead. It uses a custom kernel for the board's SoC. As the SoC has an outdated and currently not supported version of the RISC-V vector extension, the vector extension is disabled. Signed-off-by: Kilian Zinnecker --- DEVELOPERS | 2 + board/beaglev-ahead/genimage.cfg | 62 ++++++++++++++++ board/beaglev-ahead/linux.fragment | 2 + .../0001-Overwrite-bootcmd-by-force.patch | 30 ++++++++ board/beaglev-ahead/post-image.sh | 6 ++ board/beaglev-ahead/readme.txt | 70 +++++++++++++++++++ board/beaglev-ahead/uEnv.txt | 4 ++ board/beaglev-ahead/uboot.fragment | 2 + configs/beaglev_ahead_defconfig | 44 ++++++++++++ 9 files changed, 222 insertions(+) create mode 100644 board/beaglev-ahead/genimage.cfg create mode 100644 board/beaglev-ahead/linux.fragment create mode 100644 board/beaglev-ahead/patches/uboot/0001-Overwrite-bootcmd-by-force.patch create mode 100755 board/beaglev-ahead/post-image.sh create mode 100644 board/beaglev-ahead/readme.txt create mode 100644 board/beaglev-ahead/uEnv.txt create mode 100644 board/beaglev-ahead/uboot.fragment create mode 100644 configs/beaglev_ahead_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 4d18bc49d4..71f672f9e6 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1839,7 +1839,9 @@ N: Kieran Bingham F: package/libcamera/ N: Kilian Zinnecker +F: board/beaglev-ahead/ F: board/radxa/rock5b/ +F: configs/beaglev_ahead_defconfig F: configs/rock5b_defconfig F: package/rockchip-rkbin/ F: package/xuantie-bins/ diff --git a/board/beaglev-ahead/genimage.cfg b/board/beaglev-ahead/genimage.cfg new file mode 100644 index 0000000000..080b169527 --- /dev/null +++ b/board/beaglev-ahead/genimage.cfg @@ -0,0 +1,62 @@ +# SD card image for BeagleV-Ahead + +image boot.vfat { + vfat { + files = { + "fw_dynamic.bin", + "Image", + "light_aon_fpga.bin", + "light-beagle.dtb", + "light_c906_audio.bin", + } + + file uEnv.txt { + image = "uEnv.txt" + } + + file overlays/BBORG_LOAD-00A2.dtbo { + image = "overlays/BBORG_LOAD-00A2.dtbo" + } + + file overlays/BBORG_RELAY-00A2.dtbo { + image = "overlays/BBORG_RELAY-00A2.dtbo" + } + + file overlays/BONE-LED_P8_03.dtbo { + image = "overlays/BONE-LED_P8_03.dtbo" + } + + file overlays/BONE-LED_P9_11.dtbo { + image = "overlays/BONE-LED_P9_11.dtbo" + } + + file overlays/BVA-MIKROBUS-0.dtbo { + image = "overlays/BVA-MIKROBUS-0.dtbo" + } + } + size = 48M +} + +image sdcard.img { + hdimage { + partition-table-type = "gpt" + gpt-location = 2M + } + + partition uboot { + in-partition-table = "false" + image = "u-boot-with-spl.bin" + offset = 0 + holes = {"(440; 1048576)"} + } + + partition boot { + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + image = "rootfs.ext2" + } +} + diff --git a/board/beaglev-ahead/linux.fragment b/board/beaglev-ahead/linux.fragment new file mode 100644 index 0000000000..00f93f39a4 --- /dev/null +++ b/board/beaglev-ahead/linux.fragment @@ -0,0 +1,2 @@ +# CONFIG_VECTOR is not set +# CONFIG_VECTOR_0_7 is not set diff --git a/board/beaglev-ahead/patches/uboot/0001-Overwrite-bootcmd-by-force.patch b/board/beaglev-ahead/patches/uboot/0001-Overwrite-bootcmd-by-force.patch new file mode 100644 index 0000000000..32cd6fa975 --- /dev/null +++ b/board/beaglev-ahead/patches/uboot/0001-Overwrite-bootcmd-by-force.patch @@ -0,0 +1,30 @@ +From 81db2d155db74192e127ae1d98dd4ec415f53dd3 Mon Sep 17 00:00:00 2001 +From: Kilian Zinnecker +Date: Mon, 21 Aug 2023 23:51:59 +0200 +Subject: [PATCH] Overwrite bootcmd by force + +This patch is a dirty hack: Trying to overwrite the bootcmd via the +usual BOOT_COMMAND had no effect: Upon boot the bootcmd defaulted +to some preset value and could not be changed easily. Therefore a +hook is used to force the bootcmd to be overwritten. + +Signed-off-by: Kilian Zinnecker +--- + board/thead/light-c910/light.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/board/thead/light-c910/light.c b/board/thead/light-c910/light.c +index 8d5478e916..1448db974e 100644 +--- a/board/thead/light-c910/light.c ++++ b/board/thead/light-c910/light.c +@@ -2282,6 +2282,7 @@ int board_late_init(void) + light_usb_boot_check(); + do_firmware_load(); + ap_peri_clk_disable(); ++ run_command("load mmc 1:1 $ramdisk_addr_r uEnv.txt; env import -t $ramdisk_addr_r $filesize; run uenvcmd", 0); + return 0; + } + +-- +2.34.1 + diff --git a/board/beaglev-ahead/post-image.sh b/board/beaglev-ahead/post-image.sh new file mode 100755 index 0000000000..9e16eeff3f --- /dev/null +++ b/board/beaglev-ahead/post-image.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e + +cp -r ${BUILD_DIR}/linux-custom/arch/riscv/boot/dts/thead/overlays/ ${BINARIES_DIR} +cp board/beaglev-ahead/uEnv.txt ${BINARIES_DIR}/ +support/scripts/genimage.sh -c board/beaglev-ahead/genimage.cfg diff --git a/board/beaglev-ahead/readme.txt b/board/beaglev-ahead/readme.txt new file mode 100644 index 0000000000..21aceb23c9 --- /dev/null +++ b/board/beaglev-ahead/readme.txt @@ -0,0 +1,70 @@ +BeagleV-Ahead +============== +https://forum.beagleboard.org/c/beaglev/ + +Build: +====== + $ make beaglev_ahead_defconfig + $ make + +Files created in output directory +================================= + +output/images +. +├── Image +├── boot.vfat +├── bootloader-JH7100-buildroot.bin.out +├── ddrinit-2133-buildroot.bin.out +├── fw_dynamic.bin +├── fw_dynamic.elf +├── fw_jump.bin +├── fw_jump.elf +├── fw_payload.bin +├── fw_payload.elf +├── light-beagle.dtb +├── light_aon_fpga.bin +├── light_c906_audio.bin +├── overlays +├── rootfs.ext2 +├── rootfs.ext4 +├── rootfs.tar +├── sdcard.img +├── u-boot-with-spl.bin +├── u-boot.bin +└── uEnv.txt + +Creating bootable SD card: +========================== + +Simply invoke (as root) + +sudo dd if=output/images/sdcard.img of=/dev/sdX && sync + +Where X is your SD card device. + +Booting: +======== + +SD card boot button: +-------------------- +To let the board boot from SD card, keep the "SD button" pressed during power +up / power cycle. The button is near the SD card slot. + +Serial console: +--------------- +The BeagleV-Ahead has a "Debug" GPIO header. Its layout can be seen here: +https://docs.beagleboard.org/latest/boards/beaglev/ahead/02-quick-start.html#access-uart-debug-console + +Note, that there are reported issues with some uart interface cables/dongles: +https://forum.beagleboard.org/t/beaglev-ahead-debug-terminal-problems/35331 + +Baudrate for this board is 115200. + +Login: +------ +Enter 'root' as login user, and the prompt is ready. + +wiki link: +---------- +https://docs.beagleboard.org/latest/boards/beaglev/ahead/index.html diff --git a/board/beaglev-ahead/uEnv.txt b/board/beaglev-ahead/uEnv.txt new file mode 100644 index 0000000000..7e98ae5f81 --- /dev/null +++ b/board/beaglev-ahead/uEnv.txt @@ -0,0 +1,4 @@ +bootcmd=booti ${kernel_addr_r} - ${fdt_addr_r} +uenvcmd=fatload mmc 1:1 ${kernel_addr_r} Image; fatload mmc 1:1 ${fdt_addr_r} light-beagle.dtb +bootargs=root=/dev/mmcblk1p2 rootfstype=ext4 rootwait ro console=ttyS0,115200 earlycon clk_ignore_unused net.ifnames=0 + diff --git a/board/beaglev-ahead/uboot.fragment b/board/beaglev-ahead/uboot.fragment new file mode 100644 index 0000000000..1f51cef106 --- /dev/null +++ b/board/beaglev-ahead/uboot.fragment @@ -0,0 +1,2 @@ +CONFIG_LEGACY_IMAGE_FORMAT=y +CONFIG_AUTOBOOT=y diff --git a/configs/beaglev_ahead_defconfig b/configs/beaglev_ahead_defconfig new file mode 100644 index 0000000000..4b349cc6f9 --- /dev/null +++ b/configs/beaglev_ahead_defconfig @@ -0,0 +1,44 @@ +BR2_riscv=y +BR2_riscv_custom=y +BR2_RISCV_ISA_CUSTOM_RVM=y +BR2_RISCV_ISA_CUSTOM_RVA=y +BR2_RISCV_ISA_CUSTOM_RVF=y +BR2_RISCV_ISA_CUSTOM_RVD=y +BR2_RISCV_ISA_CUSTOM_RVC=y +BR2_GCC_VERSION_13_X=y +BR2_GLOBAL_PATCH_DIR="board/beaglev-ahead/patches" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglev-ahead/post-image.sh" +BR2_TARGET_GENERIC_HOSTNAME="BeagleV-Ahead" +BR2_TARGET_GENERIC_ISSUE="Welcome to the BeagleV-Ahead" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/beagleboard/linux/archive/refs/heads/beaglev-v5.10.113-1.1.2-ubuntu.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="beaglev" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="thead/light-beagle" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/beaglev-ahead/linux.fragment" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_BEAGLEV_DDRINIT=y +BR2_TARGET_BEAGLEV_SECONDBOOT=y +BR2_TARGET_OPENSBI=y +BR2_TARGET_OPENSBI_CUSTOM_TARBALL=y +BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION="https://github.com/beagleboard/beaglev-ahead-opensbi/archive/refs/heads/0.9-1.1.2-ubuntu.tar.gz" +BR2_TARGET_OPENSBI_PLAT="generic" +BR2_TARGET_OPENSBI_UBOOT_PAYLOAD=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/beagleboard/beaglev-ahead-u-boot/archive/refs/heads/beaglev-v2020.01-1.1.2-ubuntu.tar.gz" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="light_beagle" +BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/beaglev-ahead/uboot.fragment" +BR2_TARGET_UBOOT_FORMAT_BIN=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-with-spl.bin" +BR2_PACKAGE_HOST_MTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_XUANTIE_BINS=y