Commit 08c49463 authored by mara's avatar mara
Browse files

starfive: added support soc jh7100

parent a60112b5
source "$CWD/config/sources/starfive.inc" || exit 1
BOOT_LOADER_SOURCE="https://github.com/starfive-tech/u-boot.git"
BOOT_LOADER_DIR="u-boot-${SOCFAMILY}"
BOOT_LOADER_BRANCH="JH7100_upstream::"
OPENSBI_SOURCE="https://github.com/starfive-tech/opensbi.git"
OPENSBI_DIR="opensbi-${SOCFAMILY}"
OPENSBI_BRANCH="master::"
SECOND_BOOT_SOURCE="https://github.com/starfive-tech/JH7100_secondBoot.git"
SECOND_BOOT_DIR="second-boot-${SOCFAMILY}"
SECOND_BOOT_BRANCH="starfive::"
DDRINIT_SOURCE="https://github.com/starfive-tech/JH7100_ddrinit.git"
DDRINIT_DIR="ddrinit-${SOCFAMILY}"
DDRINIT_BRANCH="starfive::"
OPENSBI="true"
OPENSBI_PLATFORM="generic"
OPENSBI_BLOB="fw_payload.bin"
IMAGE_OFFSET=69632
BOOT_LOADER_BIN="u-boot.toc1.bin"
uboot_customization()
{
:
}
INITRD_MODULES="tun:btrfs:xfs"
SERIAL_CONSOLE_SPEED=115200
SERIAL_CONSOLE=ttyS0
IMAGE_OFFSET=2048
case $KERNEL_SOURCE in
legacy)
LINUX_SOURCE="https://github.com/starfive-tech/linux"
KERNEL_BRANCH="visionfive::"
KERNEL_DIR="linux-$SOCFAMILY-$KERNEL_SOURCE"
;;
next)
LINUX_SOURCE="https://github.com/starfive-tech/linux"
KERNEL_BRANCH="visionfive::"
KERNEL_DIR="linux-$SOCFAMILY-$KERNEL_SOURCE"
;;
esac
create_uboot()
{
pushd $SOURCE/$BOOT_LOADER_DIR >> $LOG 2>&1 || (message "err" "details" && exit 1) || exit 1
popd >> $LOG 2>&1 || (message "err" "details" && exit 1) || exit 1
}
write_uboot()
{
# clear u-boot
dd if=/dev/zero of=$1 bs=1k count=1023 seek=1 status=noxfer >> $LOG 2>&1 || (message "err" "details" && exit 1) || exit 1
message "" "write" "$BOOT_LOADER_DIR"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment