Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starfive VisionFive 2 Board Support #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export BUILDROOT_OVERLAYDIR ?= $(BUILDDIR)/overlay
export BUILDROOT_BUILDDIR ?= $(BUILDDIR)/buildroot.build


# options: generic, cva6, hifive_unmatched, mpfs
# options: generic, cva6, hifive_unmatched, mpfs, starfive/visionfive2
export KEYSTONE_PLATFORM ?= generic
export KEYSTONE_BITS ?= 64

Expand Down
14 changes: 14 additions & 0 deletions mkutils/plat/starfive/visionfive2/run.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#########################
## Flash SD card image ##
#########################

DEVICE ?=
SDIMAGE ?= $(BUILDROOT_BUILDDIR)/images/sdcard.img

flash:
ifeq ($(DEVICE),)
$(call log,error,Set target device to env DEVICE, e.g. DEVICE=/dev/mmcblk0)
else
$(call log,info,Flashing SD image)
sudo dd if=$(SDIMAGE) of=$(DEVICE) bs=4M conv=fdatasync status=progress
endif
5 changes: 5 additions & 0 deletions overlays/keystone/board/starfive/visionfive2/10-end0.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=end0

[Network]
DHCP=yes
5 changes: 5 additions & 0 deletions overlays/keystone/board/starfive/visionfive2/20-end1.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=end1

[Network]
DHCP=yes
4 changes: 4 additions & 0 deletions overlays/keystone/board/starfive/visionfive2/extlinux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label linux
kernel /boot/Image
devicetree /boot/jh7110-starfive-visionfive-2-v1.3b.dtb
append console=ttyS0,115200 root=/dev/mmcblk1p3 cma=1024M@0-4G
21 changes: 21 additions & 0 deletions overlays/keystone/board/starfive/visionfive2/genimage_sdcard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
image sdcard.img {
hdimage {
partition-table-type = "gpt"
}

partition spl {
partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
image = "u-boot-spl.bin.normal.out"
}

partition uboot {
partition-type-uuid = BC13C2FF-59E6-4262-A352-B275FD6F7172
image = "u-boot.itb"
}

partition rootfs {
partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4
bootable = true
image = "rootfs.ext4"
}
}
Loading