Poky Project Discussions
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: Wolfgang Denk <wd@denx.de>
Cc: poky@yoctoproject.org
Subject: Re: Serial console unusable with poky-image-sdk
Date: Thu, 27 Jan 2011 14:33:58 -0800	[thread overview]
Message-ID: <4D41F2D6.4040406@linux.intel.com> (raw)
In-Reply-To: <20110127114216.744AEB335@gemini.denx.de>

On 01/27/2011 03:42 AM, Wolfgang Denk wrote:
> Hi,
>
> in message<20110127111132.C69A3B335@gemini.denx.de>  I wrote:
>>
>> it seems that for some time (probably back to laverne-4.0) the serial
>> console port is basicly unusable in the poky-image-sdk file system.
>> I tried this in several PPC and ARM configurations, and the behaviours
>> is pretty much the same: login works fine, but at the shell prompt
>> only one out of N input characters (N usually between 2 and 10) gets
>> through to the shell.
> ...
>> Is there a way to stop dbus-launch from concurring with a login shell
>> on the serial console port?
>
> This patch appears to be working fine for me:
>
>> From: Wolfgang Denk<wd@denx.de>
>> Subject: Stop dbus-launch from interfering with a serial console
>
> Signed-off-by: Wolfgang Denk<wd@denx.de>
> ---
>
> diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
> index a87447a..0b73127 100644
> --- a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
> +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession
> @@ -2,7 +2,7 @@
>
>   if [ -x /usr/bin/dbus-launch ]; then
>       # As this is the X session script, always start a new DBus session.
> -    eval `dbus-launch --sh-syntax --exit-with-session`
> +    eval `dbus-launch --sh-syntax --exit-with-session</dev/null`
>       echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
>   fi
>

you can also append "console=tty" to the kernel command line and the 
serial console should work. I've run into this on a couple platforms as 
well and addressed it this way. This isn't just an X11 issue as I 
usually boot -minimal images.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


  reply	other threads:[~2011-01-27 22:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 11:11 Serial console unusable with poky-image-sdk Wolfgang Denk
2011-01-27 11:42 ` Wolfgang Denk
2011-01-27 22:33   ` Darren Hart [this message]
2011-01-28  7:05     ` Wolfgang Denk
2011-01-28 16:44       ` Darren Hart
2011-01-28 16:51         ` Wolfgang Denk
2011-01-28 16:56           ` Gary Thomas
2011-01-28 17:51             ` Richard Purdie
2011-01-28 17:16           ` Darren Hart
2011-01-28 17:20             ` Richard Purdie

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=4D41F2D6.4040406@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=poky@yoctoproject.org \
    --cc=wd@denx.de \
    /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