主题 : 系统启动不进入Qtopia 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3574
精华: 0
发帖: 17
金钱: 170 两
威望: 165 点
综合积分: 34 分
注册时间: 2009-01-19
最后登录: 2010-05-15
楼主  发表于: 2009-05-23 20:16

 系统启动不进入Qtopia

管理提醒: 本帖被 arm9home 从 Linux技术交流专区 移动到本区(2009-09-10)
如果要使系统启动后不进入Qtopia,并且使原来打印到串口上的内容同时输出到开发板的LCD上,应该怎么做?
是不是要修改/etc/init.d/rcS,删掉
/bin/qtopia &
echo "                                  " > /dev/tty1
echo "Starting Qtopia, please waiting..." > /dev/tty1
这三行,然后该怎么做?
请高手指点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-24 17:00
如果你要系统不启动Qtopia,删掉"/bin/qtopia &"这一行就可以了。
至于要使原来打印的串口的信息同时输出到开发板的LCD上,可以试试把内核命令行改成"console=ttySAC0 console=tty0"这样内核的信息会同时输出到串口和LCD上,前提是要内核配置要enable framebuffer console (fbcon)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 3574
精华: 0
发帖: 17
金钱: 170 两
威望: 165 点
综合积分: 34 分
注册时间: 2009-01-19
最后登录: 2010-05-15
2楼  发表于: 2009-05-24 20:33
谢谢,问题解决了。
这是我搜到的方法,跟版主说的一样
Origin of question:
When porting linux in imx27ads, uart serial port is usually used as console. I would like to know if I can have kernel booting message output on both of serial console and framebuffer console or switch from serial console to framebuffer console.

The way to Rome:
1. Configure the kernel and enable the framebuffer as console device like this (take imx27ads kernel for example):
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y

CONFIG_FB_MXC=y
CONFIG_FB_MXC_SYNC_PANEL=y

CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y

CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

CONFIG_LOGO=y
CONFIG_LOGO_LINUX_CLUT224=y

CONFIG_VT=y
CONFIG_VT_CONSOLE=y

2. Pass right console parameters to kernel by kernel command line
1) Only the uart1 as console
console=ttymxc0,115200
2) Only the framebuffer device as console
console=tty0
3) Both the framebuffer device and the uart1 as consoles and the uart1 takes input console
console=tty0 console=ttymxc0,115200
Actually, this will ensure that the boot messages are displayed on both the framebuffer (/dev/tty0) and the serial console (/dev/ttyS0); the last device named in a console= option will be the one that takes input, too, so with the settings above you can use the serial console to enter commands etc. For a more detailed description see http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-kernel.html
http://startsailing.bokee.com/viewdiary.13599792.html