-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed as not planned
Labels
area: USBUniversal Serial BusUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug
Description
Describe the bug
USBIP support (CONFIG_USBIP=y) seems to work only with the existing USB device stack, not with the device_next stack. I have tested this on Zephyr commit 3b03595.
Regression
- This is a regression.
Steps to reproduce
Steps to reproduce the behaviour:
west build -b native_sim/native/64 --snippet usbip-native-sim samples/subsys/usb/hid-mouse/ -- -DCONF_FILE=usbd_next_prj.conf -DEXTRA_DTC_OVERLAY_FILE=usbd_next.overlaywest build -t runusbip list -r 192.0.2.1hangs
With the existing USB device stack, the USBIP server starts listening on port 3240 and allows binding and enumeration:
west build -b native_sim/native/64 --snippet usbip-native-sim samples/subsys/usb/hid-mouse/west build -t runusbip list -r localhostsudo usbip attach -r localhost -b 1-1
Exportable USB devices
======================
- localhost
1-1: NordicSemiconductor : unknown product (2fe3:0007)
: /sys/devices/pci0000:00/0000:00:01.2/usb1/1-1
: (Defined at Interface level) (00/00/00)
: 0 - Human Interface Device / No Subclass / None (03/00/00)
[646889.794102] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)
[646889.794123] vhci_hcd vhci_hcd.0: devid(65538) speed(3) speed_str(high-speed)
[646889.794144] vhci_hcd vhci_hcd.0: Device attached
[646890.012794] usb 4-1: new high-speed USB device number 11 using vhci_hcd
[646890.207805] usb 4-1: SetAddress Request (11) to port 0
[646890.933833] usb 4-1: New USB device found, idVendor=2fe3, idProduct=0007, bcdDevice= 4.01
[646890.933836] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[646890.933837] usb 4-1: Product: Zephyr HID mouse sample
[646890.933838] usb 4-1: Manufacturer: ZEPHYR
[646890.933838] usb 4-1: SerialNumber: 0123456789ABCDEF
[646891.334215] input: ZEPHYR Zephyr HID mouse sample as /devices/platform/vhci_hcd.0/usb4/4-1/4-1:1.0/0003:2FE3:0007.0029/input/input10
[646891.334544] hid-generic 0003:2FE3:0007.0029: input,hidraw3: USB HID v1.11 Mouse [ZEPHYR Zephyr HID mouse sample] on usb-vhci_hcd.0-1/input0
Relevant log output
WARNING: Using a test - not safe - entropy source
[00:00:00.000,000] <err> eth_tap: Cannot create zeth (-1/Operation not permitted)
[00:00:00.000,000] <wrn> net_if: iface 1 pkt 0x47eaa0 send failure status -1
[00:00:00.000,000] <wrn> net_if: iface 1 pkt 0x47eaa0 send failure status -1
[00:00:00.000,000] <wrn> net_if: iface 1 pkt 0x47eaa0 send failure status -1
[00:00:00.000,000] <wrn> net_if: iface 1 pkt 0x47eaa0 send failure status -1
*** Booting Zephyr OS build v4.1.0-6465-g3b035954f292 ***
[00:00:00.000,000] <inf> net_config: Initializing network
[00:00:00.000,000] <inf> net_config: IPv4 address: 192.0.2.1
[00:00:01.000,001] <wrn> net_if: iface 1 pkt 0x47eb08 send failure status -1
[00:00:02.000,002] <wrn> net_if: iface 1 pkt 0x47eb08 send failure status -1Impact
Functional Limitation – Some features not working as expected, but system usable.
Environment
Ubuntu 24.04 LTS (Linux bitbanger 6.11.0-26-generic #26~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 17 19:41:24 UTC 2 aarch64 aarch64 aarch64 GNU/Linux)
Additional Context
No response
Metadata
Metadata
Assignees
Labels
area: USBUniversal Serial BusUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug