mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 16:03:51 +00:00
The gadget offered ECM, for which Windows has no driver. Now: * NCM replaces ECM as the network function (ECM stays the fallback, MU300_USBNET=ecm restores the old gadget), and the device class is IAD (0xEF/2/1) so Windows' composite driver keeps each function's interfaces together. Tested live on the device: Windows 11 bound its inbox UsbNcm.sys, took a DHCP lease and reached the device and the internet; the ACM console stayed COM4. * RNDIS for every Windows from 7 on, in configuration 1 with MS OS descriptors (compatible ID RNDIS/5162001) - Windows only ever uses the first configuration - and NCM in configuration 2, which Linux and macOS take, as with g_ether. boot/init renames the netdevs after binding (RNDIS registers first and would take usb0): usb0 stays the CDC link, rndis0 joins br-lan too. This needs CONFIG_USB_CONFIGFS_RNDIS, now in the kernel fragment. Unisoc's sprd_usb_f_rndis module cannot stand in: with CONFIG_USB_PAM it hands the data path to the IPA on connect, so its netdev never passes a packet (measured: Windows bound it, rndis0 stayed at 0/0). Without the stock function boot/init builds the single NCM configuration, as before. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>