mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
configs/beaglev_defconfig: remove defconfig
The beaglev_defconfig was meant for BeagleV-Starlight prototype waiting for the arrival of the official revision. But BeagleV-Starlight was never produced [1]. BeagleV-Starlight is nowadays superseded by the Beaglev-Ahead board [2]. [1] https://forum.beagleboard.org/t/the-future-of-beaglev-community/30463 [2] https://www.beagleboard.org/boards/beaglev-ahead Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
0b4f7735c5
commit
35604d58d7
@@ -12,7 +12,6 @@ board/beagleboard/beaglebone/patches/linux/0001-keep-jtag-clock-alive-for-debugg
|
||||
board/beagleboard/beaglebone/post-build.sh Shellcheck
|
||||
board/beagleboard/beagleboneai/patches/uboot/0001-am57xx_evm-fixes.patch lib_patch.Upstream
|
||||
board/beagleboard/beagleboneai/post-build.sh Shellcheck
|
||||
board/beaglev/post-build.sh Shellcheck
|
||||
board/beelink/gs1/post-build.sh Shellcheck
|
||||
board/boundarydevices/common/post-build.sh Shellcheck
|
||||
board/boundarydevices/common/post-image.sh Shellcheck
|
||||
@@ -143,7 +142,6 @@ configs/bananapi_m2_ultra_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/bananapi_m2_zero_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/bananapro_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/beaglebone_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/beaglev_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/beelink_gs1_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/broadcom_northstar_defconfig lib_defconfig.ForceCheckHash
|
||||
configs/canaan_kd233_defconfig lib_defconfig.ForceCheckHash
|
||||
|
||||
@@ -3067,13 +3067,11 @@ F: package/go/
|
||||
|
||||
N: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
F: arch/Config.in.arm
|
||||
F: board/beaglev/
|
||||
F: board/stmicroelectronics/stm32mp157c-dk2/
|
||||
F: boot/beaglev-ddrinit/
|
||||
F: boot/beaglev-secondboot/
|
||||
F: boot/boot-wrapper-aarch64/
|
||||
F: boot/grub2/
|
||||
F: configs/beaglev_defconfig
|
||||
F: configs/stm32mp157c_dk2_defconfig
|
||||
F: package/android-tools/
|
||||
F: package/b43-firmware/
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
label linux
|
||||
kernel /boot/Image
|
||||
devicetree /boot/jh7100-beaglev-starlight.dtb
|
||||
append console=ttyS0,115200 earlyprintk root=PARTUUID=0fef845a-c6e1-45bc-82f7-002fa720f958 rootwait
|
||||
@@ -1,12 +0,0 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type-uuid = 72ec70a6-cf74-40e6-bd49-4bda08e8f224
|
||||
partition-uuid = 0fef845a-c6e1-45bc-82f7-002fa720f958
|
||||
bootable = "true"
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
From 0cf11f3c0478f4286adcfb09bf9137f8b00212e3 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Ghiti <alexandre.ghiti@canonical.com>
|
||||
Date: Mon, 3 Oct 2022 18:07:54 +0200
|
||||
Subject: [PATCH] riscv: Fix build against binutils 2.38
|
||||
|
||||
The following description is copied from the equivalent patch for the
|
||||
Linux Kernel proposed by Aurelien Jarno:
|
||||
|
||||
>From version 2.38, binutils default to ISA spec version 20191213. This
|
||||
means that the csr read/write (csrr*/csrw*) instructions and fence.i
|
||||
instruction has separated from the `I` extension, become two standalone
|
||||
extensions: Zicsr and Zifencei. As the kernel uses those instruction,
|
||||
this causes the following build failure:
|
||||
|
||||
arch/riscv/cpu/mtrap.S: Assembler messages:
|
||||
arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause'
|
||||
arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc'
|
||||
arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval'
|
||||
arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0'
|
||||
|
||||
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
|
||||
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
||||
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
|
||||
Tested-by: Heiko Stuebner <heiko@sntech.de>
|
||||
Tested-by: Christian Stewart <christian@paral.in>
|
||||
Reviewed-by: Rick Chen <rick@andestech.com>
|
||||
(cherry picked from commit 1dde977518f13824b847e23275001191139bc384)
|
||||
Upstream: https://gitlab.com/u-boot/u-boot/-/commit/1dde977518f13824b847e23275001191139bc384
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
arch/riscv/Makefile | 11 ++++++++++-
|
||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
|
||||
index 0b80eb8d864..53d1194ffb6 100644
|
||||
--- a/arch/riscv/Makefile
|
||||
+++ b/arch/riscv/Makefile
|
||||
@@ -24,7 +24,16 @@ ifeq ($(CONFIG_CMODEL_MEDANY),y)
|
||||
CMODEL = medany
|
||||
endif
|
||||
|
||||
-ARCH_FLAGS = -march=$(ARCH_BASE)$(ARCH_A)$(ARCH_C) -mabi=$(ABI) \
|
||||
+RISCV_MARCH = $(ARCH_BASE)$(ARCH_A)$(ARCH_C)
|
||||
+
|
||||
+# Newer binutils versions default to ISA spec version 20191213 which moves some
|
||||
+# instructions from the I extension to the Zicsr and Zifencei extensions.
|
||||
+toolchain-need-zicsr-zifencei := $(call cc-option-yn, -mabi=$(ABI) -march=$(RISCV_MARCH)_zicsr_zifencei)
|
||||
+ifeq ($(toolchain-need-zicsr-zifencei),y)
|
||||
+ RISCV_MARCH := $(RISCV_MARCH)_zicsr_zifencei
|
||||
+endif
|
||||
+
|
||||
+ARCH_FLAGS = -march=$(RISCV_MARCH) -mabi=$(ABI) \
|
||||
-mcmodel=$(CMODEL)
|
||||
|
||||
PLATFORM_CPPFLAGS += $(ARCH_FLAGS)
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
BOARD_DIR=$(dirname $0)
|
||||
|
||||
# Bring the extlinux.conf file in.
|
||||
install -D -m 0644 ${BOARD_DIR}/extlinux.conf \
|
||||
${TARGET_DIR}/boot/extlinux/extlinux.conf
|
||||
|
||||
# To be reflashed through Xmodem, the bootloader needs to be prepended
|
||||
# with a 4-byte header that contains the total size of the file.
|
||||
perl -e 'print pack("l", (stat @ARGV[0])[7])' ${BINARIES_DIR}/fw_payload.bin > ${BINARIES_DIR}/fw_payload.bin.out
|
||||
cat ${BINARIES_DIR}/fw_payload.bin >> ${BINARIES_DIR}/fw_payload.bin.out
|
||||
@@ -1,124 +0,0 @@
|
||||
BeagleV
|
||||
=======
|
||||
|
||||
BeagleV is a low-cost RISC-V 64-bit based platform, powered by a
|
||||
Starfive JH7100 processor. The current defconfig in Buildroot has been
|
||||
tested with the JH7100 chip used on the beta version of the BeagleV
|
||||
board.
|
||||
|
||||
How to build
|
||||
============
|
||||
|
||||
$ make beaglev_defconfig
|
||||
$ make
|
||||
|
||||
Build results
|
||||
=============
|
||||
|
||||
After building, output/images contains:
|
||||
|
||||
+ bootloader-JH7100-buildroot.bin.out
|
||||
+ ddrinit-2133-buildroot.bin.out
|
||||
+ Image
|
||||
+ fw_payload.bin
|
||||
+ fw_payload.bin.out
|
||||
+ fw_payload.elf
|
||||
+ rootfs.ext2
|
||||
+ rootfs.ext4
|
||||
+ sdcard.img
|
||||
+ u-boot.bin
|
||||
|
||||
The four important files are:
|
||||
|
||||
- bootloader-JH7100-buildroot.bin.out, the first stage bootloader
|
||||
|
||||
- ddrinit-2133-buildroot.bin.out, the DDR initialization firmware
|
||||
|
||||
- fw_payload.bin.out, which is the bootloader image, containing
|
||||
both OpenSBI and U-Boot.
|
||||
|
||||
- sdcard.img, the SD card image, which contains the root filesystem,
|
||||
kernel image and Device Tree.
|
||||
|
||||
Flashing the SD card image
|
||||
==========================
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Preparing the board
|
||||
===================
|
||||
|
||||
Connect the Beagle-V fan to the 5V supply (pin 2 or 4 of the GPIO
|
||||
connector) and GND (pin 6 of the GPIO connector).
|
||||
|
||||
Connect a TTL UART cable to pin 8 (TX), 10 (RX) and 14 (GND).
|
||||
|
||||
Insert your SD card.
|
||||
|
||||
Power-up the board using an USB-C cable.
|
||||
|
||||
Flashing OpenSBI/U-Boot
|
||||
=======================
|
||||
|
||||
The bootloader pre-flashed on the Beagle-V has a non-working
|
||||
fdt_addr_r environment variable value, so it won't work
|
||||
as-is. Reflashing the bootloader with the bootloader image produced by
|
||||
Buildroot is necessary.
|
||||
|
||||
When the board starts up, a pre-loader shows a count down of 2
|
||||
seconds, interrupt by pressing any key. You should reach a menu like
|
||||
this:
|
||||
|
||||
--------8<----------
|
||||
|
||||
bootloader version:210209-4547a8d
|
||||
ddr 0x00000000, 1M test
|
||||
ddr 0x00100000, 2M test
|
||||
DDR clk 2133M,Version: 210302-5aea32f
|
||||
0
|
||||
***************************************************
|
||||
*************** FLASH PROGRAMMING *****************
|
||||
***************************************************
|
||||
|
||||
0:update uboot
|
||||
1:quit
|
||||
select the function:
|
||||
|
||||
--------8<----------
|
||||
|
||||
Press 0 and Enter. You will now see "C" characters being
|
||||
displayed. Ask your serial port communication program to send
|
||||
fw_payload.bin.out using the Xmodem protocol.
|
||||
|
||||
After reflashing is complete, restart the board, it will automatically
|
||||
start the system from the SD card, and reach the login prompt.
|
||||
|
||||
Flashing low-level bootloaders
|
||||
==============================
|
||||
|
||||
The BeagleV comes pre-flashed with functional low-level bootloaders
|
||||
(called "secondboot" and "ddrinit"). Re-flashing them is not necessary
|
||||
to use this Buildroot defconfig. However, for the sake of
|
||||
completeness, Buildroot builds and provides those low-level bootloader
|
||||
images.
|
||||
|
||||
You can flash them as follows:
|
||||
|
||||
- In the same "pre-loader" menu as the one used above, instead of
|
||||
entering 0 or 1, enter the magic "root@s5t" string. This enters the
|
||||
"expert" features.
|
||||
|
||||
- Then, press 0 and send over X-modem the
|
||||
bootloader-JH7100-buildroot.bin.out file.
|
||||
|
||||
- Then, press 1 and send over X-modem the
|
||||
ddrinit-2133-buildroot.bin.out.
|
||||
|
||||
Note that the reflashing mechanism itself relies on those low-level
|
||||
bootloaders, so if you flash non-working versions, you'll have to go
|
||||
through a recovery process. This requires wiring up to a separate
|
||||
debug UART, which pins are located near the HDMI connector. See
|
||||
https://wiki.seeedstudio.com/BeagleV-Update-bootloader-ddr-init-boot-uboot-Recover-bootloader/
|
||||
section "Recover the bootloader" for more details. The instructions
|
||||
make use of a jh7100-recover tool, which Buildroot has built as part
|
||||
of this defconfig: it is available as output/host/bin/jh7100-recover.
|
||||
@@ -1,43 +0,0 @@
|
||||
BR2_riscv=y
|
||||
BR2_riscv_custom=y
|
||||
BR2_RISCV_ISA_RVM=y
|
||||
BR2_RISCV_ISA_RVA=y
|
||||
BR2_RISCV_ISA_RVF=y
|
||||
BR2_RISCV_ISA_RVD=y
|
||||
BR2_RISCV_ISA_RVC=y
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13=y
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="board/beaglev/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beaglev/genimage.cfg"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
# tag buildroot-20210609 of the 5.13 branch (esmil_starlight)
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,starfive-tech,linux,83dba1f25dfc118cacec991c31a7a4cfa7405c89)/linux-83dba1f25dfc118cacec991c31a7a4cfa7405c89.tar.gz"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="starlight"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="starfive/jh7100-beaglev-starlight"
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_TARGET_BEAGLEV_DDRINIT=y
|
||||
BR2_TARGET_BEAGLEV_SECONDBOOT=y
|
||||
BR2_TARGET_OPENSBI=y
|
||||
BR2_TARGET_OPENSBI_CUSTOM_TARBALL=y
|
||||
# upstream opensbi master branch
|
||||
BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION="$(call github,riscv,opensbi,79f9b4220ffa7f74356054be25d450d7958bf16c)/opensbi-79f9b4220ffa7f74356054be25d450d7958bf16c.tar.gz"
|
||||
BR2_TARGET_OPENSBI_PLAT="generic"
|
||||
# BR2_TARGET_OPENSBI_INSTALL_DYNAMIC_IMG is not set
|
||||
# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
|
||||
BR2_TARGET_OPENSBI_UBOOT_PAYLOAD=y
|
||||
BR2_TARGET_OPENSBI_FW_FDT_PATH=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
|
||||
# HEAD of the starfive-tech:Fedora_VIC_7100_2021.04 branch
|
||||
BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,starfive-tech,u-boot,64ead5b83959da8eb87b6963843addf5942e6ed4)/uboot-64ead5b83959da8eb87b6963843addf5942e6ed4.tar.gz"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="starfive_vic7100_beagle_v_smode"
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_JH71XX_TOOLS=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/beaglev/patches"
|
||||
Reference in New Issue
Block a user