测试指南
测试环境
硬件
- D12x 开发板
- Host 端的板子(D21x 开发板可满足大部分测试的格式需求)
- 跨接两个板子的子板、或者数据排线
软件
- MDI 模块的测试 demo:test_mdi
- PC 端的串口终端软件,用于 PC 和开发板进行串口通信
软件配置
test_mdi 配置
在 Luban-Lite 根目录下执行 scons --menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:
bash
Drivers options --->
Drivers examples --->
[*] Enable MDI driver test command
1
2
3
2
3
test_mdi 测试
test_mdi 启动 MDI,接收 Host 端传来的数据和命令,并将数据传给 GE、DE 模块去处理和显示。
在打开 test_mdi 的编译后,板子上可直接运行 test_mdi 命令:
bash
aic /> test_mdi -h
Compile time: Feb 29 2024 16:16:41
Usage: test_mdi [options]:
-c, --count the number of capture frame
-h, --help
Example: test_mdi -c 1
aic /> test_mdi
Bus mode: 8080, Pin: X16, Big endian: 0
[I] aic_find_panel()59 find panel driver : panel-rgb
aic />
aic /> [W] dbi_cmd_process()509 unknown command 0
[I] dbi_cmd_unsupported()444 Unsupported cmd f7
[I] dbi_cmd_unsupported()444 Unsupported cmd ec
[I] dbi_cmd_unsupported()444 Unsupported cmd c0
[I] dbi_cmd_unsupported()444 Unsupported cmd c1
[I] dbi_cmd_unsupported()444 Unsupported cmd c5
[I] dbi_cmd_fr_set()412 pixclk 51886560 is too large
Recv framerate 68, pixclk should be 50000000
[I] dbi_cmd_unsupported()444 Unsupported cmd b4
[I] dbi_cmd_unsupported()444 Unsupported cmd b6
[I] dbi_cmd_unsupported()444 Unsupported cmd b7
[I] dbi_cmd_unsupported()444 Unsupported cmd be
[I] dbi_cmd_unsupported()444 Unsupported cmd e9
[I] dbi_cmd_unsupported()444 Unsupported cmd b7
[I] dbi_cmd_unsupported()444 Unsupported cmd f4
[I] dbi_cmd_unsupported()444 Unsupported cmd f4
[I] dbi_cmd_unsupported()444 Unsupported cmd 35
[I] dbi_cmd_unsupported()444 Unsupported cmd 44
[I] dbi_cmd_unsupported()444 Unsupported cmd 33
[I] dbi_cmd_unsupported()444 Unsupported cmd 37
Recv width: 320 (0 - 319)
Recv height: 480 (0 - 479)
[I] dbi_cmd_unsupported()444 Unsupported cmd 36
Recv DBI 24bits(7) -> DPI 24bits(7), Flag 1
[I] dbi_cmd_unsupported()444 Unsupported cmd 11
Allocated 4 video buffer for MDI:
Buf Plane size
0 0x400a40e0 1843200
1 0x402660e0 1843200
2 0x404280e0 1843200
3 0x405ea0e0 1843200
[I] aic_find_panel()59 find panel driver : panel-rgb
[I] dbi_cmd_disp_on()233 Turn on DE
MDI frame rate: 17.3, frame 1000 / 57.7 seconds
MDI frame rate: 31.2, frame 1000 / 32.0 seconds
MDI frame rate: 31.2, frame 1000 / 32.0 seconds
MDI frame rate: 31.2, frame 1000 / 31.9 seconds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50