明远智睿技术论坛

 找回密码
 立即注册
搜索
查看: 35850|回复: 1
打印 上一主题 下一主题

arm移植ubuntu系统出现A start job is running for dev-ttymxc0.device

[复制链接]

36

主题

745

帖子

2872

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2872
跳转到指定楼层
楼主
发表于 2019-4-2 17:39:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
主机平台: UBUNTU14.04
硬件平台:明远智睿MY-IMX6-EK200 (其他平台也是)
编译器:      gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
ARM ubuntu版本:  16.04
内核版本:     linux-4.1.15
很多人遇到移植ubuntu core 16.04的文件系统
启动时遇到长时间等待。如下:
[  OK  ] Started Getty on tty4.
[  OK  ] Started Getty on tty3.
[  OK  ] Started Getty on tty2.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Getty on tty5.
[  OK  ] Started Getty on tty6.
[*     ] A start job is running for dev-ttymx0.device (7s / 1min 30s)

...
...
[     *] A start job is running for dev-ttyPS0.device (1min 29s / 1min 30s)
[ TIME ] Timed out waiting for device dev-ttyPS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyPS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
          Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

1.在/etc/init/ 增加 ttymxc0.conf文件
# console - getty#
# This service maintains a getty on console from the point the system is
# started until it is shut down again.


start on stopped rc RUNLEVEL=[2345] and container CONTAINER=lxc

stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ttymxc0 vt100


2.建立一个软连接
ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttymxc0.service


修改完后和重新烧写,重新启动就不会卡住了。方法适用其他平台的。









回复

使用道具 举报

3

主题

14

帖子

58

积分

注册会员

Rank: 2

积分
58
沙发
发表于 2019-6-13 18:37:18 | 只看该作者
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|明远智睿  

GMT+8, 2024-11-23 12:04 , Processed in 0.064449 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表