AnsweredAssumed Answered

imx6ul systemd waiting for ttymxc0 failed

Question asked by XiongJun He on Jun 12, 2017
Latest reply on Apr 1, 2018 by Yiling Xu

I use the systemd initialization manager to booting  the system, but it cann't enter the Getty for waiting for ttymxc0 timeout (using the serial):

[  OK  ] Started Authorization Manager.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Modem Manager.
[  OK  ] Created slice system-sshd.slice.
[  OK  ] Started OpenSSH Per-Connection Daemon (192.168.1.106:38772).
[ TIME ] Timed out waiting for device dev-ttymxc0.device.
[DEPEND] Dependency failed for Serial Getty on ttymxc0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

But I can get into the console through ssh, also, I can get into the getty when using the init.d instead of systemd so the ttymxc0 is fine, but it just wouldn't be detected by the systemd, maybe the udev is the fault?

 

And the system is build using the yocto. The udevd is running.

# udevadm info /dev/ttymxc0
P: /devices/platform/soc/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0
N: ttymxc0
E: DEVNAME=/dev/ttymxc0
E: DEVPATH=/devices/platform/soc/2000000.aips-bus/2000000.spba-bus/2020000.serial/tty/ttymxc0
E: ID_MM_CANDIDATE=1
E: MAJOR=207
E: MINOR=16
E: SUBSYSTEM=tty
E: TAGS=:systemd:
E: USEC_INITIALIZED=11599104

I can see the udev service is started:

[  OK  ] Started udev Kernel Device Manager.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.

 

Also I tried to trigger a event in ssh durning the systemd is waiting for the ttymxc0, but no luck:

udevadm trigger -v --type subsystems --action add -s tty --sysname-match=ttymxc0

Outcomes