Linux console on LCD
生活随笔
收集整理的這篇文章主要介紹了
Linux console on LCD
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
有時(shí)候需要將開(kāi)機(jī)啟動(dòng)的信息輸出到LCD上,并且在終端上進(jìn)行調(diào)試。本文記錄更改的方法。
參考鏈接
http://blog.csdn.net/chenbang110/article/details/7870072
https://e2e.ti.com/support/embedded/linux/f/354/t/324198
https://blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:fbcon
uboot
uboot bootargs添加console=tty0
如下,debug信息即會(huì)在lcd輸出,也會(huì)輸出到LCD。
setenv bootargs console=tty0 console=ttymxc0,115200
kernel
kernel打開(kāi)配置, uboot配置之后,開(kāi)機(jī)啟動(dòng)信息就會(huì)在lcd上顯示。
make menuconfig
CONFIG_FRAMEBUFFER_CONSOLE CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARYLocation: -> Device Drivers -> Graphics support -> Console display driver support<*> Framebuffer Console support [*] Map the console to the primary display devicerootfs
/etc/inittab 添加, 這樣就能夠?qū)⒔K端在串口和LCD上輸出。
tty0::respawn:-/bin/sh # 在LCD上顯示 ttymxc0::respawn:-/bin/sh # 在串口顯示Tony Liu
2016-12-4, Shenzhen
總結(jié)
以上是生活随笔為你收集整理的Linux console on LCD的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: .idl与.odl的区别
- 下一篇: linux modprobe命令参数及用