Port the Pine64 Star64 defconfig to use mainline components
cover Port the Pine64 Star64 defconfig to use mainline components
---
Thomas Bonnefille (2):
configs/pine64_star64: update defconfig to use mainline components package/starfive-spltool: remove the starfive-spltool package
board/pine64/star64/genimage.cfg | 33 +- board/pine64/star64/linux_defconfig | 570 +++++++++++++++++++++ .../patches/linux-headers/linux-headers.hash | 1 + board/pine64/star64/patches/linux/linux.hash | 2 + board/pine64/star64/patches/opensbi/opensbi.hash | 2 + board/pine64/star64/patches/uboot/uboot.hash | 2 + board/pine64/star64/post-build.sh | 9 - board/pine64/star64/post-image.sh | 3 + board/pine64/star64/star64-uboot-fit-image.its | 29 -- board/pine64/star64/uboot_defconfig | 145 ++++++ configs/pine64_star64_defconfig | 39 +- package/Config.in.host | 1 - package/starfive-spltool/Config.in.host | 8 - package/starfive-spltool/starfive-spltool.hash | 2 - package/starfive-spltool/starfive-spltool.mk | 20 - 15 files changed, 767 insertions(+), 99 deletions(-)
---
base-commit: ded3e0045aeeab226d2770fe8de522422c174434
change-id: 20250819-update_star64-d3b4f4f984a6
Best regards,
Signature · 6 lines
Thomas Bonnefille <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/starfive-spltool: remove the starfive-spltool package
The starfive-spltool host package was added to Buildroot to create a bootable image for the Starfive JH7110 SoC.
Mainline U-Boot can now build an image without it so it is not required anymore.
--- package/Config.in.host | 1 - package/starfive-spltool/Config.in.host | 8 -------- package/starfive-spltool/starfive-spltool.hash | 2 -- package/starfive-spltool/starfive-spltool.mk | 20 -------------------- 4 files changed, 31 deletions(-)
package/Config.in.host +0 -1
@@ -113,7 +113,6 @@ menu "Host utilities" source "package/skopeo/Config.in.host" source "package/sloci-image/Config.in.host" source "package/squashfs/Config.in.host" - source "package/starfive-spltool/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/swig/Config.in.host" source "package/swtpm/Config.in.host"
package/starfive-spltool/Config.in.host deleted +0 -8
@@ -1,8 +0,0 @@ -config BR2_PACKAGE_HOST_STARFIVE_SPLTOOL - bool "host starfive-spltool" - depends on BR2_riscv - help - Add header to the Secondary Program Loader with the 3rd party - software given by Starfive-Tech for their SoCs. - - https://github.com/starfive-tech/soft_3rdpart/tree/JH7110_VisionFive2_devel/spl_tool
package/starfive-spltool/starfive-spltool.hash deleted +0 -2
@@ -1,2 +0,0 @@ -# Locally computed -sha256 f5466225021fbe4e983cc85f32ce11d92ad30689b18e0d1390d16f6bfab74477 starfive-spltool-JH7110_VF2_515_v5.11.3.tar.gz
package/starfive-spltool/starfive-spltool.mk deleted +0 -20
@@ -1,20 +0,0 @@ -################################################################################ -# -# starfive-spltool -# -################################################################################ - -STARFIVE_SPLTOOL_VERSION = JH7110_VF2_515_v5.11.3 -STARFIVE_SPLTOOL_SITE = $(call github,starfive-tech,soft_3rdpart,$(STARFIVE_SPLTOOL_VERSION)) -STARFIVE_SPLTOOL_LICENSE = GPL-2.0+ -STARFIVE_SPLTOOL_FILES = spl_tool/LICENSE - -define HOST_STARFIVE_SPLTOOL_BUILD_CMDS - $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)/spl_tool -endef - -define HOST_STARFIVE_SPLTOOL_INSTALL_CMDS - $(INSTALL) -D -m 0755 $(@D)/spl_tool/spl_tool $(HOST_DIR)/bin/spl_tool -endef - -$(eval $(host-generic-package))
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/2 configs/pine64_star64: update defconfig to use mainline components
In reply to Thomas Bonnefille via buildrootThis is an update of the Pine64 Star64 to use mainline Linux and U-Boot on the model of what have been done for the VisionFive2.
--- board/pine64/star64/genimage.cfg | 33 +- board/pine64/star64/linux_defconfig | 570 +++++++++++++++++++++ .../patches/linux-headers/linux-headers.hash | 1 + board/pine64/star64/patches/linux/linux.hash | 2 + board/pine64/star64/patches/opensbi/opensbi.hash | 2 + board/pine64/star64/patches/uboot/uboot.hash | 2 + board/pine64/star64/post-build.sh | 9 - board/pine64/star64/post-image.sh | 3 + board/pine64/star64/star64-uboot-fit-image.its | 29 -- board/pine64/star64/uboot_defconfig | 145 ++++++ configs/pine64_star64_defconfig | 39 +- 11 files changed, 767 insertions(+), 68 deletions(-)
board/pine64/star64/genimage.cfg +16 -17
@@ -1,24 +1,23 @@ # SD card image for the Pine64 Star64 board image sdcard.img { - hdimage { - partition-table-type = "gpt" - } + hdimage { + partition-table-type = "gpt" + } - partition spl { - image = "u-boot-spl.bin.normal.out" - partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985 - offset = 2M - } + partition spl { + partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985 + image = "u-boot-spl.bin.normal.out" + } - partition uboot { - image = "opensbi_uboot_payload.img" - partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47 - offset = 4M - } + partition uboot { + partition-type-uuid = BC13C2FF-59E6-4262-A352-B275FD6F7172 + image = "u-boot.itb" + } - partition rootfs { - image = "rootfs.ext4" - bootable = true - } + partition rootfs { + partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 + bootable = true + image = "rootfs.ext4" + } }
board/pine64/star64/linux_defconfig new file +570 -0
570 lines not on this page · raw message
board/pine64/star64/patches/linux-headers/linux-headers.hash new file +1 -0
@@ -0,0 +1 @@ +../linux/linux.hash
board/pine64/star64/patches/linux/linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 6b19a3ae99423de2416964d67251d745910277af258b4c4c63e88fd87dbf0e27 linux-6.12.41.tar.xz
board/pine64/star64/patches/opensbi/opensbi.hash new file +2 -0
@@ -0,0 +1,2 @@ +# locally computed +sha256 2cf856a4e5e2e052948ddb54ba48232b1f698b7f52e0374fc7d17d51e8c8f7ce opensbi-1.7.tar.gz
board/pine64/star64/patches/uboot/uboot.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718 u-boot-2025.04.tar.bz2
board/pine64/star64/post-build.sh deleted +0 -9
@@ -1,9 +0,0 @@ -#!/bin/bash -BOARD_DIR="$CONFIG_DIR"/board/pine64/star64 - -# Add header to the SPL -"$HOST_DIR"/bin/spl_tool -c -f "$BINARIES_DIR"/u-boot-spl.bin - -# Create the u-boot FIT image -cp "$BOARD_DIR"/star64-uboot-fit-image.its "$BINARIES_DIR" -mkimage -f "$BINARIES_DIR"/star64-uboot-fit-image.its -A riscv -O u-boot -T firmware "$BINARIES_DIR"/opensbi_uboot_payload.img
board/pine64/star64/post-image.sh new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/bash + +support/scripts/genimage.sh -c board/pine64/star64/genimage.cfg
board/pine64/star64/star64-uboot-fit-image.its deleted +0 -29
@@ -1,29 +0,0 @@ -/dts-v1/; - -/ { - description = "U-boot-spl FIT image for JH7110 Pine64 Star64"; - #address-cells = <2>; - - images { - firmware { - description = "u-boot"; - data = /incbin/("fw_payload.bin"); - type = "firmware"; - arch = "riscv"; - os = "u-boot"; - load = <0x0 0x40000000>; - entry = <0x0 0x40000000>; - compression = "none"; - }; - }; - - configurations { - default = "config-1"; - - config-1 { - description = "U-boot-spl FIT config for JH7110 Pine64 Star64"; - firmware = "firmware"; - }; - }; -}; -
board/pine64/star64/uboot_defconfig new file +145 -0
145 lines not on this page · raw message
configs/pine64_star64_defconfig +26 -13
@@ -1,31 +1,44 @@ BR2_riscv=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y +BR2_GLOBAL_PATCH_DIR="board/pine64/star64/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_SYSTEM_DHCP="eth0" BR2_ROOTFS_OVERLAY="board/pine64/star64/overlay/" -BR2_ROOTFS_POST_BUILD_SCRIPT="board/pine64/star64/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/pine64/star64/post-image.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/pine64/star64/genimage.cfg" BR2_LINUX_KERNEL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Fishwaldo,Star64_linux,1456c984f15e21e28fb8a9ce96d0ca10e61a71c4)/linux-1456c984f15e21e28fb8a9ce96d0ca10e61a71c4.tar.gz" -BR2_LINUX_KERNEL_DEFCONFIG="pine64_star64" +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.41" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pine64/star64/linux_defconfig" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="starfive/jh7110-pine64-star64" 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_EXT2_SIZE="100M" +# BR2_TARGET_ROOTFS_TAR is not set BR2_TARGET_OPENSBI=y +BR2_TARGET_OPENSBI_CUSTOM_VERSION=y +BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE="1.7" BR2_TARGET_OPENSBI_PLAT="generic" -BR2_TARGET_OPENSBI_UBOOT_PAYLOAD=y +# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set +BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES="FW_TEXT_START=0x40000000 FW_OPTIONS=0" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y -BR2_TARGET_UBOOT_CUSTOM_TARBALL=y -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Fishwaldo,u-boot,172b47f62039605d6806fa96bd403c21cda28996)/u-boot-172b47f62039605d6806fa96bd403c21cda28996.tar.gz" -BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pine64_star64" +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2025.04" +BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y +BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/pine64/star64/uboot_defconfig" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_GNUTLS=y +BR2_TARGET_UBOOT_NEEDS_OPENSBI=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb" BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl.bin.normal.out" BR2_PACKAGE_HOST_GENIMAGE=y -BR2_PACKAGE_HOST_STARFIVE_SPLTOOL=y -BR2_PACKAGE_HOST_UBOOT_TOOLS=y -BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/2] configs/pine64_star64: update defconfig to use mainline components
Hi Thomas,
Quoted 2 lines · Thomas Bonnefille via buildroot
This is an update of the Pine64 Star64 to use mainline Linux and U-Boot on the model of what have been done for the VisionFive2.
I have just seen your patch series and realized I've recently sent a similar patch here:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
My initial motivation was to fix the build failure. Sorry for the duplication.
I think the biggest difference between our patches is that I use defconfigs from upstream Kernel and U-Boot. I also switched the defconfig to use Bootlin external toolchains.
Could you review my patch to see if there is anything missing from yours so we can merge those?
Quoted 1 line
Signed-off-by Thomas Bonnefille <[email protected]>
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain via buildroot
AppliedRe: [Buildroot] [PATCH 2/2] package/starfive-spltool: remove the starfive-spltool package
In reply to Thomas Bonnefille via buildrootQuoted 6 lines · Thomas Bonnefille via buildroot
The starfive-spltool host package was added to Buildroot to create a bootable image for the Starfive JH7110 SoC.
Mainline U-Boot can now build an image without it so it is not required anymore.Signed-off-by Thomas Bonnefille <[email protected]>
Applied to master, thanks.
For info, I also removed the DEVELOPERS entry.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot