Forum Discussion
25.3 PRO Release
Hi Arun,
USB3.1 in Host mode is enabled by default in Agilex 5, including 25.1.
The workaround in USB 3.1 Gen-1 Controller Tutorial Example Design User Guide is mainly to enable the Device mode (a change from the Host mode), using 25.1.1.
May I know how you see the device being detected as USB2.0?
Hi Team
I’ve updated our log, node, and kernel config files below. Please let us know if we’re missing anything
we are using
HP x796w USB 3.2 Flash Drive-Pendrive
Striff USB to Type C Connector
- whitepau_altera9 months ago
Contributor
Hello Arun, thanks for sharing.
I suspect the problem is your USB to Type C connector; those adapters can sometimes silently downgrade USB speeds. I tested using a USB mass storage device that has both a USB-A and a USB-C port, and I verified USB SS speeds using CrystalDiskMark and fio.
PNY DUO LINK V3 USB 3.2 Gen 2 Dual Flash Drive
I've attached the logs I see when I attach this USB Stick:root@agilex5e:~# dmesg | grep USB [ 1.480973] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 1.510119] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 1.517753] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.1 Enhanced SuperSpeed [ 1.525956] hub 1-0:1.0: USB hub found [ 1.542405] hub 2-0:1.0: USB hub found [ 4.732358] usbhid: USB HID core driver [ 37.071576] usb 1-1: new high-speed USB device number 2 using xhci-hcd [ 37.446512] usb-storage 1-1:1.0: USB Mass Storage device detected [ 38.497114] scsi 0:0:0:0: Direct-Access PNY USB 3.2.2 FD PMAP PQ: 0 ANSI: 6During U-Boot:
SOCFPGA_AGILEX5 # usb start starting USB... Bus usb@10b00000: Port not available. Bus usb31@11000000: probe failed, error -110 No USB controllers found scanning usb for storage devices... 0 Storage Device(s) found SOCFPGA_AGILEX5 #Please note that I built this Linux image using the newer GSRD 2.0 (tested with Quartus® Prime 25.3), which uses Kas to manage Yocto layers, but the Linux configurations should be the same as the 'classic' GSRD.
Rebuilding GSRD 2.0 Binaries- Arun_Prabakatr9 months ago
New Contributor
Hello Team
We have tested this on other iMX boards where USB 3.0 detection works as expected.Also we have validated with other pendrives we have still it detects as 2.0 Now I need to validate USB host mass storage on QPD25.1. - Arun_Prabakatr9 months ago
New Contributor
Hi White
I am also getting those prints print QPD25.1 But stillbut while testing the version it detects as 2.0 all time
- whitepau_altera9 months ago
Contributor
Hi Arun,
There is a utility called `lsusb` that you can add to your Yocto image. Add the following IMAGE_INSTALL line to gsrd-socfpga/agilex5_dk_a5e065bb32aes1-gsrd-rootfs/conf/local.conf:
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # track the version of this file when it was generated. This can safely be ignored if # this doesn't mean anything to you. CONF_VERSION = "2" # support lsusb IMAGE_INSTALL:append = " usbutils"Then rebuilt your SD card image with
bitbake gsrd-console-imageThe output I see when the PNY USB stick I linked above is plugged in:
root@agilex5dka5e065bb32aes1:~# lsusb --tree /: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M /: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 10000M |__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 5000M root@agilex5dka5e065bb32aes1:~#This shows that there are 2 USB hosts, and that bus 2 is the USB 3 host. If you poll the devices and look at usb2 instead of usb1, we see USB 3 compatibility.
root@agilex5dka5e065bb32aes1:~# cat /sys/devices/platform/soc\@0/11000000.usb1/xhci-hcd.0.auto/usb2/2-1/version 3.20