How to disable RNDIS gadget and configure USB as a serial interface?

BeagleBoneBlack, with debian 8.5 and Linux 4.4.12-ti-rt-r32

I want to disable the RNDIS gadget from usb0 and configure it as a serial port (like ttyACM or ttyUSB)

How I can do this?

Many thanks,

Vinicius

/dev/ttyACM0 is enabled by default with the RNDIS gadget..

Regards,

I disabled the network configuration for usb0, reboot it, but no ttyACM0 device in /dev on BBB, nor in host computer (also Linux Debian)...

perhaps some script ?

Regards,

Vinicius

Well, 'today' the ACM device is created thru configfs/libcomposite:

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L472-L550

back in 8.5 era, it was a specific usb-gadget module.

Your choice, debug what you have, or just grab the latest image:

https://beagleboard.org/latest-images

Regards,