According to the ReadMe USB OTG should already be working on the Apalis iMX8QM so I tried to set up USB-Ethernet to my Dev-PC (Windows 10) like explained here:
Everything works fine except the last command:
gadget-export g2 /etc/usbg/g2.schema
There I just get
-sh: gadget-export: command not found
And after plugging in the USB cable:
[ 3645.387667] using random self ethernet address
[ 3645.392157] using random host ethernet address
[ 3724.071691] usb1: HOST MAC 0a:f0:ea:28:d5:15
[ 3724.076143] usb1: MAC b2:46:4e:db:4e:51
[ 3762.778193] configfs-gadget gadget: high-speed config #1: c
and on my PC the device shows up with the correct name but only a “CDC ECM” device (also when I use RNDIS) and no driver can be loaded. Also “ifconfig” on the device does not show any additional ethernet interface.
How can I set that up correctly on the iMX8?