12-15-2021, 07:40 PM
My /sys/class/udc is an empty directory. Is your's populated?
I followed the configfs recipe here https://elinux.org/images/e/ef/USB_Gadge..._API_0.pdf, right up to the end where /sys/class/udc is expected to have content.
I also get a /var/log/syslog message that is related: udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
And doing echo device > /sys/kernel/debug/fe800000.usb/mode does not change the mode, which continues to have "host" value.
Looking in /boot/config-5.10.0-7-arm64, I see # CONFIG_USB_OTG is not set.
Thanks for the reply. That's the exact post I was referring to in my first post, but for the life of me, I just can't echo device to mode no matter what, it doesn't give me any error, but after doing that, I cat mode and it is still host. I can't seem to be able to change mode to device (using root). I don't know what I'm doing wrong. I can set USB-c to device mode via dtb modifiction, but that means the board is booting with mode set to device already. Is the solution actually need the board to boot in "host" mode and then set it to "device"?
I followed the configfs recipe here https://elinux.org/images/e/ef/USB_Gadge..._API_0.pdf, right up to the end where /sys/class/udc is expected to have content.
I also get a /var/log/syslog message that is related: udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
And doing echo device > /sys/kernel/debug/fe800000.usb/mode does not change the mode, which continues to have "host" value.
Looking in /boot/config-5.10.0-7-arm64, I see # CONFIG_USB_OTG is not set.
(12-14-2021, 12:08 AM)djonathan Wrote: I was looking for similar info, and this looks relevant, specifically the steps at the end:
https://forum.pine64.org/showthread.php?tid=11523
Thanks for the reply. That's the exact post I was referring to in my first post, but for the life of me, I just can't echo device to mode no matter what, it doesn't give me any error, but after doing that, I cat mode and it is still host. I can't seem to be able to change mode to device (using root). I don't know what I'm doing wrong. I can set USB-c to device mode via dtb modifiction, but that means the board is booting with mode set to device already. Is the solution actually need the board to boot in "host" mode and then set it to "device"?