[poky] Serial console unusable with poky-image-sdk

Darren Hart dvhart at linux.intel.com
Thu Jan 27 14:33:58 PST 2011


On 01/27/2011 03:42 AM, Wolfgang Denk wrote:
> Hi,
>
> in message<20110127111132.C69A3B335 at 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 at denx.de>
>> Subject: Stop dbus-launch from interfering with a serial console
>
> Signed-off-by: Wolfgang Denk<wd at 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



More information about the poky mailing list