[yocto] bootlogd error at startup

Hans Beckérus hans.beckerus at gmail.com
Wed Apr 10 08:36:06 PDT 2013


Just for follow-up.
The solution to this problem is to make sure CONFIG_LEGACY_PTYS=y in
the kernel config.

Hans

On Fri, Feb 22, 2013 at 4:50 PM, Hans Beckérus <hans.beckerus at gmail.com> wrote:
> I am running the default minimal image on an ARM based board and get
> the followig error from bootlogd at startup
>
> <...>
> INIT: version 2.88 booting
> Starting udev
> udev[661]: starting version 164
> Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such
> file or directory
> bootlogd.
> Configuring network interfaces... udhcpc (v1.20.2) started
> Sending discover...
> Sending discover...
> Sending discover...
> No lease, failing
> Running postinst /etc/rpm-postinsts/100...
> INIT: Entering runlevel: 5
> Starting syslogd/klogd: done
> Stopping Bootlog daemon: bootlogd.
> <...>
>
> After login and checking /dev there *is* a /dev/tty. Also, if starting
> bootlogd manually using '/etc/init.d/bootlogd start' there is no
> error.
> So my guess is that /dev was not yet populated properly when bootlogd
> was started by the init process. IIRC is this not that something that
> udev should do when started?
>
> Is this a known bug or is there something I have missed in my configuration?
>
> Here is my /etc/inittab (default except from SERIAL_DEVICE)
>
> # /etc/inittab: init(8) configuration.
> # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
>
> # The default runlevel.
> id:5:initdefault:
>
> # Boot-time system configuration/initialization script.
> # This is run first except when booting in emergency (-b) mode.
> si::sysinit:/etc/init.d/rcS
>
> # What to do in single-user mode.
> ~~:S:wait:/sbin/sulogin
>
> # /etc/init.d executes the S and K scripts upon change
> # of runlevel.
> #
> # Runlevel 0 is halt.
> # Runlevel 1 is single-user.
> # Runlevels 2-5 are multi-user.
> # Runlevel 6 is reboot.
>
> l0:0:wait:/etc/init.d/rc 0
> l1:1:wait:/etc/init.d/rc 1
> l2:2:wait:/etc/init.d/rc 2
> l3:3:wait:/etc/init.d/rc 3
> l4:4:wait:/etc/init.d/rc 4
> l5:5:wait:/etc/init.d/rc 5
> l6:6:wait:/etc/init.d/rc 6
> # Normally not reached, but fallthrough in case of emergency.
> z6:6:respawn:/sbin/sulogin
> S:2345:respawn:/sbin/getty 115200 ttyPS0
> # /sbin/getty invocations for the runlevels.
> #
> # The "id" field MUST be the same as the last
> # characters of the device (after "tty").
> #
> # Format:
> #  <id>:<runlevels>:<action>:<process>
> #
>
> 1:2345:respawn:/sbin/getty 38400 tty1
>
>
> Hans



More information about the yocto mailing list