openwrt/package/utils
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
..
adb packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
bcm27xx-userland
bcm4908img
bsdiff bsdiff: Add patches for CVEs 2023-10-09 23:42:37 +02:00
busybox
bzip2
checkpolicy
ct-bugcheck
debugcc debugcc: add licensing information 2023-11-11 06:11:25 +00:00
dtc dtc: add option for a static build 2023-11-10 20:27:55 +01:00
e2fsprogs
f2fs-tools f2fs-tools: avoid dead symlinks in root 2023-11-25 17:55:03 +01:00
fbtest
firmware-utils firmware-utils: update to git HEAD 2023-12-17 19:39:53 +01:00
fritz-tools
jboot-tools
jsonfilter
lua lua: opt-out of lto usage 2023-10-29 19:42:32 +01:00
lua5.3 lua5.3: fix typo calling lua53 instead of lua5.3 for Package Default 2023-12-10 11:46:30 +01:00
mdadm
mtd-utils mtd-utils: update to 2.1.6 2023-10-25 16:16:42 +02:00
nvram bcm53xx: Linksys EA9200 nvram and 02_network fixes 2023-10-22 11:11:43 +02:00
osafeloader
policycoreutils
px5g-mbedtls px5g-mbedtls: Fix permission of private key 2023-11-07 21:55:55 +01:00
px5g-wolfssl px5g-wolfssl: Fix permission of private key 2023-11-07 21:55:55 +01:00
ravpower-mcu
secilc
spidev_test
ucode ucode: adjust module dependencies 2023-12-08 00:08:11 +01:00
ucode-mod-bpf
uencrypt
ugps ugps: update to latest HEAD, introduce baudrate 2023-07-26 14:28:09 +02:00
usbgadget package: new package for usb gadget setup 2023-12-28 13:10:32 +08:00
usbmode
util-linux util-linux: update to v2.39.3 2023-12-11 15:53:33 +01:00
yafut yafut: add missing PKG_MIRROR_HASH 2023-10-02 22:13:10 +02:00
zyxel-bootconfig