From patchwork Mon Nov 4 23:39:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 1189235 X-Patchwork-Delegate: wigyori@uid0.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=heimpold.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kXVHH9lZ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=heimpold.de header.i=@heimpold.de header.b="dZGI7NUS"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476Tn60qxSz9sP6 for ; Tue, 5 Nov 2019 10:40:26 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JFHv8yHtpFAIrZFlrj0RsdNwA1xP2a1yhFu/kG5Sjw4=; b=kXVHH9lZ3Gfj5/ 9Vs2ZHHqgRt/Z0lG2jvgSII8oCzydgSNBunvfmsg6MFWptZNprdOnw/sa5qWGA4MpODce045qHz9P Tipo+L9sLStk/7KYXgj0PrO0EHojplkBLmRLzi5Qn3XXlG+TXPIVjN1IW6g8cJzVc4hW4GNFDdRFN qhaf9dL3VHMxuGfm3V/6GvHMRWrX/CmpjM9UjnV/SkfUntZ3d7VDIP6f3nb64Geg2HZG4UQdhu5RN 30xqpgsNzsGvp4WKEsKbiulZJTtZb5kHSHQJB5nZbOViPOJkqAeQLHLAhtOdRF1v16F6+1hASIsZY hDS2YoFic7n/SfYVDiYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlxF-0006hH-Ma; Mon, 04 Nov 2019 23:40:13 +0000 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlwv-0005IC-Fk for openwrt-devel@lists.openwrt.org; Mon, 04 Nov 2019 23:39:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1572910790; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=qbYo4v9VJkmqyhpS+Yf1MOtyf48/GeDOvMX5yhnf2cA=; b=dZGI7NUSy8Ah8STrGjUD1UMYvtXZ9fu0NSq1P6SE8+MJXLqVP8FPgAjgZ4xrfOpG8V S1GJKFnrOUoHNTDIMZR0IYYf7yTG5Qnjs4UUQhD6EYREICJK6ewmNbVV+Hsrc6/1Rj9V 62fbMx5Kis34pfM/lEIbq7Ti/dBG00xJtjPQ5dccuHF3tTqjokkvOW7M9eW1STqmzar9 sPfAWHl8ApS+zgteXZs1tETFATymlUjYJES0lQMbnCrDXfCh8pxVE5z59rdY4ti72TMC fDXehKwAPyjriWhNH4JwQ20JkOD/KDFWOWpft44S9PNHIN+No8y6P1fTqOrwS2//MyYV 9ydA== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MuXOoWjOOx85b6nmekuMQXDvBRi0QaGHEWxMw==" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.29.0 AUTH) with ESMTPSA id c008fcvA4NdoYto (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 5 Nov 2019 00:39:50 +0100 (CET) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 6E147152654; Tue, 5 Nov 2019 00:39:49 +0100 (CET) From: Michael Heimpold To: openwrt-devel@lists.openwrt.org Date: Tue, 5 Nov 2019 00:39:40 +0100 Message-Id: <20191104233942.23783-2-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191104233942.23783-1-mhei@heimpold.de> References: <20191104233942.23783-1-mhei@heimpold.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191104_153954_127729_43EB205B X-CRM114-Status: UNSURE ( 7.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2a01:238:20a:202:5300:0:0:7 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 1/3] procd: start additional consoles during hotplugging X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Heimpold MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Now that 'start-console' procd command has reached the main repo, we can add a rule to start consoles on serial devices which are created when USB gadget driver reports creation with hotplugging. Signed-off-by: Michael Heimpold --- package/system/procd/Makefile | 2 +- package/system/procd/files/hotplug.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile index 8090b87dd5..c4b86ba746 100644 --- a/package/system/procd/Makefile +++ b/package/system/procd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=procd -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index f676bac79e..7e0f129d35 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -37,6 +37,10 @@ [ "load-firmware", "/lib/firmware" ], [ "return" ] ] + ], + [ "if", + [ "regex", "DEVNAME", "^ttyGS" ], + [ "start-console", "%DEVNAME%" ] ] ], "remove" : [ From patchwork Mon Nov 4 23:39:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 1189234 X-Patchwork-Delegate: wigyori@uid0.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=heimpold.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="s9wdJq1L"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=heimpold.de header.i=@heimpold.de header.b="H1lFk473"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476Tmd1VR3z9sP6 for ; Tue, 5 Nov 2019 10:40:01 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/TdVWIjrHxNCdL/lYeKcEb/4MBWn3EueWKp2ndfBRSY=; b=s9wdJq1LJK/pB2 nCWbeiCNBrsRSJvQtWVdi+Rl83vavsRFV9h+T5lT9Q63nDwkNvkbXl3NUGW7MVWxk3QDHRI8OuVPS UX95AjUl7dhVafTEvLonhWr+fqsLPBUqZd+QSPe9dQMPJz8pK70+q4z8PmhoPpUTCFa0PbOwOAKme xy2AMRmH+2RV73D2NEnYqznnvAetrj0K1bvcbFGldYgPgK1Mmx3TrXo0JQPi+U90Xu1Lu120LYXvi 241fMDcpYJdJ/P7hRomcmH66WgUUNJ4CNSrp+j+OFPQUklDd3L75ix4C3t+zHK/HfIAsUxKmeE6xP Unu6SajBdy5J+dYUnMjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlwy-0005Ja-PV; Mon, 04 Nov 2019 23:39:56 +0000 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::1]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlwv-0005IB-Fh for openwrt-devel@lists.openwrt.org; Mon, 04 Nov 2019 23:39:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1572910790; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=3ybRrhgTmHXMKqoRrkaIqzLYkiOwpLRP4LUP2oDxrY8=; b=H1lFk473RMb5SVPqa5rq4Q/y8xYX79r1p06sC/Q+TV4+J6/Ir/H/hSqNviSXa+wRPY 5icX8NtGtOFX1Q+HsLeGWSh3KTn1UA87Zve/YQCz98xDf92qc0MDmnQpqx2EEEd/NCHw dFtlSaUG5MCwdC3l6Lb0z4lJCt2ORJM+lISNRZMIhwRxto3qhggQwjpafoODYu+YQ3k3 Et7/6fEg18LBBWe3v3KBB1YKOuUf+KCf4gKY2CVSo3UKe2cuDhxaNfytayc1M0YtdYV2 ri4le6W49nsINV4gbrtdYcSgqRcw2Z/0UIq/+o+2+FpkkFn6lltiRMoLuhh33TRPp5hx tfRg== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGbO3oK8Gj1qr/lquvq" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.29.0 DYNA|AUTH) with ESMTPSA id c008fcvA4NdoYtn (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 5 Nov 2019 00:39:50 +0100 (CET) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 80E7815273B; Tue, 5 Nov 2019 00:39:49 +0100 (CET) From: Michael Heimpold To: openwrt-devel@lists.openwrt.org Date: Tue, 5 Nov 2019 00:39:41 +0100 Message-Id: <20191104233942.23783-3-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191104233942.23783-1-mhei@heimpold.de> References: <20191104233942.23783-1-mhei@heimpold.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191104_153954_134720_18F81BB5 X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2a01:238:20a:202:5300:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 2/3] mxs: switch to askconsole X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Heimpold MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Remove the dedicated tty name and use askconsole to spawn the console on serial debug uart. Signed-off-by: Michael Heimpold --- target/linux/mxs/base-files/etc/inittab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mxs/base-files/etc/inittab b/target/linux/mxs/base-files/etc/inittab index 9991ac4909..9820e7144b 100644 --- a/target/linux/mxs/base-files/etc/inittab +++ b/target/linux/mxs/base-files/etc/inittab @@ -1,3 +1,3 @@ ::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown -ttyAMA0::askfirst:/usr/libexec/login.sh +::askconsole:/usr/libexec/login.sh From patchwork Mon Nov 4 23:39:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 1189236 X-Patchwork-Delegate: wigyori@uid0.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=heimpold.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UQv78tSs"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=heimpold.de header.i=@heimpold.de header.b="AjpXP+Za"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476TnB3X6Gz9sP6 for ; Tue, 5 Nov 2019 10:40:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nU1ifYuC7wXFEFjO6vj0Of0fxoDhoH8eSSPO3HNB4JM=; b=UQv78tSs9AXObJ a7UC1Jql3tVtykei3iPjdvp+pQRH9hOQIw3M9gwIynaXtctVI9WXvD0zQLC/n54OgzkWMS+9oiVGl hJxwM5VWaXiS2ILyviPSs1k7Ok30SIT3MmtqItPQ7alHsoM40fGFT4VsyeAFe28qUsJYgUsBC/kT4 aDnV2eIG9Yjo9G1NsAOM6e8eMccIt4Nreh6nBlJgRpyr1VSoNA524Nzc/J9Y3nCT2BWq85W8MuDjG j4l1irUbY3A5kvScIcJUt83Cfe7nFUTVSCpu8Cdv8Hha1aZiehKBsycmtO6IB1fBN+hUEsqpyRc+B +OpmKbI2ZyikstR972oQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlxS-0006ye-9z; Mon, 04 Nov 2019 23:40:26 +0000 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRlwv-0005ID-Fi for openwrt-devel@lists.openwrt.org; Mon, 04 Nov 2019 23:39:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1572910790; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=S9nufX6guwKnHwgdx3MYaKb9Lp2a6OHi8Cgy9Fep8fo=; b=AjpXP+ZaxFD/VP8UYUrP3t7TVDwrDT+svBo1HJjbrer1X26TfVrDLnelnUHXwGXDB4 wmYispoz3qQpKmGg6MX+T7TqxxWiYIFlKGXgpZgQS/JDS+JtvRLEZfNnXDQVJvs8E5Bg 5dtHuCsnxs694E4fWodEIcQMyQsLbOeMSyuwx3yBctI+mYzn751+rECkSkxjgxjF6jIo 6N7ZBVhkkxvmIlCdD/EFIlyx4y/QII4Kvl3rbhddgAq6OzcR/1kO9CBtF+zvPwkJwq23 H6vFvt/51FUIP4Fbx548YHElIY3OMYGHtp4ROIVgR+DyCdNsc3tepI2edfJTHVDuKA8o eESw== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGbO3oK8Gj1qr/lquvq" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.29.0 DYNA|AUTH) with ESMTPSA id c008fcvA4NdoYtp (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 5 Nov 2019 00:39:50 +0100 (CET) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 916B615273F; Tue, 5 Nov 2019 00:39:49 +0100 (CET) From: Michael Heimpold To: openwrt-devel@lists.openwrt.org Date: Tue, 5 Nov 2019 00:39:42 +0100 Message-Id: <20191104233942.23783-4-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191104233942.23783-1-mhei@heimpold.de> References: <20191104233942.23783-1-mhei@heimpold.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191104_153954_133522_596326FF X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2a01:238:20a:202:5300:0:0:7 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH 3/3] mxs: start a console on USB gadget serial ports X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Heimpold MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The I2SE Duckbill devices are pen-drive like and thus the usage of the USB gadget subsystem is highly indicated. Spawning a console if a serial gadget is configured saves us from connecting a physical debug uart. On Olimex OLinuXino Maxi/Mini boards, this does not hurt. Signed-off-by: Michael Heimpold --- target/linux/mxs/base-files/etc/inittab | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/mxs/base-files/etc/inittab b/target/linux/mxs/base-files/etc/inittab index 9820e7144b..253036402d 100644 --- a/target/linux/mxs/base-files/etc/inittab +++ b/target/linux/mxs/base-files/etc/inittab @@ -1,3 +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