最近在移植Linux3.0.35内核时,发现在内核启动完时需要输入登录账号
此处省略N多开机打印信息...
Synthesizing initial hotplug events
Setting the hostname to freescale
Mounting filesystems
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
starting pid 3114, tty '': '/etc/rc.d/rc_gpu.S'
starting pid 3120, tty '': '/etc/rc.d/rc_mxc.S'
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
root filesystem built on Sun, 15 Mar 2015 14:27:16 +0800
Freescale Semic
在移植Linux3.0.35内核后,发现启动时需要手动登录。通过研究发现,getty命令导致了登录需求。要取消开机登录,需编辑/etc/inittab文件,设置为::askfirst:/bin/sh以root身份进入。但这样无法用Ctrl+C中断程序,需指定console端口如ttymxc0以匹配登录。
订阅专栏 解锁全文
1015

被折叠的 条评论
为什么被折叠?



