* sysvinit_2.86.bb: add possibility to use USB Serial Console with only rx/tx.
@ 2010-11-26 15:59 matteo.facchinetti
2010-11-26 16:32 ` Matteo Facchinetti
0 siblings, 1 reply; 2+ messages in thread
From: matteo.facchinetti @ 2010-11-26 15:59 UTC (permalink / raw)
To: openembedded-devel; +Cc: Matteo Facchinetti
From: Matteo Facchinetti <engineering@sirius-es.it>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: sysvinit_2.86.bb: add possibility to use USB Serial Console with only rx/tx.
2010-11-26 15:59 sysvinit_2.86.bb: add possibility to use USB Serial Console with only rx/tx matteo.facchinetti
@ 2010-11-26 16:32 ` Matteo Facchinetti
0 siblings, 0 replies; 2+ messages in thread
From: Matteo Facchinetti @ 2010-11-26 16:32 UTC (permalink / raw)
To: openembedded-devel
Sorry at all list... I made another error making this pach.
On 11/26/2010 04:59 PM, matteo.facchinetti@sirius-es.it wrote:
> From: Matteo Facchinetti<engineering@sirius-es.it>
>
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-26 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-26 15:59 sysvinit_2.86.bb: add possibility to use USB Serial Console with only rx/tx matteo.facchinetti
2010-11-26 16:32 ` Matteo Facchinetti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.