v2024.07-rc4 issues on VisionFive v2

Heinrich Schuchardt xypron.glpk at gmx.de
Fri Jun 14 17:36:16 CEST 2024


On 14.06.24 13:14, Conor Dooley wrote:
> Hey,
>
> After going from Vendor SPL/OpenSBI/U-Boot to OpenSBI v1.4++ plus
> v2024.07-rc4 SPL/U-Boot I ran into a boot loop problem relating to
> PCI:
> 	U-Boot 2024.07-rc4 (Jun 13 2024 - 15:09:34 +0100)
>
> 	CPU:   sifive,u74-mc
> 	Model: StarFive VisionFive 2 v1.2A
> 	DRAM:  4 GiB
> 	Core:  136 devices, 26 uclasses, devicetree: board
> 	WDT:   Not starting watchdog at 13070000
> 	MMC:   mmc at 16010000: 0, mmc at 16020000: 1
> 	Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
> 	OK
> 	StarFive EEPROM format v2
>
> 	--------EEPROM INFO--------
> 	Vendor : StarFive Technology Co., Ltd.
> 	Product full SN: VF7110A1-2249-D004E000-00000540
> 	data version: 0x2
> 	PCB revision: 0xa1
> 	BOM revision: A
> 	Ethernet MAC0 address: 6c:cf:39:00:17:95
> 	Ethernet MAC1 address: 6c:cf:39:00:17:96
> 	--------EEPROM INFO--------
>
> 	starfive_7110_pcie pcie at 2b000000: Starfive PCIe bus probed.
> 	starfive_7110_pcie pcie at 2c000000: Starfive PCIe bus probed.
> 	In:    serial at 10000000
> 	Out:   serial at 10000000
> 	Err:   serial at 10000000
> 	Net:   eth0: ethernet at 16030000, eth1: ethernet at 16040000
> 	starting USB...
> 	Bus xhci_pci: Register 5000420 NbrPorts 5
> 	Starting the controller
> 	USB XHCI 1.00
> 	scanning bus xhci_pci for devices...
> 	U-Boot SPL 2024.07-rc4 (Jun 13 2024 - 15:09:34 +0100)
> 	DDR version: dc2e84f0.
> 	Trying to boot from SPI
>
> This only appeared after I refreshed the environment by running.
> `env default -a -f; env save`. Before that things worked "fine", I
> suppose because nothing actually touched PCI. I've just disabled
> PCI for now and things are working once more. I've not attempted
> to bisect/debug this, cos that's not the fastest process while
> running U-Boot out of flash.

You could boot from SD-card to read the SPI flash and checksum it.

>
> In case it is relevant, the board I have is one of the "super early
> bird" ones.
>
> Cheers,
> Conor.

I am not able to reproduce this on my v1.2A board. (1.2B according to
silk screen).

starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
        scanning usb for storage devices... 0 Storage Device(s) found

StarFive # usb tree
USB device tree:
   1  Hub (5 Gb/s, 0mA)
   |  U-Boot XHCI Host Controller
   |
   +-2  Hub (480 Mb/s, 100mA)
         USB2.0 Hub

StarFive # pci
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x1556     0x1111     Bridge device           0x04
01.00.00   0x1106     0x3483     Serial bus controller   0x03
02.00.00   0x1556     0x1111     Bridge device           0x04
03.00.00   0x15b7     0x5009     Mass storage controller 0x08

I tested both with and without NVMe drive while booting from SD-card.

Best regards

Heinrich


More information about the U-Boot mailing list