Forums › Reference, Evaluation, and Development Boards › OSD32MP1-BRK › Unable to get USB RNDIS networking working
Tagged: usb
I just got a BRK board and cannot get USB networking working in Windows 10. I am getting this error when I plug in the BRK board to the USB port that is labeled “SS”:
“The last USB device you connected to this computer malfunctioned and Windows does not recognize it.”
The Remote NDIS driver never starts and I don’t see the 192.168.7.x network in my list of interfaces.
On the board side, I’m using Debian with kernel version 4.19.94. I see this in dmesg around when the connection is supposed to start:
“dwc2 49000000.usb-otg: dwc2_hsotg_enqueue_setup: failed queue (-11)”
My laptop USB device shows up as “Intel USB 3.1 eXtensible Host Controller – 1.10 (Microsoft)”.
I tried this trick to set “MaxPower” which doesn’t seem to have any effect: https://community.st.com/s/question/0D50X0000B5H4dHSQS/windows-10-does-not-recognise-ethernet-over-usb-for-stm32mp157cdk2
I know the USB ports work as I am using them to access the RED board. It is just the BRK board that is giving me trouble. Anybody using Debian on the BRK and have RNDIS working?
Carlos,
Can you take a look at the troubleshooting steps described here: https://octavosystems.com/app_notes/osd32mp1-brk-getting-started/#trouble.
Another thing to try would be to use a USB hub connected to your laptop to power the BRK. Trying a different port or a different machine(we recommend Ubuntu for development) are also viable options. RED and BRK have different configurations for USB OTG port. Both should work just fine. Although it does not look related to your issue, it looks like there are other people reporting problems with the RNDIS functionality: https://community.st.com/s/question/0D50X0000B5H4dHSQS/windows-10-does-not-recognise-ethernet-over-usb-for-stm32mp157cdk2. We will monitor this thread to see if there are similar reports and update the image if needed.
Please update here if you have one.
Best,
Neeraj
Sorry if this is a duplicate post.
I am now looking for the BRK device tree source for 4.19. The DTS posted on GitHub appears to be Linux 5.4.
The RNDIS network driver works on an older laptop running Ubuntu 20.04 server and USB 2.0 and 3.0 ports. I have to manually assign the IP address, annoying, but workable for now.
Thank you, Carlos
To close this discussion I figured out, at least partially, what was going on.
While I don’t have a full understanding of the issues, VMware Workstation 16 Pro version 16.1.2 USB virtual hardware driver does NOT work with Windows 10 and a Ubuntu guest. During my tests, I always had VMware running all the time. USB redirection worked fine with the RED board but not the BRK board so that is why I never suspected VMware to be the problem. I speculate that there is a timing or power issue with USB redirection and device/host negotiation with the gadget driver that is interfering with the Windows USB subsystem.
The workaround is fairly simple: don’t run VMware Workstation. Or if you do simply remove the USB Controller from the virtual machine’s settings. There may be a setting in VMware that might work but I haven’t found it.
Thanks for everyone’s help, Carlos
And one more minor thought. I found this change:
https://github.com/STMicroelectronics/linux/releases/tag/v4.19-stm32mp-r3.3
“usb: dwc2: disable Link Power Management on STM32MP1 HS OTG”.
This patch could fix the USB issues I am seeing.
Carlos,
Thanks for closing the loop. We will test for this use case when we update the software.
Best,
Neeraj
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields