From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from am1ehsobe005.messaging.microsoft.com ([213.199.154.208] helo=AM1EHSOBE005.bigfish.com) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RMRMj-0007dE-ED for openembedded-core@lists.openembedded.org; Fri, 04 Nov 2011 22:31:59 +0100 Received: from mail55-am1-R.bigfish.com (10.3.201.254) by AM1EHSOBE005.bigfish.com (10.3.204.25) with Microsoft SMTP Server id 14.1.225.22; Fri, 4 Nov 2011 21:25:28 +0000 Received: from mail55-am1 (localhost.localdomain [127.0.0.1]) by mail55-am1-R.bigfish.com (Postfix) with ESMTP id A72D41AC80A4; Fri, 4 Nov 2011 21:25:38 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zzzz1202h1082kzz8275bhz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail55-am1 (localhost.localdomain [127.0.0.1]) by mail55-am1 (MessageSwitch) id 1320441938449676_11049; Fri, 4 Nov 2011 21:25:38 +0000 (UTC) Received: from AM1EHSMHS016.bigfish.com (unknown [10.3.201.246]) by mail55-am1.bigfish.com (Postfix) with ESMTP id 68CE9898050; Fri, 4 Nov 2011 21:25:38 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS016.bigfish.com (10.3.207.154) with Microsoft SMTP Server (TLS) id 14.1.225.22; Fri, 4 Nov 2011 21:25:27 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.339.2; Fri, 4 Nov 2011 16:25:42 -0500 Received: from right.am.freescale.net (right.am.freescale.net [10.82.193.13]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id pA4LPgVI003719; Fri, 4 Nov 2011 16:25:42 -0500 (CDT) From: Matthew McClintock To: Date: Fri, 4 Nov 2011 16:25:41 -0500 Message-ID: <1320441941-30850-1-git-send-email-msm@freescale.com> X-Mailer: git-send-email 1.7.6.1 In-Reply-To: <1320441301.3137.1.camel@lenovo.internal.reciva.com> References: <1320441301.3137.1.camel@lenovo.internal.reciva.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: philb@gnu.org Subject: [PATCH v2] Introduce new SERIAL_CONSOLES to add multiple consoles for your MACHINE X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 21:31:59 -0000 Content-Type: text/plain Just define additional serial consoles like so: SERIAL_CONSOLES="115200;ttyS0 115200;ttyS1 ... 115200;ttySN" Also be sure to remove SERIAL_CONSOLE (lacking the S) from your machine as they can conflict. Signed-off-by: Matthew McClintock --- v2: handle case where SERIAL_CONSOLES is not defined .../sysvinit/sysvinit-inittab_2.88dsf.bb | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb index ba60c74..adab262 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb @@ -25,6 +25,18 @@ do_install() { if [ ! -z "${SERIAL_CONSOLE}" ]; then echo "S:2345:respawn:${base_sbindir}/getty ${SERIAL_CONSOLE}" >> ${D}${sysconfdir}/inittab fi + + idx=0 + tmp="${SERIAL_CONSOLES}" + if [ "x" != "x$tmp" ]; then + for i in $tmp + do + j=`echo ${i} | sed s/\;/\ /g` + echo "${idx}:2345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab + idx=`expr $idx + 1` + done + fi + if [ "${USE_VT}" = "1" ]; then cat <>${D}${sysconfdir}/inittab # ${base_sbindir}/getty invocations for the runlevels. -- 1.7.6.1