USB Gadget support

Hello,

I’ve just got my BVA. I’d like to use it as a USB gadget. However, it seems like there is no support for USB yet. I found the following line in one of the scripts for building Ubuntu for BeagleV A-head: " #No USB support yet…". I’m wondering if there is somewhere a roadmap with features implementation plans for BVA or maybe someone of you is aware of such plans to add support for USB?

When I try to run: sudo modprobe g_multi I can see in dmesg the following log:
[ 186.303205] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers

Thanks in advance!

Kind regards,
dkala

BUMP, please : )

I don’t have this board and do not understand what you are referring to regards to a USB gadget. Are you saying the USB port is dead?

In the Vendor 5.10.x kernel, i think we have that port setup as usb host, as it was the only usb port, thus keyboard/mouse/storage… I’m trying to remember if usb gadget mode actually worked… I know on mainline usb support was posted, but everything is waiting for thead clock driver at this point…

Regards,

@foxsquirrel and @RobertCNelson Thank you for your answers and sorry for delay.

I’m able to flash the board via USB so uboot correctly supports USB device mode. I can see in the u-boot/configs/light_beagle_defconfig config options related to USB:

CONFIG_USB=y
CONFIG_USB_DWC3=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_MANUFACTURER="U-Boot-THEAD"
CONFIG_USB_GADGET_VENDOR_NUM=0x1234
CONFIG_USB_GADGET_PRODUCT_NUM=0x8888

I tried also to enable these options in patches/linux/beaglev_defconfig but still cannot get any driver available in /sys/class/udc/.

root@BeagleV:/home/beagle# ll /sys/class/udc/
total 0
drwxr-xr-x  2 root root 0 Sep 19  2023 ./
drwxr-xr-x 43 root root 0 Sep 19  2023 ../
root@BeagleV:/home/beagle#

Thanks in advance!