调试指南
调试开关
在 Luban-Lite 根目录下执行 make linux-menuconfig,进入 kernel 的功能配置,打开 DE
模块的 DEBUG 选项:
Drivers options ---> Drivers debug ---> [*] Enable Display driver debug
打印输出显示驱动 pr_debug() 调试信息
MPP FB 测试用例
Local packages options ---> ArtInChip packages options ---> aic-mpp ---> [*] Install MPP FB test programs
编译 MPP FB 测试用例
CPU 绘制 color block
在 Luban-Lite 根目录下执行
scons --menuconfig
,进入 menuconfig
的功能配置界面,按如下选择:Board options ---> Graphics Support ---> [*] Display color block
系统启动时,CPU 在 framebuffer 上绘制红,绿,蓝,黑,白五种颜色的矩形色块。
DE color bar 模式
显示引擎 colorbar 模式,忽略 framebuffer 数据,直接向显示接口传输 colorbar 数据。colorbar 模式仅供调试使用
使能 colorbar
模式命令:
m 0x18a00004 1 m 0x18a00008 1
禁用 colorbar 模式命令:
m 0x18a00004 0 m 0x18a00008 1
背景色输出
显示引擎输出 指定背景色 ,忽略 framebuffer 数据。背景色输出 依赖 MPP FB 测试用例:
设置背景色命令:
bg_color -m 1 -r 128 -g 0 -b 0
背景色测试可用于检测 RGB pin 的输出状态是否正确。上述命令生效后,仅 R7 引脚为高电平,其余数据 pin 为低电平
禁用背景色命令:
bg_color -m 0