[PATCH v2 0/4] Enable USB serial console on the D-Link DNS-313

2025-04-03 Thread Linus Walleij
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

[PATCH v2 4/4] gemini: Activate serial USB console on the DNS-313

2025-04-03 Thread Linus Walleij
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 Cc: Chuanhong Guo Signed-off-by: Linus W

[PATCH v2 3/4] package: usbgadget: Fix subpackage dependencies

2025-04-03 Thread Linus Walleij
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. Cc: Chuanhong Guo

[PATCH v2 1/4] package: usbgadget: Require kmod-fs-configfs

2025-04-03 Thread Linus Walleij
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. Cc: Chuanhong Guo Signed-off-by: Linus Walleij --- package/utils/usbgadget/Makefile | 4 ++-- 1 file changed, 2 inser

[PATCH v2 2/4] package: usbgadget: Define conffile

2025-04-03 Thread Linus Walleij
The /etc/config/usbgadget file is a conffile, so specify it as such. Cc: Chuanhong Guo Signed-off-by: Linus Walleij --- package/utils/usbgadget/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/package/utils/usbgadget/Makefile b/package/utils/usbgadget/Makefile index 65673e730f1

Re: [PATCH v2 2/4] package: usbgadget: Define conffile

2025-04-03 Thread Chuanhong Guo
On Thu, Apr 3, 2025 at 2:51 PM Linus Walleij wrote: > > The /etc/config/usbgadget file is a conffile, so specify > it as such. > > Cc: Chuanhong Guo > Signed-off-by: Linus Walleij Thanks for the fixes! > --- > package/utils/usbgadget/Makefile | 4 > 1 file changed, 4 insertions(+) > > dif

Re: [PATCH v2 3/4] package: usbgadget: Fix subpackage dependencies

2025-04-03 Thread Chuanhong Guo
Hi! On Thu, Apr 3, 2025 at 2:51 PM Linus Walleij wrote: > > 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 satisfie

Re: [PATCH v2 1/4] package: usbgadget: Require kmod-fs-configfs

2025-04-03 Thread Chuanhong Guo
Hi! On Thu, Apr 3, 2025 at 2:51 PM Linus Walleij wrote: > > 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. > > Cc: Chuanhong Guo > Signed-off-by: Linus Walleij

Re: [PATCH v2 2/4] package: usbgadget: Define conffile

2025-04-03 Thread Chuanhong Guo
Hi! On Fri, Apr 4, 2025 at 9:51 AM Chuanhong Guo wrote: > > On Thu, Apr 3, 2025 at 2:51 PM Linus Walleij wrote: > > > > The /etc/config/usbgadget file is a conffile, so specify > > it as such. > > > > Cc: Chuanhong Guo > > Signed-off-by: Linus Walleij > > Thanks for the fixes! Reviewed-by: Ch