Disabling USB-CDC kernel module

Hi team,

A customer asked us how they could disable the USB-CDC Ethernet connection. I was looking for something easier than redeploying the modules/recompiling the kernel if possible. I tried removing usb_f_rndis with rmmod and modprobe -rf without much luck (ERROR: Module usb_f_rndis is in use). I couldn’t find any clear reference to it in systemd-networkd to accordingly disable it it.

Thanks,
Alvaro.

Hi Alvaro

Have a look here.

E.g. stop/disable the usbg.service.

systemctl disable usbg.service
reboot

Max

Note that RNDIS and CDC (ECM, EEM, NCM) provide a similar function but are not the same. Our image by default sets up RNDIS.