From patchwork Sat Nov 11 22:02:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1862743 X-Patchwork-Delegate: linus.walleij@linaro.org Return-Path: 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=WgEm1qht; 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=OTL4GyzH; 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 4SSV8l5TjXz1yRV for ; 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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UDTXRdDzjVRwCDOpaNiM3apfZJEY4B52DMeJpluPcrk=; b=WgEm1qhtT4G8V8 xueWKZwWvzcDxlXr+aNZbDhWF3biXaaM6xn0mkyeJYN+Bv42bKyQRpVsmTkD2Ds8TWNXZybL+Lumk LUOaaO0OMc5lAGvRX6vLNFQSJaKCCF3kehMFRVyAlPD59C5JvdSn8GCPo2v9MgFhd0klSjKubwJ/X f5fKJhqRxoLdbUJu21Pa8u+5L2kNYR+3G3x+wRT/CWY8Fa00r7QniunCIE/LdpjcYeAwDCu9K978Z ZBHEOzwOs1Z9dPPU5emV83PVLNyAIHs0slvjWeLHYxBguyFyNOu0plio5aQ/ExrHZed30NqVrHgvu 00gYGgRbKsoPARCCVpoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1w3o-00BPpb-2P; Sat, 11 Nov 2023 22:02:36 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1w3k-00BPoU-1M for openwrt-devel@lists.openwrt.org; Sat, 11 Nov 2023 22:02:33 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50930f126b1so4149633e87.3 for ; Sat, 11 Nov 2023 14:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699740150; x=1700344950; darn=lists.openwrt.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wLWsBlc7ZyBMQIqqRGaSd3nDDtY8asjJuha655G4FSY=; b=OTL4GyzHjWDPUW2ZS2kdFQqVuxfXe2/daMMIxqJkORmoQd8nkqlP0ExbKJHPeOhlvX uht6WgPVsyq2gBikX2/7fczj6NptG4lHoFCF8bbdQ5VcJAaMaD22PFFQBzURkXs4xc6A p9mETIzyxNPP5RcZdvYYRNHr8B+f5+f0JVhWWClhm7Ty48RL/Uh6SOVT7smSRBQ1jcua msk4IIgC6KuogXDdsAebbszra5L3mlNLbqYoFrU14K9mNZDfVhPR6ZLEG17UOVigi6+k 1pbGtiHzXDP+1P6CTOTucY7Uf8xFnTx6KdqjtK/R/T9xhklgAUce0YpzJvoEQrkwrVc9 ZMiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699740150; x=1700344950; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wLWsBlc7ZyBMQIqqRGaSd3nDDtY8asjJuha655G4FSY=; b=GZd7RlkGeEAmYe8ntyb8O8kUYV8aCmygu1RC/vUnuhIYBOI1n8uND81g7rxfUSqQ7+ /b3TbXcpEykcWDfkm2O7f+qR/WT3BImIGWhjYOEa7pIbTVQje6qwIJ7ZbvApvnc+4EPr fvVpG7O6WSpB7J07naw/IDV8HyvWCjG+m0NXDqJTldp8d8vgdz+UnH54R1r89x0q/ZzF zWcvgfwy5kPg00itm9pKlp3MOOSxEZLIbAaEGFhfohJ+e5IfMK8JcwTspHZ6+h/kHx5P 4gi9fXKrYFbjxXTteUJ6SB4BQJ42rHBVYW1MDswJr2yuY8yMNpIC/xVMbHbOINQkwneH ZYSA== X-Gm-Message-State: AOJu0YykoWekPqQcmW6VtKXEQo7UJ9oKDljbE/0zzsqsXdMYymzdJ95U kwvbhc1v+WBkNIfltT9vH91oyaJ5H48eH9E4NS0= X-Google-Smtp-Source: AGHT+IFxEkuKqSpG+XNJtQ+2zaRyZzbjFDYnUr28MDRzTiw847N9Y4ASTKTP34CbjUhm2dnFWsqu+A== X-Received: by 2002:a05:6512:1106:b0:502:9a2c:f766 with SMTP id l6-20020a056512110600b005029a2cf766mr2663561lfg.30.1699740149733; Sat, 11 Nov 2023 14:02:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 14:02:27 -0800 (PST) From: Linus Walleij Date: Sat, 11 Nov 2023 23:02:21 +0100 Subject: [PATCH 2/2] gemini: Activate serial USB console on the DNS-313 MIME-Version: 1.0 Message-Id: <20231111-dns313-usb-serial-v1-2-6402033bcdfb@linaro.org> References: <20231111-dns313-usb-serial-v1-0-6402033bcdfb@linaro.org> In-Reply-To: <20231111-dns313-usb-serial-v1-0-6402033bcdfb@linaro.org> To: openwrt-devel@lists.openwrt.org, Robert Marko , Hans Ulli Kroll , Sebastian Luft , Christian Lamparter Cc: Corentin Labbe , Linus Walleij X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231111_140232_461428_52FC71EE X-CRM114-Status: GOOD ( 12.51 ) 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 brings up a serial console on the USB device port of the DNS-313. Signed-off-by: Linus Walleij --- target/linux/gemini/Makefile | 2 +- target/linux/gemini/base-files/etc/inittab | 4 ++++ target/linux/gemini/image/Makefile | 2 +- 3 files ch [...] 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:12b 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This brings up a serial console on the USB device port of the DNS-313. Signed-off-by: Linus Walleij --- target/linux/gemini/Makefile | 2 +- target/linux/gemini/base-files/etc/inittab | 4 ++++ target/linux/gemini/image/Makefile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile index b7f1962c9a59..238d8c4f0c4d 100644 --- a/target/linux/gemini/Makefile +++ b/target/linux/gemini/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk ARCH:=arm BOARD:=gemini BOARDNAME:=Cortina Systems CS351x -FEATURES:=squashfs pci rtc usb dt gpio display ext4 rootfs-part boot-part +FEATURES:=squashfs pci rtc usb usbgadget dt gpio display ext4 rootfs-part boot-part CPU_TYPE:=fa526 SUBTARGETS:=generic diff --git a/target/linux/gemini/base-files/etc/inittab b/target/linux/gemini/base-files/etc/inittab new file mode 100644 index 000000000000..253036402d83 --- /dev/null +++ b/target/linux/gemini/base-files/etc/inittab @@ -0,0 +1,4 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K shutdown +::askconsole:/usr/libexec/login.sh +ttyGS0::askfirst:/usr/libexec/login.sh diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index 3fce3172ed63..6a0397e0503f 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -168,7 +168,7 @@ define Device/dlink_dns-313 DEVICE_VENDOR := D-Link DEVICE_MODEL := DNS-313 1-Bay Network Storage Enclosure DEVICE_DTS := gemini-dlink-dns-313 - DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) + DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) kmod-usb-gadget kmod-usb-gadget-serial BLOCKSIZE := 1k FILESYSTEMS := ext4 IMAGES := factory.bin.gz