sysvinit modify for usb_serial_console
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
From 5b691f51009458385f24913e39acc698c523dbe5 Mon Sep 17 00:00:00 2001
From: Matteo Facchinetti <[email protected]>
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(-)
recipes/sysvinit/sysvinit_2.86.bb +5 -0
@@ -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
Signature · 1 line
1.7.0.4
Matteo Facchinetti ha scritto, Il 25/11/2010 15:32:
Quoted 11 lines
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 useUSB_SERIAL_CONSOLEvariabile in config file instead ofSERIAL_CONSOLEand getty runs with -L parameter. By this way is simple to use usb serial port unless know in depth getty manpage.
Quoted 6 lines
Can you merge this patch in mainline?
Regards
Matteo Facchinetti
Sirius Electronic Systems
Matteo,
Looks ok to me, thanks.
BTW IIRC your patches should have prefix [PATCH]
http://wiki.openembedded.net/index.php/How_to_submit_a_patch_to_OpenEmbedded
git format-patch --subject-prefix="PATCH" -1
Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen --
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
http://www.KaeilOS.com