<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openwrt/package/utils/usbgadget, branch main</title>
<subtitle>OpenWrt Source Repository</subtitle>
<id>https://git.openwrt.org/openwrt/openwrt/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/openwrt/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/'/>
<updated>2025-07-04T09:33:18Z</updated>
<entry>
<title>usbgadget: bump PKG_RELEASE for os descriptors support</title>
<updated>2025-07-04T09:33:18Z</updated>
<author>
<name>Chuanhong Guo</name>
</author>
<published>2025-07-04T09:33:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=b5c90ed1bdf84550b9b350e28a0de9d88fc74c04'/>
<id>urn:sha1:b5c90ed1bdf84550b9b350e28a0de9d88fc74c04</id>
<content type='text'>
Signed-off-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
</content>
</entry>
<entry>
<title>usbgadget: add OS descriptors support</title>
<updated>2025-07-04T01:50:24Z</updated>
<author>
<name>Thomas Richard</name>
</author>
<published>2025-06-26T09:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=c5c894f7ff9731cb0c24f566f41cdb2fce9aed68'/>
<id>urn:sha1:c5c894f7ff9731cb0c24f566f41cdb2fce9aed68</id>
<content type='text'>
Add OS descriptors support. Configuring OS descriptors allows Microsoft
Windows to bind the right drivers without any additional configuration.

Signed-off-by: Thomas Richard &lt;thomas.richard@bootlin.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19237
Signed-off-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
</content>
</entry>
<entry>
<title>package: usbgadget: Fix subpackage dependencies</title>
<updated>2025-04-10T07:37:34Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2025-04-03T06:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=cb650214ba4b88b583ffe3e8c7fbc208b3f6bfba'/>
<id>urn:sha1:cb650214ba4b88b583ffe3e8c7fbc208b3f6bfba</id>
<content type='text'>
Currently if a target wants to use acm or ncm gadget config,
they need to select both usbgadget and the config package
such as usbgadget-acm.

It's better if the target just select usbgadget-acm and get
all dependencies satisfied.

Adding a dependency using +usbgadget fixes this.

Link: http://patchwork.ozlabs.org/project/openwrt/patch/20250403-dns313-usb-serial-v2-3-d84de8e86931@linaro.org/
Reviewed-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>package: usbgadget: Define conffile</title>
<updated>2025-04-10T07:36:51Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2025-04-01T08:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=a57bce987a8e58c7ee79eda4bdd616003b1e2e61'/>
<id>urn:sha1:a57bce987a8e58c7ee79eda4bdd616003b1e2e61</id>
<content type='text'>
The /etc/config/usbgadget file is a conffile, so specify
it as such.

Link: http://patchwork.ozlabs.org/project/openwrt/patch/20250403-dns313-usb-serial-v2-2-d84de8e86931@linaro.org/
Reviewed-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>package: usbgadget: Require kmod-fs-configfs</title>
<updated>2025-04-10T07:36:18Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2025-04-01T07:52:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=f0de73f91238b9533ffaf2dd29c26ddc1453f2e1'/>
<id>urn:sha1:f0de73f91238b9533ffaf2dd29c26ddc1453f2e1</id>
<content type='text'>
The usbgadget package tries to mount and use configfs so it
needs to require the kernel module instead of implying it.

There should be a newline at the end of the file as well.

Link: http://patchwork.ozlabs.org/project/openwrt/patch/20250403-dns313-usb-serial-v2-1-d84de8e86931@linaro.org/
Reviewed-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>package: new package for usb gadget setup</title>
<updated>2023-12-28T05:10:32Z</updated>
<author>
<name>Chuanhong Guo</name>
</author>
<published>2023-11-19T12:56:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/openwrt/commit/?id=b196a9f6ce8ef7d6b09d20ef79ffcf464d1a15ab'/>
<id>urn:sha1:b196a9f6ce8ef7d6b09d20ef79ffcf464d1a15ab</id>
<content type='text'>
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 &lt;gch981213@gmail.com&gt;
</content>
</entry>
</feed>
