启动后,发现下面错误提示:
elcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.14.111-gec36a7d5-dirty armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
-bash: cannot set terminal process group (337): Inappropriate ioctl for device
-bash: no job control in this shell
然后就死机了,请问怎么解决啊? 谢谢。
离线
应该是启动脚本所使用的控制台(tty)不太对,试下换到/dev/tty1看看
谢谢提醒,我的配置配的是ttyS0,具体配置信息如下:
ln -s /lib/systemd/system/getty\@.service /etc/systemd/system/getty.target.wants/getty\@ttyS0.service
我们可以创建/etc/init/ttyS0.conf文件,并写入如下的内容:
start on stopped rc or RUNLEVEL=[12345]
stop on runlevel [!12345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt102
把vt102后来去掉了。请问,是这里配置的原因吗?
另外,请问,如何切换到/dev/tty1呢?
离线
可以添加多个echo,先定位出问题的是哪个命令
另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?
我是参考网上资料,东一篇,西一篇搞的。我把这个删掉试试看。谢谢。
离线
可以添加多个echo,先定位出问题的是哪个命令
另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?
另外,echo命令在何处增加呢? 谢谢。
离线
可以添加多个echo,先定位出问题的是哪个命令
另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[ OK ] Finished Permit User Sessions.
[ OK ] Started Getty on tty1.
[ OK ] Started Getty on ttyS0.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[ OK ] Started Dispatcher daemon for systemd-networkd.
这是启动的最后几行文字,为什么会getty on tty1呢,没有配置过这个tty1啊。我现在的串口名字是ttyS0.
bootargs 参数如下:
setenv bootargs 'console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk1p2 rw rootfstype=ext4 earlyprintk rw vt.global_cursor_default=0'
离线
ttyN,N通常为1~6,是虚拟控制台,可按Ctrl + Alt + Fn 切换。Getty on tty1应该是rootfs生成时默认就有了。
有可能tty1就是指向的ttyS0,可以试下删除你添加的Getty on ttyS0
应该是多配了一个tty1文件,删除了,就可以了,但仍然提示
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
我现在重新给unmininimized下,试试看。
离线