Message ID | 20231111-dns313-usb-serial-v1-0-6402033bcdfb@linaro.org |
---|---|
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=JVj5mV++; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Uzy6I7BJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SSV8m075Bz1yRh for <incoming@patchwork.ozlabs.org>; Sun, 12 Nov 2023 09:04:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P+s5EJ9KsCAcG04GAlMF4wjNBSb85EOc+e4JQ379AzA=; b=JVj5mV++WOwUQg 2VVKh7H4+pCWwXg13Nsn3NVZlcreDK1ST8L6IDH5jD5G+4HmvY37H15i0rxAKGfNDGZ8MVHQPPNdq PcNvyH9L7LyURyO/89yT6sgNId6JQNK8y9Nu6jnGNlZ+6Wdkpa/H5nc5/C5zps0qwyLZOwcZ72Y0d 9AKVoCThXpmnCax32GHjNsALDDM1LZn7zxbMwLxPX+sukYKmKLytjPXFm6IHt0V0kfeiL5T5Rbpbp 7fsemfoRhu5JMLk2gGSFkHLJ2sQEWIhyaBEn3+KOZtJagPzrz0JMyhWlIj2MxvkkGECGa7DAi0m0W EhI9Sa++wpUEGxM4yfiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1w3n-00BPpT-1a; Sat, 11 Nov 2023 22:02:35 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1w3k-00BPoQ-0P for openwrt-devel@lists.openwrt.org; Sat, 11 Nov 2023 22:02:33 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507cd62472dso4770997e87.0 for <openwrt-devel@lists.openwrt.org>; Sat, 11 Nov 2023 14:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699740147; x=1700344947; darn=lists.openwrt.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=G92n7Agb9di/pPcZ6o6WoFBHC9UZkHHcqwF3k+gg3IY=; b=Uzy6I7BJ7NXvTAHybSQcsXdCD1oDqrj3QsFtKn2Xq6HvlesZcNRYOWgc4WtE8hBnEt 48W3JUu5K+uH2dRwIYQAA3f/En6onVqdYU5r+IMy+nlqQMG+rrDP5pGIjGYgqt4vsY7s 4lc4PNyP7T+BgikuHrcq1ZDGbyP4Jvnvsvx0SfT7Q/LJrKKZEn+pLn0GcgG3SCQQJNVj c5ZDXXD1ll5sdOAsqQ+GhZb1YH0EkbeBTHKzsK//DvGfwk5ukSYE4r4FaTvJ5sAnCWwD 3NQUmqbjyCCTBhRFCodQQG1WMVQLYuELKI/BG+Tpyzbhnp3kKSh6yDRH45h1DrFkFJNN NWgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699740147; x=1700344947; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G92n7Agb9di/pPcZ6o6WoFBHC9UZkHHcqwF3k+gg3IY=; b=iK66rTSYNVOo+KIu52DpUsD1dzb6QHJOmQtZDgGCoPZFrtUnJJDjQHQUToGokfErjT mklaanHnV6NIiTrtzezUe/6CZv7YwJ9qBBrlh51JedidrOssjV0ye98Z+N+/5mjH2/S7 PuoSxGDgcQS0SyIp9GTH+QV4ebZwPH5j7J1Y0yoMHHtpwlKzh6Ye/F7rEwdIytem1aBL 0C9Y5ndV/v/5Jzw2CuhcpW2o5dEiiyFL2nCtuJ7JJg+YY7Bca2qtNZDc9EIA4Pt4fH3b /5+09tbNwFyzNF3pD7hAdXZGmJfBYkDLMyWytCT4cPnqk6vvpD4XeeyKEWdXSdZvH0MQ l7hQ== X-Gm-Message-State: AOJu0Yw/QhfvCC2hjs+eNkIQcIRxfTKYEUDlh1ZAdWwdGEzXwZ26DyuQ VkNHJJrILtrQejWOmHOaOsdPPQ== X-Google-Smtp-Source: AGHT+IE5DKbBZo7ofYOOuAbt1fdXmrXtWzL/9itBxQp5lOdwfuLnY1tP6sk37k3ZD7SfeL394wYK0Q== X-Received: by 2002:ac2:490a:0:b0:509:39fa:90d5 with SMTP id n10-20020ac2490a000000b0050939fa90d5mr1948227lfi.26.1699740146711; Sat, 11 Nov 2023 14:02:26 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r15-20020ac25a4f000000b0050803043fc6sm396566lfn.265.2023.11.11.14.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 14:02:26 -0800 (PST) From: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH 0/2] Enable USB serial console on the D-Link DNS-313 Date: Sat, 11 Nov 2023 23:02:19 +0100 Message-Id: <20231111-dns313-usb-serial-v1-0-6402033bcdfb@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOv5T2UC/x2MQQqAIBAAvxJ7biE1kPpKdLDcaiEsXIpA/HvW3 OYwk0AoMgn0VYJINwsfoYiqK5g3F1ZC9sVBN9qoAvogRhm8ZMIvdTtOnZtbS8ZpS1C6M9LCz/8 cxpxftbW18mMAAAA= To: openwrt-devel@lists.openwrt.org, Robert Marko <robimarko@gmail.com>, Hans Ulli Kroll <ulli.kroll@googlemail.com>, Sebastian Luft <sebastian.luft@gmail.com>, Christian Lamparter <chunkeey@gmail.com> Cc: Corentin Labbe <clabbe@baylibre.com>, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231111_140232_232233_9C307278 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 1152 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:132 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
Enable USB serial console on the D-Link DNS-313
|
expand
|
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. 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@linaro.org> --- Linus Walleij (2): kernel: usb: Autoprobe g_serial gemini: Activate serial USB console on the DNS-313 package/kernel/linux/modules/usb.mk | 2 +- target/linux/gemini/Makefile | 2 +- target/linux/gemini/base-files/etc/inittab | 4 ++++ target/linux/gemini/image/Makefile | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) --- base-commit: b7cf706539eb3a788441c8a8debaa8c36e5c54cf change-id: 20231111-dns313-usb-serial-b9ac47e3a27e Best regards,