Which Khadas SBC do you use?
VIM3
Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu 22.04 5.x kernel
Which version of system do you use? Khadas official images, self built images, or others?
Official
Please describe your issue below:
Has anyone gotten gadget mode to work with the VIM3 on Ubuntu? I’ve followed the documentation and it looks like its not enabled in the kernel.
Post a console log of your issue below:
root@Khadas:/home/khadas# grep otg-device$ /boot/env.txt
overlays=uart3 pwm_f i2c3 os08a10 otg-device
root@Khadas:/home/khadas#
@Khadas:/home/khadas# sh /usr/local/bin/usb-gadget
mkdir: cannot create directory ‘/sys/kernel/config/usb_gadget’: Operation not permitted
/usr/local/bin/usb-gadget: 24: cannot create /sys/kernel/config/usb_gadget/khadas/idVendor: Directory nonexistent
/usr/local/bin/usb-gadget: 25: cannot create /sys/kernel/config/usb_gadget/khadas/idProduct: Directory nonexistent
—SNIP—