All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] Broken USB on StarFive VisionFive 2
@ 2025-11-17 13:59 Heinrich Schuchardt
  2025-11-17 16:29 ` E Shattow
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2025-11-17 13:59 UTC (permalink / raw)
  To: Hal Feng, Minda Chen; +Cc: E Shattow, Marek Vasut, U-Boot Mailing List

Hello Hal, hello Minda,

USB on the StarFive VisionFive 2 is somehow broken.

The `usb start` via preboot results in an error.
When I stop and restart USB it works.

I am on origin/master (v2026.01-rc2-41-g69cc92d6869).

I have a single USB stick plugged in. I tried with different devices.

Best regards

Heinrich


starting USB...
Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
Adding block device usb_mass_storage.lun0 failed, r = 20
Bus xhci_pci: 3 USB Device(s) found
        scanning usb for storage devices... 2 Storage Device(s) found
Working FDT set to ff718640
Hit any key to stop autoboot: 0
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
     |
     +-3  Mass Storage (480 Mb/s, 224mA)
          SanDisk Cruzer Fit 4C530102811224103381

StarFive # part list usb 0

Partition Map for usb device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
   1     64              4802720         00000000-01     cd
   2     4802784         14112           00000000-02     ef Boot
   3     4816896         56672256        00000000-03     83
StarFive # ls usb 0:2
WARN endpoint is halted
WARN endpoint is halted
Resetting EP 3...
WARN endpoint is halted
WARN endpoint is halted
WARN endpoint is halted
Resetting EP 3...
WARN endpoint is halted
WARN endpoint is halted
WARN endpoint is halted
Resetting EP 3...
WARN endpoint is halted
WARN endpoint is halted
WARN endpoint is halted
Resetting EP 3...
WARN endpoint is halted
WARN endpoint is halted
WARN endpoint is halted
Resetting EP 3...
WARN endpoint is halted
WARN endpoint is halted
WARN endpoint is halted

0 file(s), 0 dir(s)

StarFive # usb stop
stopping USB..
StarFive # usb start
starting USB...
Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
Bus xhci_pci: 3 USB Device(s) found
        scanning usb for storage devices... 1 Storage Device(s) found
StarFive # ls usb 0:2
             EFI/

0 file(s), 1 dir(s)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Broken USB on StarFive VisionFive 2
  2025-11-17 13:59 [BUG] Broken USB on StarFive VisionFive 2 Heinrich Schuchardt
@ 2025-11-17 16:29 ` E Shattow
  2025-11-18 13:39   ` Heinrich Schuchardt
  0 siblings, 1 reply; 3+ messages in thread
From: E Shattow @ 2025-11-17 16:29 UTC (permalink / raw)
  To: Heinrich Schuchardt, Hal Feng, Minda Chen
  Cc: E Shattow, Marek Vasut, U-Boot Mailing List


On 11/17/25 05:59, Heinrich Schuchardt wrote:
> Hello Hal, hello Minda,
> 
> USB on the StarFive VisionFive 2 is somehow broken.
> 
> The `usb start` via preboot results in an error.
> When I stop and restart USB it works.
> 
> I am on origin/master (v2026.01-rc2-41-g69cc92d6869).
> 
> I have a single USB stick plugged in. I tried with different devices.
> 
> Best regards
> 
> Heinrich
> 
> 
> starting USB...
> Register 5000420 NbrPorts 5
> Starting the controller
> USB XHCI 1.00
> Adding block device usb_mass_storage.lun0 failed, r = 20
> Bus xhci_pci: 3 USB Device(s) found
>        scanning usb for storage devices... 2 Storage Device(s) found
> Working FDT set to ff718640
> Hit any key to stop autoboot: 0
> 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
>     |
>     +-3  Mass Storage (480 Mb/s, 224mA)
>          SanDisk Cruzer Fit 4C530102811224103381
> 
> StarFive # part list usb 0
> 
> Partition Map for usb device 0  --   Partition Type: DOS
> 
> Part    Start Sector    Num Sectors     UUID            Type
>   1     64              4802720         00000000-01     cd
>   2     4802784         14112           00000000-02     ef Boot
>   3     4816896         56672256        00000000-03     83
> StarFive # ls usb 0:2
> WARN endpoint is halted
> WARN endpoint is halted
> Resetting EP 3...
> WARN endpoint is halted
> WARN endpoint is halted
> WARN endpoint is halted
> Resetting EP 3...
> WARN endpoint is halted
> WARN endpoint is halted
> WARN endpoint is halted
> Resetting EP 3...
> WARN endpoint is halted
> WARN endpoint is halted
> WARN endpoint is halted
> Resetting EP 3...
> WARN endpoint is halted
> WARN endpoint is halted
> WARN endpoint is halted
> Resetting EP 3...
> WARN endpoint is halted
> WARN endpoint is halted
> WARN endpoint is halted
> 
> 0 file(s), 0 dir(s)
> 
> StarFive # usb stop
> stopping USB..
> StarFive # usb start
> starting USB...
> Register 5000420 NbrPorts 5
> Starting the controller
> USB XHCI 1.00
> Bus xhci_pci: 3 USB Device(s) found
>        scanning usb for storage devices... 1 Storage Device(s) found
> StarFive # ls usb 0:2
>             EFI/
> 
> 0 file(s), 1 dir(s)
> 
> 

Is there a different outcome with v2025.01 ? If yes, are you able to git
bisect?

-E

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Broken USB on StarFive VisionFive 2
  2025-11-17 16:29 ` E Shattow
@ 2025-11-18 13:39   ` Heinrich Schuchardt
  0 siblings, 0 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2025-11-18 13:39 UTC (permalink / raw)
  To: E Shattow, Hal Feng, Minda Chen; +Cc: Marek Vasut, U-Boot Mailing List

On 11/17/25 17:29, E Shattow wrote:
> 
> On 11/17/25 05:59, Heinrich Schuchardt wrote:
>> Hello Hal, hello Minda,
>>
>> USB on the StarFive VisionFive 2 is somehow broken.
>>
>> The `usb start` via preboot results in an error.
>> When I stop and restart USB it works.
>>
>> I am on origin/master (v2026.01-rc2-41-g69cc92d6869).
>>
>> I have a single USB stick plugged in. I tried with different devices.
>>
>> Best regards
>>
>> Heinrich
>>
>>
>> starting USB...
>> Register 5000420 NbrPorts 5
>> Starting the controller
>> USB XHCI 1.00
>> Adding block device usb_mass_storage.lun0 failed, r = 20
>> Bus xhci_pci: 3 USB Device(s) found
>>         scanning usb for storage devices... 2 Storage Device(s) found
>> Working FDT set to ff718640
>> Hit any key to stop autoboot: 0
>> 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
>>      |
>>      +-3  Mass Storage (480 Mb/s, 224mA)
>>           SanDisk Cruzer Fit 4C530102811224103381
>>
>> StarFive # part list usb 0
>>
>> Partition Map for usb device 0  --   Partition Type: DOS
>>
>> Part    Start Sector    Num Sectors     UUID            Type
>>    1     64              4802720         00000000-01     cd
>>    2     4802784         14112           00000000-02     ef Boot
>>    3     4816896         56672256        00000000-03     83
>> StarFive # ls usb 0:2
>> WARN endpoint is halted
>> WARN endpoint is halted
>> Resetting EP 3...
>> WARN endpoint is halted
>> WARN endpoint is halted
>> WARN endpoint is halted
>> Resetting EP 3...
>> WARN endpoint is halted
>> WARN endpoint is halted
>> WARN endpoint is halted
>> Resetting EP 3...
>> WARN endpoint is halted
>> WARN endpoint is halted
>> WARN endpoint is halted
>> Resetting EP 3...
>> WARN endpoint is halted
>> WARN endpoint is halted
>> WARN endpoint is halted
>> Resetting EP 3...
>> WARN endpoint is halted
>> WARN endpoint is halted
>> WARN endpoint is halted
>>
>> 0 file(s), 0 dir(s)
>>
>> StarFive # usb stop
>> stopping USB..
>> StarFive # usb start
>> starting USB...
>> Register 5000420 NbrPorts 5
>> Starting the controller
>> USB XHCI 1.00
>> Bus xhci_pci: 3 USB Device(s) found
>>         scanning usb for storage devices... 1 Storage Device(s) found
>> StarFive # ls usb 0:2
>>              EFI/
>>
>> 0 file(s), 1 dir(s)
>>
>>
> 
> Is there a different outcome with v2025.01 ? If yes, are you able to git
> bisect?
> 
> -E

I see the same behavior on U-Boot 2025.01.

The issue only occurs on my VisionFive 2 boards and not on any other 
JH7110 boards (Star64, Mars, Mars CM, VisionFive 2 Lite).

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-18 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 13:59 [BUG] Broken USB on StarFive VisionFive 2 Heinrich Schuchardt
2025-11-17 16:29 ` E Shattow
2025-11-18 13:39   ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.