Which u-Boot / SPL firmware to be used?

As I read the info below, I have

OpenSBI VF2_515_v3.1.5_IMG1.19 and U-Boot 2021.10-dirty.

I have downloaded the 202306 and flashed as well SD-Card, using the sd image and the nvme ssd, using the NVMe image.

Boot from SSD works. and can see the NVMe SSD. no boot from NVMe. the info on Release VisionFive2 Software v3.4.5 · starfive-tech/VisionFive2 · GitHub states:
Please do not upgrade u-boot/spl for 8GB DDR VisionFive2 since CMA will not allocated successfully under Debian image 202306;

So which u-boot/spl to be flased ?

dwmci_s: Response Timeout.

U-Boot SPL 2021.10-dirty (Jun 11 2023 - 07:44:44 +0000)
DDR version: dc2e84f0.
Trying to boot from MMC2

OpenSBI VF2_515_v3.1.5_IMG1.19
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|___/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Platform Suspend Device   : ---
Firmware Base             : 0x40000000
Firmware Size             : 392 KB
Firmware RW Offset        : 0x40000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region01          : 0x0000000040000000-0x000000004003ffff M: (R,X) S/U: ()
Domain0 Region02          : 0x0000000040040000-0x000000004007ffff M: (R,W) S/U: ()
Domain0 Region03          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes
Domain0 SysSuspend        : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10-dirty (Jun 11 2023 - 07:44:44 +0000), Build: jenkins-VisionFive2-SDK-Components-135

CPU:   rv64imacu_zba_zbb
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110A1-####-########-########
data version: 0x2
PCB revision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:..:..:..
Ethernet MAC1 address: 6c:cf:39:..:..:..
--------EEPROM INFO--------

In:    serial
Out:   serial
Err:   serial
Model: StarFive VisionFive V2
Error: 1 bit/pixel mode, but BMP has 24 bit/pixel
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
bootmode sd device 1/0

If you wanna use 202306, you can flash u-boot and spl from Release VisionFive2 Software v3.1.5 · starfive-tech/VisionFive2 · GitHub

3 Likes

thank you so much.

however, it is hard to finding the matching u-boot and spl files - the matching ones should be with the downloads of the releases

flashed with 3.1.5, rebooted, jumpered to 0-0 – now booting off NVMe SSD

thanks a lot for your help

2 Likes