beagleboard / Latest-Images

Please use; https://git.beagleboard.org/beagleboard/Latest-Images
https://git.beagleboard.org/beagleboard/Latest-Images
MIT License
10 stars 11 forks source link

Switch both usb0/usb1 to cdc-ncm and tie usb1 to connman #42

Open jadonk opened 4 years ago

jadonk commented 4 years ago

Is your feature request related to a problem? Please describe. People always want to know how to get their USB-only-connected Beagles to use the host's Internet connection. They need to issue 'ip addr flush dev usb1; dhclient usb1'. Of course, if we use cdc-ncm, we shouldn't need both usb0 and usb1 to ensure they get a port that works on their OS as all OSes should support it. That means, we'd have a free port to configure as a DHCP client by default and perhaps even have it managed by connman to facilitate the DHCP requests and routing (though I'm less sure on that one).

Describe the solution you'd like

Describe alternatives you've considered Not sure which port should be swapped. Not sure of other alternatives.

Additional context Got nothing.

RobertCNelson commented 4 years ago

Screenshot(1)

Who wants to do the Windoze Signing side of this? Remember we FAILED big time with a Windows signing Key last time, so really anything that requires a signed driver, i'm just going to NAK, as it will break based on our history... Today Windoze works with our RNDIS hacks..

jadonk commented 4 years ago

https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/microsoft-os-2-0-descriptors-specification

jadonk commented 4 years ago

https://ostconf.com/system/attachments/files/000/001/537/original/WYOGv3.pdf?1540914672

Poking around for a Compatible ID using NCM: USB\CLASS_FF&SUBCLASS_03&PROT_16

https://docs.microsoft.com/en-us/windows-hardware/drivers/network/mb-union-function-descriptors

Also FYI https://github.com/microsoft/NCM-Driver-for-Windows