[systemd-devel] console device times out at boot while it is available

winfried.dobbe at xmsnet.nl winfried.dobbe at xmsnet.nl
Thu Sep 10 08:23:48 PDT 2015


Never mind, I just found the answer in this post that Richard Maw posted
today:

http://lists.freedesktop.org/archives/systemd-devel/2015-September/034204.html

Problem solved.

Winfried

> Hi,
>
> I'm trying to get systemd to work on an Freescale imx6 device (Yocto 1.8).
> Everything works, except that the console device (dev-ttymxc1.device)
> times out after boot (and thus the serial-getty at ttymxc1.service as well):
>
> root at cgtqmx6:~# systemctl status dev-ttymxc1.device
> ● dev-ttymxc1.device
>    Loaded: loaded
>    Active: inactive (dead)
>
> Dec 01 14:58:07 cgtqmx6 systemd[1]: Job dev-ttymxc1.device/start timed
> out.
> Dec 01 14:58:07 cgtqmx6 systemd[1]: Timed out waiting for device
> dev-ttymxc1.device.
> Dec 01 14:58:07 cgtqmx6 systemd[1]: Job dev-ttymxc1.device/start failed
> with result 'timeout'.
>
>
> But while the start job for dev-ttymxc1.device is counting down towards
> timeout, the device is actually present in sysfs and the udev database (no
> unit files defined for dev-ttymxc1.device):
>
> root at cgtqmx6:~# ls
> /sys/devices/soc0/soc.0/2100000.aips-bus/21e8000.serial/tty/ttymxc1/
> close_delay  closing_wait  custom_divisor  dev  device  flags  io_type
> iomem_base  iomem_reg_shift  irq  line  port  power  subsystem  type
> uartclk  uevent  xmit_fifo_size
>
> root at cgtqmx6:~# udevadm info -e
> <snip>
> P: /devices/soc0/soc.0/2100000.aips-bus/21e8000.serial/tty/ttymxc1
> N: ttymxc1
> E: DEVNAME=/dev/ttymxc1
> E: DEVPATH=/devices/soc0/soc.0/2100000.aips-bus/21e8000.serial/tty/ttymxc1
> E: MAJOR=207
> E: MINOR=17
> E: SUBSYSTEM=tty
> E: TAGS=:systemd:
> E: USEC_INITIALIZED=1806
>
>
> And when I login via ssh and run 'systemctl daemon-reload' suddenly the
> dev-ttymxc1.device is available:
>
> root at cgtqmx6:~# systemctl status dev-ttymxc1.device
> ● dev-ttymxc1.device - /dev/ttymxc1
>    Follow: unit currently follows state of
> sys-devices-soc0-soc.0-2100000.aips\x2dbus-21e8000.serial-tty-ttymxc1.device
>    Loaded: loaded
>    Active: active (plugged)
>    Device:
> /sys/devices/soc0/soc.0/2100000.aips-bus/21e8000.serial/tty/ttymxc1
>
>
>
> Any tips why systemd doesn't pick up the console device at boot or how to
> debug this further will be appreciated. Yocto 1.8 uses systemd 219.
>
> Best regards,
> Winfried
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>




More information about the systemd-devel mailing list