[Buildroot] [PATCH 1/1] board: licheepi_4a: Upgrade BSP
Kanak Shilledar
kanak.shilledar at axis.com
Fri May 8 15:48:11 UTC 2026
Updated the BSP for Sipeed LicheePi 4A.
* Updated Linux Kernel to use latest release
* Updated the opensbi to v1.6
* Updated uboot to latest from the vendor
* Removed Architecture Vector support from board's defconfig as it gave
a kernel panic.
```
[ 1.677829] Run /sbin/init as init process
[ 1.689056] init[1]: unhandled signal 4 code 0x1 at 0x0000003fa8231b80 in ld-linux-riscv64-lp64d.so.1[11b80,3fa8220000+21000]
[ 1.700491] CPU: 2 UID: 0 PID: 1 Comm: init Not tainted 7.0.4 #1 PREEMPTLAZY
[ 1.707697] Hardware name: Sipeed Lichee Pi 4A (DT)
[ 1.712626] epc : 0000003fa8231b80 ra : 0000003fa8231392 sp : 0000003fc1ad08f0
[ 1.719893] gp : 0000000000000000 tp : 0000000000000000 t0 : 0000000000000000
[ 1.727158] t1 : 0000000000000000 t2 : 0000000000000000 s0 : 0000003fc1ad09d0
[ 1.734420] s1 : 0000000000000000 a0 : 0000000000000000 a1 : 000000006fffffff
[ 1.741685] a2 : 0000000000000006 a3 : 0000000000000001 a4 : ffffffffffffffff
[ 1.748949] a5 : 0000000000000000 a6 : 0000003fa8242ec8 a7 : 000000006ffffdff
[ 1.756208] s2 : 0000000000000000 s3 : 0000003fa8220000 s4 : 0000000000000000
[ 1.763474] s5 : 0000003fa8220000 s6 : 0000003fa8243c40 s7 : 0000000000000000
[ 1.770734] s8 : 0000000000000000 s9 : 0000000000000000 s10: 0000000000000000
[ 1.777993] s11: 0000000000000000 t3 : 000000000000000a t4 : 0000000000000035
[ 1.785252] t5 : 000000000000000b t6 : 0000000000000000 ssp : 0000000000000000
[ 1.792608] status: 0000000200004020 badaddr: 00000000cd817057 cause: 0000000000000002
[ 1.800618] Code: 0206 9381 bf31 06a1 0513 1f85 e8e3 fab6 3a83 008b (7057) cd81
[ 1.808151] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
```
Signed-off-by: Kanak Shilledar <kanak.shilledar at axis.com>
---
.../licheepi_4a/patches/opensbi/opensbi.hash | 2 +-
board/sipeed/licheepi_4a/patches/uboot/uboot.hash | 2 +-
configs/sipeed_licheepi_4a_defconfig | 14 ++++++--------
3 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/board/sipeed/licheepi_4a/patches/opensbi/opensbi.hash b/board/sipeed/licheepi_4a/patches/opensbi/opensbi.hash
index 5ced5c95cc..a08d207608 100644
--- a/board/sipeed/licheepi_4a/patches/opensbi/opensbi.hash
+++ b/board/sipeed/licheepi_4a/patches/opensbi/opensbi.hash
@@ -1,2 +1,2 @@
# Locally computed
-sha256 2510c0e867b4f8c28579def9a21e97fa2e8de95b8c7d66bb8b6642202bcee3b4 opensbi-61d7484c752a5e4c464d5dc18e21d9ac67fbbefa-git4.tar.gz
+sha256 514f652aafdc8f45864922fa28d54a1fe493d8997707f0ec3546f8e2bdc32628 opensbi-1b8e883a7368676c2bafd6236dfd2dd5edabe067-git4.tar.gz
diff --git a/board/sipeed/licheepi_4a/patches/uboot/uboot.hash b/board/sipeed/licheepi_4a/patches/uboot/uboot.hash
index b63a8d79d4..7dc3fac84c 100644
--- a/board/sipeed/licheepi_4a/patches/uboot/uboot.hash
+++ b/board/sipeed/licheepi_4a/patches/uboot/uboot.hash
@@ -1,2 +1,2 @@
# Locally computed
-sha256 6158b9c6faee41a1e790ad4ba2e1b3e18a122ecdb5749fa77c7495a2d1c56262 uboot-b5ee6e549a7b5ff382a14021a5d6a3c94017bddd-git4.tar.gz
+sha256 198b6181303f9973e4c585ee5ab2440d412dd97ef5d42194943aa5fed172b500 uboot-a13e24ed9ed773d4a07f079576a2fd654af6bfbb-git4.tar.gz
diff --git a/configs/sipeed_licheepi_4a_defconfig b/configs/sipeed_licheepi_4a_defconfig
index c7867ed05d..e936a1258b 100644
--- a/configs/sipeed_licheepi_4a_defconfig
+++ b/configs/sipeed_licheepi_4a_defconfig
@@ -1,7 +1,7 @@
BR2_riscv=y
BR2_RISCV_ISA_RVC=y
-BR2_RISCV_ISA_RVV=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
+BR2_BINUTILS_VERSION_2_46_X=y
+BR2_GCC_VERSION_15_X=y
BR2_GLOBAL_PATCH_DIR="board/sipeed/licheepi_4a/patches"
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
BR2_TARGET_GENERIC_HOSTNAME="licheepi4a"
@@ -10,8 +10,6 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/sipeed/licheepi_4a/post-image.sh"
BR2_LINUX_KERNEL=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.18"
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="thead/th1520-lichee-pi-4a"
@@ -28,14 +26,14 @@ BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_OPENSBI=y
BR2_TARGET_OPENSBI_CUSTOM_GIT=y
-BR2_TARGET_OPENSBI_CUSTOM_REPO_URL="https://github.com/revyos/thead-opensbi.git"
-BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION="61d7484c752a5e4c464d5dc18e21d9ac67fbbefa"
+BR2_TARGET_OPENSBI_CUSTOM_REPO_URL="https://github.com/revyos/opensbi.git"
+BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION="1b8e883a7368676c2bafd6236dfd2dd5edabe067"
BR2_TARGET_OPENSBI_PLAT="generic"
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="light_lpi4a"
BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/revyos/thead-u-boot.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="b5ee6e549a7b5ff382a14021a5d6a3c94017bddd"
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/revyos/th1520-vendor-uboot.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="a13e24ed9ed773d4a07f079576a2fd654af6bfbb"
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-with-spl.bin"
BR2_PACKAGE_HOST_GENIMAGE=y
--
2.43.0
More information about the buildroot
mailing list