Skip to content

Commit 076ede0

Browse files
committed
[NOT-FOR-UPSTREAM] Add readme
Signed-off-by: Hal Feng <[email protected]>
1 parent dd973ac commit 076ede0

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

README.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
## JH7110 Upstream Status ##
2+
3+
To get the latest status of each upstreaming patch series, please visit
4+
our RVspace.
5+
6+
https://rvspace.org/en/project/JH7110_Upstream_Plan
7+
8+
## Test Status ##
9+
10+
| Component | Test Result | Note |
11+
| :---------| :-----------| :----|
12+
| Clock tree / Reset | Pass | |
13+
| Pinctrl | Pass | |
14+
| Watchdog | Pass | |
15+
| Timer | Pass | |
16+
| PLL clock | Pass | |
17+
| Temperature sensor | Pass | |
18+
| DMA | Pass | |
19+
| PWM | Pass | |
20+
| GMAC | Pass | |
21+
| SDIO / EMMC | Pass | |
22+
| I2C | Pass | |
23+
| SPI | Pass | |
24+
| QSPI | Pass | |
25+
| USB | Pass | |
26+
| PCIe | Pass | Please use a power supply with strong driving capability |
27+
| PMU | Pass | |
28+
| Hibernation | Pass | |
29+
| PMIC | Pass | |
30+
| CPU freq scaling | Pass | |
31+
| Crypto | Fail | Report trace errors at startup |
32+
| TRNG | Pass | |
33+
| PWMDAC | Pass | |
34+
| I2S | Pass | |
35+
| TDM | Pass | |
36+
| HDMI / DC8200 | Pass | But you need to boot Linux with the U-Boot in the mainline |
37+
| MIPI CSI | Pass | |
38+
| ISP | Pass | |
39+
| MIPI CSI PHY | Pass | |
40+
41+
## Build Instructions ##
42+
43+
1. Configure Kconfig options
44+
45+
```shell
46+
# Use the modified riscv default defconfig
47+
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig
48+
```
49+
50+
or
51+
52+
```shell
53+
# Select options manually
54+
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- nconfig
55+
```
56+
57+
To boot up the VisionFive 2 board, please make sure **SOC_STARFIVE**,
58+
**CLK_STARFIVE_JH7110_SYS**, **PINCTRL_STARFIVE_JH7110_SYS**,
59+
**SERIAL_8250_DW** are selected.
60+
> If you need MMC and GMAC drivers, you should also select
61+
**MMC_DW_STARFIVE** and **DWMAC_STARFIVE**.
62+
63+
2. Build
64+
```shell
65+
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-
66+
```
67+
68+
## How to Run on VisionFive 2 Board via Network ##
69+
70+
1. Power on, enter u-boot and set enviroment parameters
71+
```
72+
setenv fdt_high 0xffffffffffffffff; setenv initrd_high 0xffffffffffffffff;
73+
setenv scriptaddr 0x88100000; setenv script_offset_f 0x1fff000; setenv script_size_f 0x1000;
74+
setenv kernel_addr_r 0x84000000; setenv kernel_comp_addr_r 0x90000000; setenv kernel_comp_size 0x10000000;
75+
setenv fdt_addr_r 0x88000000; setenv ramdisk_addr_r 0x88300000;
76+
```
77+
2. Set IP addresses for the board and your tftp server
78+
```
79+
setenv serverip 192.168.w.x; setenv gatewayip 192.168.w.y; setenv ipaddr 192.168.w.z; setenv hostname starfive; setenv netdev eth0;
80+
```
81+
3. Download dtb, image and ramdisk to DDR from your tftp server
82+
```
83+
tftpboot ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb; tftpboot ${kernel_addr_r} Image.gz; tftpboot ${ramdisk_addr_r} initramfs.cpio.gz;
84+
```
85+
> If your VisionFive 2 is v1.2A, you should download jh7110-starfive-visionfive-2-v1.2a.dtb instead.
86+
4. Load and boot the kernel
87+
```
88+
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
89+
```
90+
When you see the message "buildroot login:", the launch was successful.
91+
You can just input the following accout and password, then continue.
92+
```
93+
buildroot login: root
94+
Password: starfive
95+
```

0 commit comments

Comments
 (0)