starfive-tech / VisionFive2

445 stars 79 forks source link

Unable to upload recovery bootloader #42

Closed matsbror closed 1 year ago

matsbror commented 1 year ago

One of the cards I have won’t boot so I thought I should flash the bootloader reovery over UART. I set the dip switches so I get the CCCCC on the serial port as per the instructions. I use minicom to transfer the recovery file which is initiated correctly but I get a CRC Error and then the CCCC continues. Any help is appreciated.

MichaelZhuxx commented 1 year ago

maybe this link https://github.com/starfive-tech/Tools/issues/3 will help on this

matsbror commented 1 year ago

Thanks, I tried this once, but here are more details and I will try it.

matsbror commented 1 year ago

It's stuck int Waiting for bootloader mode on /dev/ttyUSB0...

matsbror commented 1 year ago

I switched to the vf2 branch and now this happened:

mats@ubuntu-Latitude-9510:~/riscv-debian-images$ sudo ./vf2-recover -D /dev/ttyUSB0 -r jh7110-recovery-20230322.bin 
Waiting for bootloader mode on /dev/ttyUSB0...
CCCCCCCCC
Bootloader mode active

Uploading recovery binary...
    Waiting for XMODEM request[C]...
    Sending jh7110-recovery-20230322.bin 
[########################################] 100%  173118/173118 Bytes
CRC Error, Try again
matsbror commented 1 year ago

I still am not able to use the recovery image over the serial port but I managed to flash a new bootloader through booting from QSPI.

MichaelZhuxx commented 1 year ago

please refer to this guide https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/recovering_bootloader%20-%20vf2.html