3abd21bcd9
Switch from the starfive-tech opensbi to upstream repo and use generic platform now that it supports the console uart [1]. This landed after the 0.9 release [2], so the current head of master branch is used [3]. FW_FDT_PATH is set to u-boot.dtb so that the device tree from U-Boot will be included in the OpenSBI build [4]. Note that U-Boot must have CONFIG_OF_SEPARATE enabled for U-Boot to build u-boot.dtb [5]. [1]e822b7504d
[2]234ed8e427
[3]79f9b4220f
[4] https://github.com/riscv/opensbi/blob/master/docs/firmware/fw.md [5] https://github.com/u-boot/u-boot/blob/master/doc/README.fdt-control Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Drew Fustini <drew@beagleboard.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
BR2_riscv=y
|
|
BR2_riscv_custom=y
|
|
BR2_RISCV_ISA_CUSTOM_RVM=y
|
|
BR2_RISCV_ISA_CUSTOM_RVF=y
|
|
BR2_RISCV_ISA_CUSTOM_RVD=y
|
|
BR2_RISCV_ISA_CUSTOM_RVC=y
|
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12=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_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
|