显示屏是连接开发板的一个重要部件,是将一定的电子文件信息通过开发板显示到屏幕上再反射到人眼的一种显示工具;TQi.MX6UL目前支持两款屏,5寸高清与7寸普清。测试前请先将qt程序关闭,具体方法请参考附录。
在命令行中使用
fb_test
可以看到屏上有相关的显示:
fb_test还可以支持单独显示红,绿,蓝等。更详细的使用可以通过fb_test-h查看。以下是操作过程:
# fb_test fb_test 1.1.0 (rosetta) fb res 800x480 virtual 800x480, line_len 3200, bpp 32
如何设置使用不同的屏?使用不同的屏可以通过u-boot菜单设置,u-boot会通过命令行将屏相关参数传送给内核。以下是设置过程: 进入设置菜单。按c
[c] Choice lcd type
进入lcd 选择菜单。
##### TQ-IMX6UL U-boot MENU ##### [SET PARAMS] ################################### [1] Set NFS boot parameter [2] Set YAffS boot parameter Standard Linux [3] Set UBIfs boot parameter Standard Linux [4] Set MMC boot parameter Standard Linux [5] Set Download Image name [6] Set TFTP parameters(serverip,ipaddr...) [s] Save the parameters to Nand Flash [c] Choice lcd type [e] reset default environment variables [r] Restart u - boot [q] Return Main menu Please press a key to continue :c ##### TQ-IMX6UL U-boot MENU ##### [SET LCDTYPE] ################################### [1] H50 5 inch(800x480) cap_tp screen. [2] TN92 7 inch(800x480) cap_tp/res_tp screen. [s] Save the parameters to Nand Flash [q] Return to the previous menu Please press a key to continue :1 ##### TQ-IMX6UL U-boot MENU ##### [SET LCDTYPE] ################################### [1] H50 5 inch(800x480) capts screen. .....
设置默认不保存,如有需要,保存按s 保存
[s] Save the parameters to Nand Flash
操作打印如下:
...... [1] H50 5 inch(800x480) cap_tp screen. [2] TN92 7 inch(800x480) cap_tp/res_tp screen. [s] Save the parameters to Nand Flash [q] Return to the previous menu Please press a key to continue :s Saving Environment to NAND... Erasing NAND... Erasing at 0x5e0000 -- 100% complete. Writing to NAND... OK ##### TQ-IMX6UL U-boot MENU ##### [SET LCDTYPE] ###################################