USB is not working in U-BOOT

I met a problem with USB BOOT in U-BOOT. The screenshot shows that even according to the default defconfig, USB storages should work correctly on the board. USB SCAN shows that it sees keyboards and mice, but USB STORAGE DEVICE is always 0. I have a flash drive with a power diode and I see that it is not even powered. In Linux, all flash drives are visible. Tried different flash drives. It is in u-boot that flash drives do not work and I cannot understand why. I need USB BOOT and now I can’t figure out how to provide it?
!(file:///home/firefly/Pictures/Screenshot%20from%202022-08-23%2011-07-49.png)

Please, help us - I tried everything I could - USB is not working in u-boot completely. 3 devices that it found with USB start command - is not my devices. U-BOOT cannot find no one USB device.

Hi, You mean USB SCAN cannot find no one USB storage device?

=> usb stop
stopping USB..
=> usb start
starting USB...
Bus usb@fc000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fc800000: USB EHCI 1.00
Bus usb@fc840000: USB OHCI 1.0
Bus usb@fc880000: USB EHCI 1.00
Bus usb@fc8c0000: USB OHCI 1.0
Bus usb@fc400000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fc000000 for devices... 1 USB Device(s) found
scanning bus usb@fc800000 for devices... GUID Partition Table Header signature is wrong: 0x988200009881 != 0x5452415020494645
2 USB Device(s) found
scanning bus usb@fc840000 for devices... 1 USB Device(s) found
scanning bus usb@fc880000 for devices... WARN: interface 0 has 2 endpoint descriptor, different from the interface descriptor's value: 1
2 USB Device(s) found
scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
scanning bus usb@fc400000 for devices... WARN: interface 0 has 2 endpoint descriptor, different from the interface descriptor's value: 1
5 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=>
=> usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
     U-Boot XHCI Host Controller

  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Mass Storage (480 Mb/s, 100mA)
       AI210 Mass Storage

  1  Hub (12 Mb/s, 0mA)
      U-Boot Root Hub

  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
        USB 2.0 Hub [MTT]

  1  Hub (12 Mb/s, 0mA)
      U-Boot Root Hub

  1  Hub (5 Gb/s, 0mA)
  |  U-Boot XHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 0mA)
  | |  GenesysLogic USB2.1 Hub
  | |
  | +-4  Human Interface (1.5 Mb/s, 100mA)
  | |      USB Keyboard
  | |
  | +-5  Human Interface (1.5 Mb/s, 100mA)
  |      PixArt USB Optical Mouse
  |
  +-3  Hub (5 Gb/s, 0mA)
       GenesysLogic USB3.2 Hub

=>

Hmm, strange. On my board USB cannot find anything - no one device.
I’ll try on SDK 1.0.1b, but is not compiling because of u-boot sector exceed approved size. I can fix it with defconfig and parameter.txt fixing but i afraid that it could brake some needed hardcoded addresses - that is why I only talk it to you.
I tried to fix it in my SDK but meet another problem - if I flash only u-boot on my sdcard - there is no one SCAN is working. And I can’t find why? Maybe there is something needed for u-boot but missing in u-boot partition?
What should I flash on sdcard to get full working u-boot?

I tried to flash MISC too but it was not helped…

how to flash u-boot on my sdcard? use rockusb cmd?

your sdcard

No, I’m using dd :slight_smile:

And I can’t understand where should I provide DTB for u-boot to see it

dd?I have not tried this method, generally I use “rockusb 0 mmc 0”, and then use linux upgrade_tool to flash uboot.img.

Thank you - I will try!

Can you tell me, do rockusb upgrade only emmc, or I can use it to upgrade u-boot in SD card too?
On my plate now I must not touch EMMC, because of production is here… I afraid to brake it… Linux upgrade tool docs are in Chinese and I can’t read this.

We clearly see that there is no power to devices connected via USB, and if you power the USB device from the outside, it is seen in U-BOOT. In Linux power works fine. Tested on revision boards 1.0 and 1.1 and on different versions of SDK - 1.0.0 and 1.0.1.

NVME is not working in U-BOOT too (n o power. I tried to compare linux DTS and u-boot DTS and found that there is no powers applied for USB or NVME. Now I try to enable power due to kernel DTS, but it is not working now

Die Prüfungsunterlagen zur Juniper JN0-460 Zertifizierungsprüfung von Zertpruefung werden von der Praxis überprüft. Wir können breite Erforschungen sowie Erfahrungen in der realen Welt bieten. Unser Zertpruefung hat mehr als zehnjährige Erfahrungen über Ausbildung, und zwar Fragen und Antworten zur Juniper JN0-460 Zertifizierungsprüfung. Die Fragenkataloge zur JN0-460 Zertifizierungsprüfung von Zertpruefung sind die besten Schulungsunterlagen. Wir bieten Ihnen die umfassendesten Zertifizierungsfragen und Antworten und einen einjährigen kostenlosen Update-Service.

It really broadened my horizons. Strengthen your IT expertise with free Reliable Practical-Applications-of-Prompt test answers. Best of luck in your exams!

This article is wonderfully written, and I’ve learned many useful techniques from it. The Latest CIPP-E exam online exam is right around the corner. Wish me luck!