openwrt/package
Chuanhong Guo b196a9f6ce package: new package for usb gadget setup
Setting up usb gadgets using g_* kernel modules are considered a
legacy approach, but the usb_gadget configfs is a bit annoying
to use directly.
The usb_gadget configfs works by creating magic directories
and writing to magic files under /sys/kernel/config/usbgadget.
This new package is an init script to setup usb_gadget configfs
using uci. In the config file, gadget/configuration/function
sections create corresponding directories. UCI options are magic
files available in the configfs and strings/0x409 directories,
grabbed with a 'find' command. UDC option in gadget writes
the UDC file under the 'gadget' directory to attach the
generated gadget config.

It's also possible to apply pre-made config templates under
/usr/share/usbgadget. The templates use the same UCI config
format, with the 'gadget' entry named 'g1'. Currently, there
are templates for CDC-ACM and CDC-NCM gadgets written based
on existing g_*.ko module code.

Certain SBCs come with only a USB device port (e.g. Raspberry Pi
Zero). With this script, it's now possible to perform initial
setup on them by adding a default NCM gadget.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2023-12-28 13:10:32 +08:00
..
base-files base-files: execute package's "postinst" after executing uci-defaults 2023-12-27 16:01:30 +01:00
boot mediatek: add support for Routerich AX3000 2023-12-26 17:17:23 +01:00
devel tools: add ledumon and ledhwbmon packages 2023-12-12 19:35:03 +01:00
firmware linux-firmware: update to 20231211 2023-12-19 14:22:28 +01:00
kernel mac80211: fix flush during station removal 2023-12-24 10:34:46 +01:00
libs libxml2: update to 2.12.1 2023-12-07 11:54:08 +01:00
network netifd: update to Git HEAD (2023-12-19) 2023-12-19 22:35:22 +01:00
system procd: update to Git HEAD (2023-11-28) 2023-11-30 19:19:40 +01:00
utils package: new package for usb gadget setup 2023-12-28 13:10:32 +08:00
Makefile build: add CycloneDX SBOM JSON support 2023-11-01 11:14:41 +00:00