风轻云淡 发表于 2013-1-20 15:44:30

求助,默认输出设备改为LCD的问题

我想让开机的默认输出设备位LCD,移植了LCD驱动,参考了帖子http://armbbs.net/forum.php?mod=viewthread&tid=8147#lastpost
1,修改uboot传递给内核的启动参数,在include/config/EmbedSky.h,修改内容:将console=ttySAC0改为console=tty1,
2、重新编译Linux内核,编译时取掉Logo。
3、系统启动后,要把控制台的显示交给LCD,还需要在文件系统的/etc/目录下建立inittab的文件,文件内容如下:
::sysinit:/etc/init.d/rcS
tts/0::askfirst:-/bin/sh
tty1::askfirst:-/bin/sh
tty2::askfirst:-/bin/sh
tty3::askfirst:-/bin/sh
tty4::askfirst:-/bin/sh
tty5::askfirst:-/bin/sh
tty6::askfirst:-/bin/sh
插入USB键盘就可以了的
可是在启动在超级终端不停打印如下内容,不能进入控制台:
can't run '/etc/ini.d/rcS': No such file or directory
can't open /dev/tts/0: No such file or directory
can't open /dev/tty1: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty4: No such file or directory
can't open /dev/tty5: No such file or directory
can't open /dev/tty6: No such file or directory

请哪位大神帮忙看下,是不是文件系统中没有tty1设备文件,想要实现从LCD打印该怎样做呢,谢谢谢!!!

亚瑟王 发表于 2013-1-21 09:23:52

can't run '/etc/ini.d/rcS': No such file or directory这句话很关键,你给的信息是ini.d目录而不是init.d目录,所以找不到rcS文件了。
页: [1]
查看完整版本: 求助,默认输出设备改为LCD的问题