123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- require recipes-bsp/u-boot/u-boot-common.inc
- require recipes-bsp/u-boot/u-boot.inc
- inherit uboot-extlinux-config
- LIC_FILES_CHKSUM:starfive-dubhe = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
- LIC_FILES_CHKSUM:starfive-visionfive2 = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
- LIC_FILES_CHKSUM:starfive-jh8100 = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
- FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
- FORK:starfive-dubhe = "starfive-tech"
- BRANCH:starfive-dubhe = "dubhe_fpga_dev_v2023.10"
- SRCREV:starfive-dubhe = "88c4bf23b45f807c9c4173ef24dc84c3e75b67bc"
- FORK:starfive-visionfive2 = "starfive-tech"
- BRANCH:starfive-visionfive2 = "JH7110_VisionFive2_devel"
- SRCREV:starfive-visionfive2 = "b6e2b0e85c774a18ae668223a6e5f7d335895243"
- FORK:starfive-jh8100 = "starfive-tech"
- BRANCH:starfive-jh8100 = "jh8100_fpga_dev_v2023.01_bmc"
- SRCREV:starfive-jh8100 = "163e8d28c905711d76cbd5d78dafbd6e24b3f21d"
- SRC_URI:starfive-dubhe = "\
- git://git@192.168.110.45/${FORK}/u-boot.git;protocol=ssh;branch=${BRANCH} \
- file://0001-include-configs-starfive-dubhe-fpga.h-Mask-ttyS0-and.patch \
- "
- SRC_URI:starfive-visionfive2 = "\
- git://github.com/${FORK}/u-boot.git;protocol=ssh;branch=${BRANCH} \
- file://vf2_uEnv.txt \
- file://vf2_nvme_uEnv.txt \
- file://tftp-mmc-boot.txt \
- file://visionfive2-fit-image.its \
- file://uboot_disable_logo.patch \
- "
- SRC_URI:starfive-jh8100 = "\
- git://git@192.168.110.45/${FORK}/u-boot.git;protocol=ssh;branch=${BRANCH} \
- file://tftp-mmc-boot.txt \
- "
- DEPENDS:append:starfive-dubhe = " u-boot-tools-native bmap-tools-native opensbi"
- DEPENDS:append:starfive-visionfive2 = " u-boot-tools-native starfive-tool-native"
- DEPENDS:append:starfive-jh8100 = " u-boot-tools-native bmap-tools-native opensbi"
- # Overwrite this for your server
- TFTP_SERVER_IP ?= "127.0.0.1"
- do_configure:prepend:starfive-visionfive2() {
- sed -i -e 's,@SERVERIP@,${TFTP_SERVER_IP},g' ${WORKDIR}/tftp-mmc-boot.txt
- mkimage -O linux -T script -C none -n "U-Boot boot script" \
- -d ${WORKDIR}/tftp-mmc-boot.txt ${WORKDIR}/${UBOOT_ENV_BINARY}
- }
- do_configure:prepend:starfive-jh8100() {
- sed -i -e 's,@SERVERIP@,${TFTP_SERVER_IP},g' ${WORKDIR}/tftp-mmc-boot.txt
- mkimage -O linux -T script -C none -n "U-Boot boot script" \
- -d ${WORKDIR}/tftp-mmc-boot.txt ${WORKDIR}/${UBOOT_ENV_BINARY}
- }
- do_configure:prepend:starfive-dubhe() {
- cp ${DEPLOY_DIR_IMAGE}/fw_dynamic.bin ${WORKDIR}/build/fw_dynamic.bin
- export OPENSBI=${WORKDIR}/build/fw_dynamic.bin
- }
- do_configure:prepend:starfive-jh8100() {
- cp ${DEPLOY_DIR_IMAGE}/fw_dynamic.bin ${WORKDIR}/build/fw_dynamic.bin
- export OPENSBI=${WORKDIR}/build/fw_dynamic.bin
- }
- do_deploy:append:starfive-visionfive2() {
- install -m 644 ${WORKDIR}/vf2_nvme_uEnv.txt ${DEPLOYDIR}/vf2_nvme_uEnv.txt
- install -m 644 ${WORKDIR}/vf2_uEnv.txt ${DEPLOYDIR}/vf2_uEnv.txt
- install -m 644 ${WORKDIR}/visionfive2-fit-image.its ${DEPLOYDIR}/visionfive2-fit-image.its
- spl_tool -c -f ${DEPLOYDIR}/${SPL_IMAGE}
- ln -sf ${SPL_IMAGE}.normal.out ${DEPLOYDIR}/${SPL_BINARYNAME}.normal.out
- ln -sf ${SPL_IMAGE}.normal.out ${DEPLOYDIR}/${SPL_SYMLINK}.normal.out
- }
- do_deploy:append:starfive-dubhe() {
- install -m 644 ${WORKDIR}/build/u-boot.itb ${DEPLOYDIR}/u-boot.itb
- rm ${WORKDIR}/build/fw_dynamic.bin
- }
- do_deploy:append:starfive-jh8100() {
- install -m 644 ${WORKDIR}/build/u-boot.itb ${DEPLOYDIR}/u-boot.itb
- rm ${WORKDIR}/build/fw_dynamic.bin
- }
- TOOLCHAIN = "gcc"
- COMPATIBLE_MACHINE = "(starfive-dubhe|starfive-visionfive2|starfive-jh8100)"
|