1、The Framebuffer Console 詳細的介紹了相關操作系統編譯選項,不僅包括了graphics,還介紹了相關的 Characters和鼠標鍵盤等設置。
2、OSL TFT Driver 是xilinx的文檔,介紹了與上述相類似的內容。
Kernel Configuration
The following items are required in the kernel configuration to use the driver.
Select the Xilinx Frame Buffer (CONFIG_XILINX_FB_XILINX) in the kernel configuration by following this path thru the menuconfig.
From drivers->
Graphics support->
Support for frame buffer devices->
Xilinx frame buffer support
Select the Frame Buffer Console driver (CONFIG_FRAMEBUFFER_CONSOLE) in the kernel configuration by following this path thru the menuconfig.
From drivers->
Graphics support->
Console display driver support->
Framebuffer Console support
Note: “Console display driver support” does not show up in the menuconfig until you select Virtual terminal (CONFIG_VT) in the kernel configuration by following this path thru the menuconfig.
From Device Drivers->
Character devices->
Virtual terminal
Kernel Command Line
Add “console=tty0” to use the frame buffer as the primary console.
3、修改 petalinux-config 中的bootargs 變量,將其中 的 console=ttyPS0改爲 tty0 ,操作系統啓動後,相關信息就顯示在 Framebuffer 設備上了。(U_boot的bootargs參數詳解)
4、測試表明,只要在uboot中設置 bootargs=console=tty0。就可以使得系統的輸出信息輸出到tty0上,也就會到所有的ttyn上。如果設置 console=tty1,則相關信息只會輸出到tty1上,其他的ttyn和ttyPSn都收不到這些信息。