I am attempting to connect to a custom SBC in gadget mode, but when I run `modprobe g_ether`
it doesn't load, as dmesg tells me:
[ 3873.952312] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
I am able to use the USB host functionality just fine (can mount a USB drive). I am attempting to use a USB-A to USB-A cable to connect to an Ubuntu machine.
I set all the USB Peripheral Controllers available in menuconfig to be loadable as a module, and tried enabling each of them individually along with starting g_ether. None of them loaded, except the dummy HCD.
A bit more relevant info:
CONFIG_USB_MUSB_DUAL_ROLE=y
I ran the script from this topic, here is the output:
chkusb.sh Version 0.2.8
Linux dorado 4.14.40-ti-jumpnow #1 PREEMPT Fri Jul 26 19:51:00 UTC 2019 armv7l armv7l armv7l GNU/Linux
USB is initialized
/sys/kernel/debug/musb-hdrc.0/regdump:Power : e0
/sys/kernel/debug/musb-hdrc.0/regdump:Testmode : 00
/sys/kernel/debug/musb-hdrc.0/regdump:DevCtl : 19
/sys/kernel/debug/musb-hdrc.1/regdump:Power : e0
/sys/kernel/debug/musb-hdrc.1/regdump:Testmode : 00
/sys/kernel/debug/musb-hdrc.1/regdump:DevCtl : 19
usb@47401000: host, okay
usb@47401800: host, okay
Gadget Kernel Config: g_ether is enabled
Gadget Kernel Config: g_mass_storage is enabled
Gadget Kernel Config: g_serial is enabled
gadget driver loaded: (none)
The list of USB gadget drivers installed:
/lib/modules/4.14.40-ti-jumpnow/kernel/drivers/usb/gadget/:
function/
legacy/
libcomposite.ko
udc/
/lib/modules/4.14.40-ti-jumpnow/kernel/drivers/usb/gadget/function:
u_ether.ko
u_serial.ko
usb_f_acm.ko
usb_f_ecm.ko
usb_f_ecm_subset.ko
usb_f_eem.ko
usb_f_fs.ko
usb_f_hid.ko
usb_f_mass_storage.ko
usb_f_ncm.ko
usb_f_obex.ko
usb_f_rndis.ko
usb_f_serial.ko
usb_f_uvc.ko
/lib/modules/4.14.40-ti-jumpnow/kernel/drivers/usb/gadget/legacy:
g_acm_ms.ko
g_cdc.ko
g_ether.ko
g_ffs.ko
g_hid.ko
g_mass_storage.ko
g_multi.ko
g_serial.ko
gadgetfs.ko
/lib/modules/4.14.40-ti-jumpnow/kernel/drivers/usb/gadget/udc:
bdc/
dummy_hcd.ko
fotg210-udc.ko
fusb300_udc.ko
gr_udc.ko
m66592-udc.ko
mv_u3d_core.ko
mv_udc.ko
net2272.ko
pxa27x_udc.ko
r8a66597-udc.ko
snps_udc_core.ko
snps_udc_plat.ko
udc-xilinx.ko
/lib/modules/4.14.40-ti-jumpnow/kernel/drivers/usb/gadget/udc/bdc:
bdc.ko