I recently got a VisionFive2 board and tried to install the latest debian build (202306). I am using Ubuntu 23.04 as my desktop. I flashed it to a microsd card.
I am able to boot from the SD card in SDIO mode only. Is it because this image has OpenSBI + UBoot+Linux? In QSPI mode I am unable to boot with this image.
I tried updating both SBI and UBoot with TFTP server approach
===
tarFive # sf probe
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
StarFive # tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
Using ethernet@16040000 device
TFTP from server 10.0.0.138; our IP address is 10.0.0.132
Filename ‘u-boot-spl.bin.normal.out’.
Load address: 0xa0000000
Loading: ##########
4.5 MiB/s
done
Bytes transferred = 132368 (20510 hex)
StarFive # sf update 0xa0000000 0x0 $filesize
device 0 offset 0x0, size 0x20510
0 bytes written, 132368 bytes skipped in 0.23s, speed 5213262 B/s
StarFive # tftpboot 0xa0000000 ${serverip}:visionfive2_fw_payload.img
Using ethernet@16040000 device
TFTP from server 10.0.0.138; our IP address is 10.0.0.132
Filename ‘visionfive2_fw_payload.img’.
Load address: 0xa0000000
Loading: #################################################################
#################################################################
#################################################################
#######
8.8 MiB/s
done
Bytes transferred = 2956613 (2d1d45 hex)
StarFive # sf update 0xa0000000 0x100000 $filesize
device 0 offset 0x100000, size 0x2d1d45
Updating, 21% 6063053 B/s Updating, 41% 5983051 B/s Updating, 61% 5956731 B/s Updating, 81% 5943635 B/s0 bytes written, 2956613 bytes skipped in 0.510s, speed 5901699 B/s
And still the same result. I am curious about the bytes skipped message in the output. Not sure if it got really updated or not.
But for now I am using the SDIO mode to boot. Is there a way to fix the QSPI mode to work?
Thanks
Venkat