[PATCH v2 0/4] Enable USB serial console on the D-Link DNS-313
Linus Walleij
linus.walleij at linaro.org
Wed Apr 2 23:51:00 PDT 2025
This patch set makes it possible to plug in a USB cable
into the device USB B receptacle on the DNS-313 and
it will appear as /dev/ttyACM0 on the host and there will
be a serial console on it, at 115200 baud.
This is useful for users who don't like to solder in
their device to get a serial console.
I did some minor patching to the usbgadet utility package
to make things work properly for me.
The custom inittab is a bit ugly, but I've seen that this
seems to be what other devices do, other ideas welcome.
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
Changes in v2:
- Use Chuanhong Guo's usbgadget configfs package
- Add a few patches to usbgadget to make it easier to use
- Link to v1: https://patchwork.ozlabs.org/project/openwrt/list/?series=381797
---
Linus Walleij (4):
package: usbgadget: Require kmod-fs-configfs
package: usbgadget: Define conffile
package: usbgadget: Fix subpackage dependencies
gemini: Activate serial USB console on the DNS-313
package/utils/usbgadget/Makefile | 10 +++++++---
target/linux/gemini/Makefile | 2 +-
target/linux/gemini/base-files/etc/board.d/02_usbgadget | 11 +++++++++++
target/linux/gemini/base-files/etc/inittab | 4 ++++
target/linux/gemini/image/Makefile | 2 +-
5 files changed, 24 insertions(+), 5 deletions(-)
---
base-commit: cba55fade8f7d8aafbaf301b8dfbd3d9830830c5
change-id: 20231111-dns313-usb-serial-b9ac47e3a27e
Best regards,
--
Linus Walleij <linus.walleij at linaro.org>
More information about the openwrt-devel
mailing list