sipeed / LonganPi-3H-SDK

LonganPi 3H SDK
GNU General Public License v3.0
28 stars 14 forks source link

Add USB OTG HID support to kernel #9

Open danjenkins opened 7 months ago

danjenkins commented 7 months ago

you've got ethernet, serial otg support... could you add otg hid support too?

https://www.kernelconfig.io/CONFIG_USB_F_HID?kernelversion=6.7

Just saves having to recompile the kernel with all of your patches too.

danjenkins commented 7 months ago

Might be worth enabling all the gadgets

Theres a nice list over at https://crates.io/crates/usb-gadget of kernel options to enable

wu-yue-yu commented 7 months ago

15

danjenkins commented 7 months ago

thanks! Will test once a new image is released :)

danjenkins commented 7 months ago

@wu-yue-yu any idea when a new image will get uploaded?

wu-yue-yu commented 6 months ago

Hi, the new image has been uploaded, you can download in the MEGA netdisk. The USB gadget is compiled as modules, you can use them by running insmod command.