九鼎创展论坛

标题: 将调试信息显示在LCD上[mx53平台,x210 平台可依照移植] [打印本页]

作者: armeasy    时间: 2013-1-23 11:25
标题: 将调试信息显示在LCD上[mx53平台,x210 平台可依照移植]
将调试信息显示在LCD上
默认情况下,嵌入式设备大多是将调试信息通过串口打印出来,事实上,我们可以将调试信息移驾到LCD上,或是LCD和串口同时存在。
console=ttymxc0,115200: 串口
console=tty0 console=ttymxc0,115200: 串口,LCD并存
console=tty0: LCD
以下以并存的方式给出实现步骤,其他类似:
第一步:设置bootloader启动参数:
setenv nfsroot /NFS
setenv bootargs console=tty0 console=ttymxc0,115200 init=/init androidboot.console=ttymxc0 root=/dev/nfs nfsroot=${serverip}:${nfsroot} rw ip=dhcp video=mxcdi1fb:RGB666,XGA ldb=di1 di1_primary gpu_nommu, gpu_memory=64M
第二步:配置config:
make menuconfig
Boot options -> Default kernel command string:
noinitrd console=tty0 console=ttymxc0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2 ip=off
Device Drivers -> Graphics support :
选中 MXC Framebufgfer support, Synchronous Panel Framebuffer
Device Drivers -> Graphics support -> Console display driver support:
选中Framebuffer Console support,Map the console to the primary display device
Framebuffer COnsole Rotation, Select compiled-in fonts, VGA 8*8 font,
VGA 8*16 font, Sparc console 8*16 font, Sparc console 12*22 font
以上有些也许可以不选,需尝试。
第三步:重新编译kernel,这时,调试信息已经在串口和LCD上同时显示了。


作者: 兑尊    时间: 2013-2-24 02:25
是在编译软件上操作吗




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2