Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Matteo Facchinetti <matteo.facchinetti@sirius-es.it>
To: openembedded-devel@lists.openembedded.org
Subject: sysvinit modify for usb_serial_console
Date: Thu, 25 Nov 2010 15:32:27 +0100	[thread overview]
Message-ID: <4CEE737B.4050703@sirius-es.it> (raw)

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

Hi,

There are many evaluationboard that use mini-usb port like as a serial 
port + power supply.
Using it as serial console have to force getty with no need for carrier 
detect.
For these boards have to use USB_SERIAL_CONSOLE variabile in config file 
instead of SERIAL_CONSOLE and getty runs with -L parameter.
By this way is simple to use usb serial port unless know in depth getty 
manpage.

Can you merge this patch in mainline?

Regards
Matteo Facchinetti
Sirius Electronic Systems

[-- Attachment #2: 0001-sysvinit_2.86.bb-add-possibility-to-use-USB-Serial-C.patch --]
[-- Type: text/x-diff, Size: 1236 bytes --]

From 5b691f51009458385f24913e39acc698c523dbe5 Mon Sep 17 00:00:00 2001
From: Matteo Facchinetti <engineering@sirius-es.it>
Date: Thu, 25 Nov 2010 15:21:08 +0100
Subject: sysvinit_2.86.bb: add possibility to use USB Serial Console with only rx/tx.

There are many evaluationboard that use mini-usb port like as
a serial port + power supply. Using it as serial console have
to force getty with no need for carrier detect.
---
 recipes/sysvinit/sysvinit_2.86.bb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb
index 6ab5290..c34cbc9 100644
--- a/recipes/sysvinit/sysvinit_2.86.bb
+++ b/recipes/sysvinit/sysvinit_2.86.bb
@@ -65,6 +65,11 @@ do_install () {
 	install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
 	if [ ! -z "${SERIAL_CONSOLE}" ]; then
 		echo "S:2345:respawn:${base_sbindir}/getty ${SERIAL_CONSOLE}" >> ${D}${sysconfdir}/inittab
+	else
+		 
+		if [ ! -z "${USB_SERIAL_CONSOLE}" ]; then
+			echo "S:2345:respawn:${base_sbindir}/getty -L ${USB_SERIAL_CONSOLE}" >> ${D}${sysconfdir}/inittab
+		fi
 	fi
 	if [ "${USE_VT}" = "1" ]; then
 		cat <<EOF >>${D}${sysconfdir}/inittab
-- 
1.7.0.4


             reply	other threads:[~2010-11-25 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-25 14:32 Matteo Facchinetti [this message]
2010-11-25 17:08 ` sysvinit modify for usb_serial_console Marco Cavallini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CEE737B.4050703@sirius-es.it \
    --to=matteo.facchinetti@sirius-es.it \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox