However the first step is to get the device going as a serial gadget, and I'm already failing miserably at that. When I insmod the relevant modules I get the dreaded "can't find an available UDC" error:
I do *not* run a raspibian, but a custom system based on OpenADK (think buildroot).
The relevant files follow:
Code: Select all
kernel=kernel
dtparam=audio,i2s,spi,i2c
device_tree=bcm2710-rpi-cm3.dtb
start_file=start.elf
fixup_file=fixup.dat
gpu_mem=16
dtoverlay=dwc-otg.dtb
dtoverlay=dwc2.dtbdmesg output for boot (prior to any module loading): https://pastebin.com/tuxwXE88
kernel 4.14.0 config: https://pastebin.com/R47aGSSV
insmod-statements:
Code: Select all
root@box:~ # insmod /lib/modules/4.14.0-1/udc-core.ko
root@box:~ # insmod /lib/modules/4.14.0-1/libcomposite.ko
root@box:~ # insmod /lib/modules/4.14.0-1/u_serial.ko
root@box:~ # insmod /lib/modules/4.14.0-1/usb_f_acm.ko
root@box:~ # insmod /lib/modules/4.14.0-1/g_serial.koCode: Select all
[ 476.468226] userial_init: registered 4 ttyGS* devices
[ 484.447683] udc-core: couldn't find an available UDC - added [g_serial] to list of pending driversAny pointers to what's going on are very much appreciated. I'm probably an idiot, but also kinda out of ideas right now.