Skip to content

Commit cef08a1

Browse files
committed
Update submodule commit id for tag JH7110_VF2_6.12_v5.14.0
1 parent b192cc7 commit cef08a1

File tree

6 files changed

+31
-77
lines changed

6 files changed

+31
-77
lines changed

.gitmodules

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[submodule "buildroot"]
22
path = buildroot
3-
url = [email protected]:sdk/buildroot.git
4-
branch = jh7110-master
3+
url = https://github.com/starfive-tech/buildroot.git
4+
branch = JH7110_VisionFive2_devel
55
[submodule "u-boot"]
66
path = u-boot
7-
url = [email protected]:sdk/u-boot.git
8-
branch = jh7110-master
7+
url = https://github.com/starfive-tech/u-boot.git
8+
branch = JH7110_VisionFive2_devel
99
[submodule "linux"]
1010
path = linux
11-
url = [email protected]:sbc/linux.git
12-
branch = vf2-6.12.y-devel
11+
url = https://github.com/starfive-tech/linux.git
12+
branch = JH7110_VisionFive2_6.12.y_devel
1313
[submodule "opensbi"]
1414
path = opensbi
15-
url = [email protected]:sdk/opensbi.git
16-
branch = master
15+
url = https://github.com/starfive-tech/opensbi.git
16+
branch = JH7110_VisionFive2_devel
1717
[submodule "soft_3rdpart"]
1818
path = soft_3rdpart
19-
url = [email protected]:sdk/soft_3rdpart.git
20-
branch = jh7110-devel
19+
url = https://github.com/starfive-tech/soft_3rdpart.git
20+
branch = JH7110_VisionFive2_devel

README.md

Lines changed: 17 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ sudo apt-get install build-essential automake libtool texinfo bison flex gawk
1414
g++ git xxd curl wget gdisk gperf cpio bc screen texinfo unzip libgmp-dev
1515
libmpfr-dev libmpc-dev libssl-dev libncurses-dev libglib2.0-dev libpixman-1-dev
1616
libyaml-dev patchutils python3-pip zlib1g-dev device-tree-compiler dosfstools
17-
mtools kpartx rsync scons
17+
mtools kpartx rsync
1818
```
1919

2020
Additional packages for Git LFS support:
@@ -26,30 +26,23 @@ $ sudo apt-get install git-lfs
2626

2727
## Fetch Code Instructions ##
2828

29-
Checkout this repository (e.g.: branch `vf2-6.12.y-devel`). Then checkout all of the linked submodules using:
29+
Checkout this repository (e.g.: branch `JH7110_VisionFive2_devel`). Then checkout all of the linked submodules using:
3030

31-
$ git clone [email protected]:sbc/visionfive.git
32-
$ cd visionfive
33-
$ git checkout --track origin/vf2-6.12.y-devel
31+
$ git clone https://github.com/starfive-tech/VisionFive2.git
32+
$ cd VisionFive2
33+
$ git checkout --track origin/JH7110_VisionFive2_6.12.y_devel
3434
$ git submodule update --init --recursive
35-
$ cd linux && git branch vf2-6.12.y-devel origin/vf2-6.12.y-devel && cd ..
36-
37-
In case someone run `git clone [email protected]:sbc/visionfive.git`, recommend to add the below at the tail of the /etc/hosts to fix the network domain issue:
38-
39-
```
40-
192.168.110.45 gitlab.starfivetech.com
41-
```
42-
35+
$ cd linux && git branch JH7110_VisionFive2_6.12.y_devel origin/JH7110_VisionFive2_6.12.y_devel && cd ..
4336
This will take some time and require around 9GB of disk space. Some modules may fail because certain dependencies don't have the best git hosting. The only solution is to wait and try again later (or ask someone for a copy of that source repository).
4437

45-
For user who build the release tag version, the above command is enough. For developer, need to switch the 5 submodules `buildroot`, `u-boot`, `linux`, `opensbi`, `soft_3rdpart` to correct branch manually, or refer to `.gitmodule`
38+
For user who build the release tag version, the above command is enough. For developer, need to switch the 5 submodules `buildroot`, `u-boot`, `linux`, `opensbi`, `soft_3rdpart` to correct branch manually, also could refer to `.gitmodule`
4639

4740
```
48-
$ cd buildroot && git checkout --track origin/jh7110-master && cd ..
49-
$ cd u-boot && git checkout --track origin/jh7110-master && cd ..
50-
$ cd linux && git checkout --track origin/vf2-6.12.y-devel && cd ..
51-
$ cd opensbi && git checkout master && cd ..
52-
$ cd soft_3rdpart && git checkout jh7110-devel && cd ..
41+
$ cd buildroot && git checkout --track origin/JH7110_VisionFive2_devel && cd ..
42+
$ cd u-boot && git checkout --track origin/JH7110_VisionFive2_devel && cd ..
43+
$ cd linux && git checkout --track origin/JH7110_VisionFive2_6.12.y_devel && cd ..
44+
$ cd opensbi && git checkout --track origin/JH7110_VisionFive2_devel && cd ..
45+
$ cd soft_3rdpart && git checkout JH7110_VisionFive2_devel && cd ..
5346
```
5447

5548
## Quick Build Instructions
@@ -69,9 +62,9 @@ work/
6962
├── linux/arch/riscv/boot
7063
├── dts
7164
│ └── starfive
65+
│ ├── jh7110-starfive-visionfive-2-A10.dtb
66+
│ ├── jh7110-starfive-visionfive-2-A11.dtb
7267
│ ├── jh7110-starfive-visionfive-2-ac108.dtb
73-
│ ├── jh7110-starfive-visionfive-2-tdm.dtb
74-
│ ├── jh7110-starfive-visionfive-2-v1.2a.dtb
7568
│ ├── jh7110-starfive-visionfive-2-v1.3b.dtb
7669
│ ├── jh7110-starfive-visionfive-2-wm8960.dtb
7770
│ ├── vf2-overlay
@@ -364,46 +357,7 @@ swapoff -a
364357
swapon /dev/mmcblk0p5
365358
```
366359

367-
## APPENDIX II: Build RT-Thread AMP Image
368-
369-
The sdk also support building RT-Thread AMP Image which will run both rt-thread os and linux os on JH7110 quad cpu core. For the details about the starfive rtthread amp usage, please reference to the [Starfive RVspace](https://doc.rvspace.org/VisionFive2/Application_Notes/RT-Thread/).
370-
371-
First need to download RT-Thread code:
372-
373-
```
374-
$ git clone -b amp-5.0.2-devel [email protected]:sdk/rtthread.git rtthread
375-
```
376-
377-
Then download and prepare the toolchain needed for RT-Thread code:
378-
379-
```
380-
# For Ubuntu 18.04:
381-
$ wget https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2022.04.12/riscv64-elf-ubuntu-18.04-nightly-2022.04.12-nightly.tar.gz
382-
$ sudo tar xf riscv64-elf-ubuntu-18.04-nightly-2022.04.12-nightly.tar.gz -C /opt/
383-
$ /opt/riscv/bin/riscv64-unknown-elf-gcc --version
384-
riscv64-unknown-elf-gcc (g5964b5cd727) 11.1.0
385-
```
386-
387-
Generate rtthread amp sdcard image:
388-
389-
```
390-
$ make -j$(nproc)
391-
$ make ampuboot_fit # build amp uboot image
392-
$ make buildroot_rootfs -j$(nproc)
393-
$ make img
394-
$ make amp_img # generate sdcard img
395-
```
396-
397-
Or just run script to implement the download rtthread and toolchain, and generate rtthread amp sdcard image:
398-
399-
```
400-
$ build-rtthread-amp-sdk.sh
401-
```
402-
403-
The output file `work/sdcard_amp.img` will be generated. How to write the sdcard img file to sdcard, please reference to the [APPENDIX I: Generate Booting SD Card](#Copy Image File to SD Card).
404-
405-
## APPENDIX III: Using DTB Overlay Dynamically
406-
360+
## APPENDIX II: Using DTB Overlay Dynamically
407361
The system support loading dtb overlay dynamically when the board is running. Run below on board:
408362

409363
```
@@ -419,7 +373,7 @@ Additional, you could remove the dtbo feature:
419373
# rmdir /sys/kernel/config/device-tree/overlays/dtoverlay
420374
```
421375

422-
## APPENDIX IV: Updating SPL and U-Boot binaries Under U-boot
376+
## APPENDIX III: Updating SPL and U-Boot binaries Under U-boot
423377

424378
Prepare the tftp sever. e.g. `sudo apt install tftpd-hpa` for Ubuntu host.
425379

@@ -453,7 +407,7 @@ Prepare the tftp sever. e.g. `sudo apt install tftpd-hpa` for Ubuntu host.
453407
StarFive # sf update ${loadaddr} 0x100000 $filesize
454408
```
455409

456-
## APPENDIX V: Recovering Bootloader
410+
## APPENDIX IV: Recovering Bootloader
457411

458412
The SPL and U-Boot are stored inside the SPI flash on board. There may be situations where you accidentally emptied the flash or if the flash is damaged on your board. In these situations, it's better to recover the bootloader.
459413

Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
JH7110_VF2_6.12_v1.1.1
1+
JH7110_VF2_6.12_v5.14.0

conf/buildroot_initramfs_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BR2_RISCV_ISA_CUSTOM_RVD=y
66
BR2_RISCV_ISA_CUSTOM_RVC=y
77
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
88
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="file://$(TOPDIR)/../linux/.git"
9-
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.12.y-devel"
9+
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="JH7110_VisionFive2_6.12.y_devel"
1010
BR2_BINUTILS_VERSION_2_39_X=y
1111
BR2_GCC_VERSION_12_X=y
1212
BR2_GCC_ENABLE_LTO=y

conf/buildroot_initramfs_config_debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BR2_RISCV_ISA_CUSTOM_RVC=y
77
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
88
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
99
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="file://$(TOPDIR)/../linux/.git"
10-
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.12.y-devel"
10+
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="JH7110_VisionFive2_6.12.y_devel"
1111
BR2_PACKAGE_GLIBC_UTILS=y
1212
BR2_BINUTILS_VERSION_2_39_X=y
1313
BR2_GCC_VERSION_12_X=y

conf/buildroot_rootfs_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BR2_RISCV_ISA_CUSTOM_RVC=y
77
BR2_STRIP_EXCLUDE_FILES="ipa_starfive.so* libcamera-base.so* libcamera.so* libgstlibcamera.so v4l2-compat.so starfive_ipa_proxy"
88
BR2_KERNEL_HEADERS_CUSTOM_GIT=y
99
BR2_KERNEL_HEADERS_CUSTOM_REPO_URL="file://$(TOPDIR)/../linux/.git"
10-
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="vf2-6.12.y-devel"
10+
BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION="JH7110_VisionFive2_6.12.y_devel"
1111
BR2_PACKAGE_GLIBC_UTILS=y
1212
BR2_BINUTILS_VERSION_2_39_X=y
1313
BR2_GCC_VERSION_12_X=y

0 commit comments

Comments
 (0)