RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

Add a second USB gadget configuration for Linux #52

Closed dlech closed 7 years ago

dlech commented 7 years ago

This adds a second USB gadget configuration that will be used by Linux. Linux is smart enough to know that RNDIS is not nice, so if it sees RNDIS as the first interface and it sees that there is a second USB configuration, it will prefer the second configuration. This results in only the CDC ECM interface being used on Linux (and older versions of macOS).

dlech commented 7 years ago

When testing the 2017-03-01 image, I noticed that Linux was setting up both the RNDIS and the ECM network connections. This prevents Linux from using RNDIS.

dlech commented 7 years ago

One down side to this is that if connman tether uses the same subnet as your host computers other network connection, you will have problems. But, we have have that problem on Mac already so I think it would be better to merge this and figure out an alternate to using connman tether on usb1 (the ECM connection).