Linux console on LCD
生活随笔
收集整理的這篇文章主要介紹了
Linux console on LCD
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
有時候需要將開機啟動的信息輸出到LCD上,并且在終端上進行調試。本文記錄更改的方法。
參考鏈接
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信息即會在lcd輸出,也會輸出到LCD。
setenv bootargs console=tty0 console=ttymxc0,115200
kernel
kernel打開配置, uboot配置之后,開機啟動信息就會在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 添加, 這樣就能夠將終端在串口和LCD上輸出。
tty0::respawn:-/bin/sh # 在LCD上顯示 ttymxc0::respawn:-/bin/sh # 在串口顯示Tony Liu
2016-12-4, Shenzhen
總結
以上是生活随笔為你收集整理的Linux console on LCD的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .idl与.odl的区别
- 下一篇: linux modprobe命令参数及用