2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -9,7 +9,7 @@
|
|||||||
[submodule "linux"]
|
[submodule "linux"]
|
||||||
path = linux
|
path = linux
|
||||||
url = git@192.168.110.45:sbc/linux.git
|
url = git@192.168.110.45:sbc/linux.git
|
||||||
branch = vf2-6.1.y-devel
|
branch = vf2-6.6.y-devel
|
||||||
[submodule "opensbi"]
|
[submodule "opensbi"]
|
||||||
path = opensbi
|
path = opensbi
|
||||||
url = git@192.168.110.45:sdk/opensbi.git
|
url = git@192.168.110.45:sdk/opensbi.git
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -238,7 +238,7 @@ $(perf_tool_wrkdir)/perf: $(linux_srcdir) $(vmlinux)
|
|||||||
ARCH=riscv \
|
ARCH=riscv \
|
||||||
CROSS_COMPILE=$(CROSS_COMPILE) \
|
CROSS_COMPILE=$(CROSS_COMPILE) \
|
||||||
WERROR=0 NO_GTK2=1 NO_LIBPERL=1 \
|
WERROR=0 NO_GTK2=1 NO_LIBPERL=1 \
|
||||||
NO_LIBBIONIC=1
|
NO_LIBBIONIC=1 NO_LIBELF=1 NO_LIBTRACEEVENT=1
|
||||||
|
|
||||||
.PHONY: perf
|
.PHONY: perf
|
||||||
perf: $(perf_tool_wrkdir)/perf
|
perf: $(perf_tool_wrkdir)/perf
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -1,6 +1,6 @@
|
|||||||
# StarFiveTech VisionFive2 SDK
|
# StarFiveTech VisionFive2 SDK
|
||||||
|
|
||||||
This builds a complete RISC-V cross-compile toolchain for the `StarFiveTech` `JH7110` SoC. It also builds U-boot SPL, U-boot and a flattened image tree (FIT) image with a Opensbi binary, linux kernel, device tree, ramdisk image and rootfs image for the `JH7110 VisionFive2` board. Note this SDK is built with the linux kernel version `6.1`.
|
This builds a complete RISC-V cross-compile toolchain for the `StarFiveTech` `JH7110` SoC. It also builds U-boot SPL, U-boot and a flattened image tree (FIT) image with a Opensbi binary, linux kernel, device tree, ramdisk image and rootfs image for the `JH7110 VisionFive2` board. Note this SDK is built with the linux kernel version `6.6`.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@@ -26,11 +26,11 @@ $ sudo apt-get install git-lfs
|
|||||||
|
|
||||||
## Fetch Code Instructions ##
|
## Fetch Code Instructions ##
|
||||||
|
|
||||||
Checkout this repository (e.g.: branch `vf2-6.1.y-devel`). Then checkout all of the linked submodules using:
|
Checkout this repository (e.g.: branch `vf2-6.6.y-devel`). Then checkout all of the linked submodules using:
|
||||||
|
|
||||||
$ git clone git@192.168.110.45:sbc/visionfive.git
|
$ git clone git@192.168.110.45:sbc/visionfive.git
|
||||||
$ cd visionfive
|
$ cd visionfive
|
||||||
$ git checkout --track origin/vf2-6.1.y-devel
|
$ git checkout --track origin/vf2-6.6.y-devel
|
||||||
$ git submodule update --init --recursive
|
$ git submodule update --init --recursive
|
||||||
|
|
||||||
In case someone run `git clone git@gitlab.starfivetech.com:sbc/visionfive.git`, recommend to add the below at the tail of the /etc/hosts to fix the network domain issue:
|
In case someone run `git clone git@gitlab.starfivetech.com:sbc/visionfive.git`, recommend to add the below at the tail of the /etc/hosts to fix the network domain issue:
|
||||||
@@ -46,7 +46,7 @@ For user who build the release tag version, the above command is enough. For dev
|
|||||||
```
|
```
|
||||||
$ cd buildroot && git checkout --track origin/jh7110-master && cd ..
|
$ cd buildroot && git checkout --track origin/jh7110-master && cd ..
|
||||||
$ cd u-boot && git checkout --track origin/jh7110-master && cd ..
|
$ cd u-boot && git checkout --track origin/jh7110-master && cd ..
|
||||||
$ cd linux && git checkout --track origin/vf2-6.1.y-devel && cd ..
|
$ cd linux && git checkout --track origin/vf2-6.6.y-devel && cd ..
|
||||||
$ cd opensbi && git checkout master && cd ..
|
$ cd opensbi && git checkout master && cd ..
|
||||||
$ cd soft_3rdpart && git checkout jh7110-devel && cd ..
|
$ cd soft_3rdpart && git checkout jh7110-devel && cd ..
|
||||||
```
|
```
|
||||||
@@ -68,11 +68,11 @@ work/
|
|||||||
├── linux/arch/riscv/boot
|
├── linux/arch/riscv/boot
|
||||||
├── dts
|
├── dts
|
||||||
│ └── starfive
|
│ └── starfive
|
||||||
│ ├── jh7110-visionfive-v2-A10.dtb
|
│ ├── jh7110-starfive-visionfive-2-ac108.dtb
|
||||||
│ ├── jh7110-visionfive-v2-A11.dtb
|
│ ├── jh7110-starfive-visionfive-2-tdm.dtb
|
||||||
│ ├── jh7110-visionfive-v2-ac108.dtb
|
│ ├── jh7110-starfive-visionfive-2-v1.2a.dtb
|
||||||
│ ├── jh7110-visionfive-v2.dtb
|
│ ├── jh7110-starfive-visionfive-2-v1.3b.dtb
|
||||||
│ ├── jh7110-visionfive-v2-wm8960.dtb
|
│ ├── jh7110-starfive-visionfive-2-wm8960.dtb
|
||||||
│ ├── vf2-overlay
|
│ ├── vf2-overlay
|
||||||
│ │ └── vf2-overlay-uart3-i2c.dtbo
|
│ │ └── vf2-overlay-uart3-i2c.dtbo
|
||||||
└── Image.gz
|
└── Image.gz
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ BR2_RISCV_ISA_CUSTOM_RVC=y
|
|||||||
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
|
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
|
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="git@192.168.110.45:sbc/linux.git"
|
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="git@192.168.110.45:sbc/linux.git"
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.1.y-devel"
|
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.6.y-devel"
|
||||||
BR2_PACKAGE_GLIBC_UTILS=y
|
BR2_PACKAGE_GLIBC_UTILS=y
|
||||||
BR2_BINUTILS_VERSION_2_39_X=y
|
BR2_BINUTILS_VERSION_2_39_X=y
|
||||||
BR2_GCC_VERSION_12_X=y
|
BR2_GCC_VERSION_12_X=y
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ BR2_RISCV_ISA_CUSTOM_RVC=y
|
|||||||
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
|
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
|
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="git@192.168.110.45:sbc/linux.git"
|
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="git@192.168.110.45:sbc/linux.git"
|
||||||
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.1.y-devel"
|
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.6.y-devel"
|
||||||
BR2_PACKAGE_GLIBC_UTILS=y
|
BR2_PACKAGE_GLIBC_UTILS=y
|
||||||
BR2_BINUTILS_VERSION_2_39_X=y
|
BR2_BINUTILS_VERSION_2_39_X=y
|
||||||
BR2_GCC_VERSION_12_X=y
|
BR2_GCC_VERSION_12_X=y
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fdt {
|
fdt {
|
||||||
data = /incbin/("../work/linux/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtb");
|
data = /incbin/("../work/linux/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb");
|
||||||
type = "flat_dt";
|
type = "flat_dt";
|
||||||
arch = "riscv";
|
arch = "riscv";
|
||||||
load = <0x0 0x46000000>;
|
load = <0x0 0x46000000>;
|
||||||
|
|||||||
Reference in New Issue
Block a user