cancel
Showing results for 
Search instead for 
Did you mean: 

Windows 10 does not recognise ethernet over USB for STM32MP157C-DK2

CRong
Associate II

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!

18 REPLIES 18

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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

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 :

  • with other USB Type A port of your PC ?
  • With another PC

Thanks for your help,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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

robin_elecgator
Associate II

Hi @Community member​ 

Do you need more information? did you guys found the cause of the problem?

Best regards,

Robin

AntonioST
ST Employee

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

Bernard PUEL
ST Employee

Any update Robin ?

NGajic
Associate III

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

Dat Tran
Senior II

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.