How to enable USB Client mode with Toradex Colibri iMX6

I want to enable the USB client mode in the linux environment.
I have read the USB Device Mode(linux) article from Toradex. But I get error in the first step

mount -t configfs none /sys/kernel/config
mount: mount point /sys/kernel/config does not exist

Can anyone help me how may I proceed?

What exact versions of things are you talking about?

I am using Linux kernel 4.1.41. Kindly let me know if you need further details.

I am using Linux kernel 4.1.41. Kindly let me know if you need further details.

Assuming that means you are running one of our regular Embedded Linux BSPs e.g. latest 2.7b3 it should really work out-of-the-box. What happens if you plug it into a Linux workstation? Does it enumerate at all? It should really show up as an RNDIS Ethernet device and automatically start a DHCP server giving your workstation an IP in the 192.168.11.x range.

I am using the LXDE image 2.7.3. When I connect the USB client port to the linux host, it dose not show any RNDIS Ethernet device. Just for your information, to verify from the hardware end I have tested USB client by entering into recovery mode using ‘bmode usb’ command with UBoot and it works fine.


So what is the output of the following commands executed on the Colibri iMX6:

systemctl status usbg.service
ip -d link
journalctl -b | grep -E 'g1|usb0'
mount | grep config
uname -a


Finally got it working. The problem was in the kernel configuration. I changed the CONFIG_USB_CONFIGS=y and compiled the kernel. The device got enumerated as ‘Toradex Colibri iMX6’ which is RNDIS compatible device. Thank you for the responses.