|
| 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 | +## Build Instructions ## |
| 9 | + |
| 10 | +1. Configure Kconfig options |
| 11 | + |
| 12 | +```shell |
| 13 | +# Use default selections |
| 14 | +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig |
| 15 | +``` |
| 16 | + |
| 17 | +or |
| 18 | + |
| 19 | +```shell |
| 20 | +# Select options manually |
| 21 | +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- nconfig |
| 22 | +``` |
| 23 | + |
| 24 | +To boot up the VisionFive 2 board, please make sure **SOC_STARFIVE**, |
| 25 | +**CLK_STARFIVE_JH7110_SYS**, **PINCTRL_STARFIVE_JH7110_SYS**, |
| 26 | +**SERIAL_8250_DW** are selected. |
| 27 | +> If you need MMC and GMAC drivers, you should also select |
| 28 | +**MMC_DW_STARFIVE** and **DWMAC_STARFIVE**. |
| 29 | + |
| 30 | +2. Build |
| 31 | +```shell |
| 32 | +make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- |
| 33 | +``` |
| 34 | + |
| 35 | +## How to Run on VisionFive 2 Board via Network ## |
| 36 | + |
| 37 | +1. Power on, enter u-boot and set enviroment parameters |
| 38 | +``` |
| 39 | +setenv fdt_high 0xffffffffffffffff; setenv initrd_high 0xffffffffffffffff; |
| 40 | +setenv scriptaddr 0x88100000; setenv script_offset_f 0x1fff000; setenv script_size_f 0x1000; |
| 41 | +setenv kernel_addr_r 0x84000000; setenv kernel_comp_addr_r 0x90000000; setenv kernel_comp_size 0x10000000; |
| 42 | +setenv fdt_addr_r 0x88000000; setenv ramdisk_addr_r 0x88300000; |
| 43 | +``` |
| 44 | +2. Set IP addresses for the board and your tftp server |
| 45 | +``` |
| 46 | +setenv serverip 192.168.w.x; setenv gatewayip 192.168.w.y; setenv ipaddr 192.168.w.z; setenv hostname starfive; setenv netdev eth0; |
| 47 | +``` |
| 48 | +3. Upload dtb, image and file system to DDR from your tftp server |
| 49 | +``` |
| 50 | +tftpboot ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb; tftpboot ${kernel_addr_r} Image.gz; tftpboot ${ramdisk_addr_r} initramfs.cpio.gz; |
| 51 | +``` |
| 52 | +> If your VisionFive 2 is v1.2A, you should upload jh7110-starfive-visionfive-2-v1.2a.dtb instead. |
| 53 | +4. Load and boot the kernel |
| 54 | +``` |
| 55 | +booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}; |
| 56 | +``` |
| 57 | +When you see the message "buildroot login:", the launch was successful. |
| 58 | +You can just input the following accout and password, then continue. |
| 59 | +``` |
| 60 | +buildroot login: root |
| 61 | +Password: starfive |
| 62 | +``` |
0 commit comments