No Description

Domenico Andreoli e17302063c Use the common CROSS_COMPILE variable 1 year ago
boot aa05f81d2f Fix indentation 2 years ago
build e17302063c Use the common CROSS_COMPILE variable 1 year ago
common 048f63f3e8 add SPDX license header to all the files with StarFive copyright 2 years ago
spi 0b86f96e75 Support GD28LQ128 QSPI flash 2 years ago
timer 048f63f3e8 add SPDX license header to all the files with StarFive copyright 2 years ago
uart 048f63f3e8 add SPDX license header to all the files with StarFive copyright 2 years ago
LICENSE 9c309618dd Create LICENSE 2 years ago
README.md f93f109c75 Update README.md 2 years ago

README.md

Cross Compile

Download compiler according to your enviroment as the below link:

https://github.com/sifive/freedom-tools/releases/tag/v2020.12.0

Add the compiler to your PATH:

export PATH=/home/user/compiler/bin:$PATH

Build

Enter the build directory, generate the bootloader-JH7100-xxxxxx.bin.out file after make

Upgrade

Follow the instruction as the below steps to update the secondboot

Step 1: After the hardware connections(power and serial port), power on the StarLight / VisionFive and you will see the startup information as follows.

bootloader version:211102-0b86f96
ddr 0x00000000, 1M test
ddr 0x00100000, 2M test
DDR clk 2133M,Version: 211102-d086aee
2

Step 2: Press any key as soon as it starts up to enter the upgrade menu. In this menu, you can only update u-boot.

bootloader version:211102-0b86f96
ddr 0x00000000, 1M test
ddr 0x00100000, 2M test
DDR clk 2133M,Version: 211102-d086aee
0
***************************************************
*************** FLASH PROGRAMMING *****************
***************************************************
0:update uboot
1:quit
select the function:

Step 3: Type root@s5t and press Enter to enter the extended version of the upgrade menu. In this menu, you can update u-boot, secondboot and ddrinit.

***************************************************
*************** FLASH PROGRAMMING *****************
***************************************************
0:update uboot
1:quit
select the function: root@s5t
0:update second boot
1:update ddr init boot
2:update uboot
3:quit
select the function:

Step 4: Type 0 and press Enter to update the secondboot. Step 5: Navigate to File > Transfer > XMODEM > Send… and choose the bootloader-xxxx-xxxx.bin.out.