[meta-freescale] Congatec qmx6: serial-getty for console times out using systemd

Winfried Dobbe winfried_mb2 at xmsnet.nl
Tue Sep 8 11:50:37 PDT 2015


I have built the core-image-full-cmdline image using the fido branch of
the congatec yocto git repository. I basically didn't change anything in
the configuration apart from adding the following lines in local.conf :

DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"

When I boot the congatec board with this image the
serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service> times out because the ttymxc1 device is not
available according to systemd:

Sep 04 10:29:55 cgtqmx6 systemd[1]: Job dev-ttymxc1.device/start timed out.
Sep 04 10:29:55 cgtqmx6 systemd[1]: Timed out waiting for device
dev-ttymxc1.device.
-- Subject: Unit dev-ttymxc1.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel <http://lists.freedesktop.org/mailman/listinfo/systemd-devel>
-- 
-- Unit dev-ttymxc1.device has failed.
-- 
-- The result is timeout.
Sep 04 10:29:55 cgtqmx6 systemd[1]: Dependency failed for Serial Getty on
ttymxc1.
-- Subject: Unit serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service> has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel <http://lists.freedesktop.org/mailman/listinfo/systemd-devel>
-- 
-- Unit serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service> has failed.
-- 
-- The result is dependency.
Sep 04 10:29:55 cgtqmx6 systemd[1]: Job serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service>/start
failed with result 'dependency'.
Sep 04 10:29:55 cgtqmx6 systemd[1]: Job dev-ttymxc1.device/start failed
with result 'timeout'.


However the ttymxc1.device is available in the udev database:


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=19333


Starting the serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service> manually after logging in via
ssh gives the same result.

The service link in /etc/systemd seems ok:

root at cgtqmx6:~# ls -l /etc/systemd/system/getty.target.wants/
total 0
lrwxrwxrwx 1 root root 45 Sep  8  2015 getty at tty1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=getty%40tty1.service> ->
../../../../lib/systemd/system/getty at .service
lrwxrwxrwx 1 root root 41 Sep  8  2015 serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service> ->
/lib/systemd/system/serial-getty at .service


However when I then give a seemingly random systemctl command like
"systemctl disable lighttpd.service" and then start the ttymxc1 service
again with "systemctl start serial-getty at ttymxc1.service <https://webmail.xmsnet.nl/src/compose.php?send_to=serial-getty%40ttymxc1.service>" the login prompt
appears on the console and everything works as expected until the next
reboot.

I tried the same with the fido branch from the freescale
fsl-community-bsp-platform repository for the wandboard-quad board. The
problem doesn't occur with that image / board.

Any suggestions how to fix this or investigate further are greatly
appreciated.

best regards,
Winfried

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150908/fa599803/attachment.html>


More information about the meta-freescale mailing list