difos/target/linux/gemini/base-files/etc/board.d/02_usbgadget
Linus Walleij 719f378bfb gemini: Activate serial USB console on the DNS-313
This brings up a serial console on the USB device port of
the DNS-313 by:

- Activating the usbgadget feature
- Selecting the usbgadget-acm package
- Adding an inittab that opens a console at ttyGS0 which is
  the device side of ttyACMn of a connected host

Link: http://patchwork.ozlabs.org/project/openwrt/patch/20250403-dns313-usb-serial-v2-4-d84de8e86931@linaro.org/
Cc: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-04-10 09:38:18 +02:00

11 lines
189 B
Text

. /lib/functions.sh
case "$(board_name)" in
dlink,dns-313)
uci set usbgadget.@preset[0].name="acm"
uci set usbgadget.@preset[0].UDC="69000000.usb"
uci commit usbgadget
;;
esac
exit 0