yangsong8-a1 opened a new pull request, #17460:
URL: https://github.com/apache/nuttx/pull/17460

   
   ## Summary
   
   usbhost supports USB 3.0 device descriptors.
   
   ## Impact
   
   usbhost can analyze usb 3.0 device descriptors.
   
   ## Testing
   
   Recognize USB 3.0 flash drives
   host: ubuntu 22.04.1
   target:  qemu
   
   QEMU acts as a USB host, enabling USB host, XHCI, and MSC.
   ```
   // configuration
   CONFIG_DEVICE_TREE=y
   CONFIG_PCI=y
   CONFIG_PCI_MSIX=y
   CONFIG_ARMV7A_GICv2M=y
   CONFIG_USBHOST=y
   CONFIG_USBHOST_WAITER=y
   CONFIG_USBHOST_XHCI_PCI=y
   CONFIG_USBHOST_CDCACM=y
   CONFIG_USBHOST_HIDKBD=y
   CONFIG_USBHOST_HIDMOUSE=y
   CONFIG_USBHOST_MSC=y 
   CONFIG_FS_FAT=y
   
   // optional
   CONFIG_DEBUG_PCI=y
   CONFIG_DEBUG_PCI_ERROR=y
   CONFIG_DEBUG_PCI_INFO=y
   CONFIG_DEBUG_PCI_WARN=y
   CONFIG_DEBUG_USB=y
   CONFIG_DEBUG_USB_ERROR=y
   CONFIG_DEBUG_USB_INFO=y
   CONFIG_DEBUG_USB_WARN=y
   ```
   Add support for xhci to the qemu startup options. The vid and pid should be 
filled in according to the actual device.
   ```
   -device qemu-xhci -device usb-host,vendorid=xxxx,productid=xxxx"
   ```
   start qemu, and then insert a USB 3.0 flash drive.
   execute the command `mount usb msc device: mount -t vfat /dev/sda 
/mnt/flash`. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to