2019-07-15 02:32 PM
I connected the board to the OTG port. In the DFU mode, the USB port can be recognised correctly. When switching to the normal mode, Windows 10 cannot recognise the device. I tried to force to install the device as "Remote NDIS Compatible Device". Windows shows device status as "This device cannot start (Code 10)".
I have stuck on this issue for more than 2 weeks. Please help!
2019-07-19 07:38 AM
Thanks @robin_elecgator
Sorry but trace from the edit trial looks strange
root@stm32mp1-disco:~# vi /sbin/stm32_usbotg_eth_config.sh stop ?
Please confirm you properly edit the file with echo 100.
Thx
Olivier
2019-07-19 07:49 AM
Hi @Community member
The stop is a small mistake (vi did want to create the "stop" file) It is the second file vi wants to edit, but the changes did apply to the script
This is in my config.sh file.
# Config
mkdir -p "${d}/configs/${c}"
mkdir -p "${d}/configs/${c}/strings/0x409"
echo "Config 1: RNDIS" > "${d}/configs/${c}/strings/0x409/configuration"
echo 100 > "${d}/configs/${c}/MaxPower"
echo 0xC0 > "${d}/configs/${c}/bmAttributes" # self powered device
mkdir -p "${d}/functions/${func_eth}"
- /sbin/stm32_usbotg_eth_config.sh 43/109 39%
Robin
2019-07-22 02:02 AM
Thanks @robin_elecgator
Issue looks to be around USB Link Power Management (LPM) and compatibility between host and target.
Could you please share the reference of your USB Hub ?
If possible, could you please try to test :
Thanks for your help,
Olivier
2019-07-22 02:25 AM
Hi @Community member
The usb hub is a LogiLink UA0124.
All usb ports on my PC behave the same, unknown device (it doesn't load the device descriptors)
If I test it on an other machine, it works. This machine is also a DELL with the following configuration:
- Intel Xeon E3-1270 v5
- Intel C236 chipset
Best regards,
Robin
2019-08-01 09:15 AM
Hi @Community member
Do you need more information? did you guys found the cause of the problem?
Best regards,
Robin
2019-08-30 08:40 AM
Still unable to replicate it.
To understand if we are looking in the right direction, would be possible for you to test this patch in the kernel of STM32MP1 ?
Of course, it would require you to recompile the kernel; no way to apply such modification at runtime in sysfs.
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index b8a1584..afbcbb7 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -629,7 +629,7 @@ static int bos_desc(struct usb_composite_dev *cdev)
usb_ext->bLength = USB_DT_USB_EXT_CAP_SIZE;
usb_ext->bDescriptorType = USB_DT_DEVICE_CAPABILITY;
usb_ext->bDevCapabilityType = USB_CAP_TYPE_EXT;
- usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT | USB_BESL_SUPPORT);
+ usb_ext->bmAttributes = cpu_to_le32(USB_LPM_SUPPORT | USB_BESL_SUPPORT | 0x4118);
/*
* The Superspeed USB Capability descriptor shall be implemented by all
2019-11-20 08:39 AM
Any update Robin ?
2020-12-18 08:18 AM
Hi,
I had this problem recently on my laptop with 4 3.1 USB ports. Two of them worked and two doesn't. I had same message - dwc2 49000000.usb-otg: Failed to exit L1 sleep state in 200us. I solved problem by applying this patch https://www.spinics.net/lists/linux-usb/msg205440.html on ecosystem v2.0 kernel. Now I managed to make RNDIS working and USB mass storage also.
Best regards,
Nenad
2022-07-05 06:54 AM
I have same issue, when usb hub then work, I could ping from PC.
But plugin to PC directly then usb0 shown up but can not ping. Under Device Manager PC side, unknow device shown as well.