I’ve got my VisionFive V2 today and I’m unable to boot into any image.
The first thing I did was update U-Boot and SPL to 2.11.5 (Release VisionFive2 Software v2.11.5 · starfive-tech/VisionFive2 · GitHub)
I have connected a UART adapter.
On boot, I am greeted by
U-Boot SPL 2021.10 (Mar 24 2023 - 01:42:56 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
OpenSBI v1.2
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|___/_____|
| |
|_|
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 (Mar 24 2023 - 01:42:56 +0800), Build: jenkins-github_visionfive2-13
CPU: rv64imacu
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: VF7110B1-2253-D008E000-00006069
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:62:66
Ethernet MAC1 address: 6c:cf:39:00:62:69
--------EEPROM INFO--------
I’ve tried to use:
- An SD Card
- The EMMC module
- The EMMC module, on the SD-card adapter
Whenever I try to use either of those with any of the images:
- ArchLinux-VF2_5.15.2_v2.11.5-cwt12.img
- Armbian_23.5.0-trunk.123_Visionfive2_sid_edge_5.15.0.img
- starfive-jh7110-VF2-SD-wayland.img (March 2023)
In either SDIO
or MMC
boot modes, I always get
dwmci_s: Response Timeout.
BOOT fail,Error is 0xffffffff
When using Flash
boot mode, I get a set of errors, depending on which image I use:
Debian
--------EEPROM INFO--------
In: serial
Out: serial
Err: serial
Model: StarFive VisionFive V2
Net: eth0: ethernet@16030000, eth1: ethernet@16040000
switch to partitions #0, OK
mmc1(part 0) is current device
found device 1
bootmode flash device 1
385 bytes read in 4 ms (93.8 KiB/s)
Importing environment from mmc1 ...
Can't set block device
Hit any key to stop autoboot: 0
48366 bytes read in 7 ms (6.6 MiB/s)
fdt_find_or_add_subnode: memory: FDT_ERR_BADSTRUCTURE
libfdt fdt_setprop(): FDT_ERR_NOSPACE
48366 bytes written in 8 ms (5.8 MiB/s)
Retrieving file: /extlinux/extlinux.conf
830 bytes read in 6 ms (134.8 KiB/s)
U-Boot menu
1: Debian GNU/Linux bookworm/sid 5.15.0-starfive
2: Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1: Debian GNU/Linux bookworm/sid 5.15.0-starfive
Retrieving file: /initrd.img-5.15.0-starfive
Invalid FAT entry
** Unable to read file /initrd.img-5.15.0-starfive **
Failed to load '/initrd.img-5.15.0-starfive'
Skipping l0 for failure retrieving initrd
2: Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Retrieving file: /initrd.img-5.15.0-starfive
Invalid FAT entry
** Unable to read file /initrd.img-5.15.0-starfive **
Failed to load '/initrd.img-5.15.0-starfive'
(Invalid FAT entry
)
Arch
--------EEPROM INFO--------
In: serial
Out: serial
Err: serial
Model: StarFive VisionFive V2
Net: eth0: ethernet@16030000, eth1: ethernet@16040000
switch to partitions #0, OK
mmc1(part 0) is current device
found device 1
bootmode flash device 1
406 bytes read in 5 ms (79.1 KiB/s)
Importing environment from mmc1 ...
Can't set block device
Hit any key to stop autoboot: 0
406 bytes read in 5 ms (79.1 KiB/s)
## Warning: defaulting to text format
48450 bytes read in 8 ms (5.8 MiB/s)
fdt_find_or_add_subnode: memory: FDT_ERR_BADSTRUCTURE
libfdt fdt_setprop(): FDT_ERR_NOSPACE
48450 bytes written in 8 ms (5.8 MiB/s)
Retrieving file: /extlinux/extlinux.conf
964 bytes read in 6 ms (156.3 KiB/s)
U-Boot menu
1: Arch Linux Minimal 5.15.2-cwt12
2: Arch Linux Minimal 5.15.2-cwt12 (Single User)
Enter choice: 1: Arch Linux Minimal 5.15.2-cwt12
Retrieving file: /initrd.img-5.15.2-cwt12
9529238 bytes read in 17 ms (534.6 MiB/s)
Retrieving file: /vmlinuz-5.15.2-cwt12
Invalid FAT entry
** Unable to read file /vmlinuz-5.15.2-cwt12 **
Failed to load '/vmlinuz-5.15.2-cwt12'
Skipping Arch-minimal for failure retrieving kernel
2: Arch Linux Minimal 5.15.2-cwt12 (Single User)
Retrieving file: /initrd.img-5.15.2-cwt12
9529238 bytes read in 17 ms (534.6 MiB/s)
Retrieving file: /vmlinuz-5.15.2-cwt12
10564653 bytes read in 23 ms (438.1 MiB/s)
append: root=/dev/mmcblk1p4 rw console=tty1 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0 rootflags=defaults,discard=async,coe
Retrieving file: /dtbs/starfive/jh7110-visionfive-v2.dtb
48450 bytes read in 10 ms (4.6 MiB/s)
Uncompressing Kernel Image
Error: inflate() returned -3
(Error: inflate() returned -3
)
This is how I initially updated U-Boot and SPL:
StarFive # tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out
Using ethernet@16030000 device
TFTP from server 192.168.2.101; our IP address is 192.168.2.222
Filename 'u-boot-spl.bin.normal.out'.
Load address: 0xa0000000
Loading: ##########
10.5 MiB/s
done
Bytes transferred = 132208 (20470 hex)
StarFive # sf update 0xa0000000 0x0 $filesize
device 0 offset 0x0, size 0x20470
132208 bytes written, 0 bytes skipped in 0.790s, speed 170720 B/s
StarFive # tftpboot 0xa0000000 ${serverip}:visionfive2_fw_payload.img
Using ethernet@16030000 device
TFTP from server 192.168.2.101; our IP address is 192.168.2.222
Filename 'visionfive2_fw_payload.img'.
Load address: 0xa0000000
Loading: #################################################################
#################################################################
#################################################################
#######
11.6 MiB/s
done
Bytes transferred = 2955397 (2d1885 hex)
StarFive # sf update 0xa0000000 0x100000 $filesize
device 0 offset 0x100000, size 0x2d1885
1042565 bytes written, 1912832 bytes skipped in 9.82s, speed 333075 B/s