谢谢,问题解决了。
这是我搜到的方法,跟版主说的一样
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