S5PV210开发板 VGA测试【转】

本文转载自:http://www.cnblogs.com/endlessli/archive/2011/07/07/2099865.html

S5PV210开发板 VGA测试

WY-S5PV210 V3 开发板VGA输出 设置与测试

一、修改内核使其支持VGA
<!--[if !supportLists]-->1、  <!--[endif]-->修改Makefile

打开drivers/video/Samsung/Makefile增加

obj-$(CONFIG_FB_S3C_VGA)        += s3cfb_vga.o

<!--[if !supportLists]-->2、  <!--[endif]-->修改Kconfig

打开drivers/video/Samsung/Kconfig增加

 config FB_S3C_VGA

        bool "s3c VGA"

        select BACKLIGHT_PWM

        depends on MACH_WYV210

        ---help---

          This enables support for 1024*768 VGA

<!--[if !supportLists]-->3、  <!--[endif]-->在menuconfig选中添加的VGA

#cd /opt/kernel

#make menuconfig

依次点击Device Drivers->Graphics support->Support for frame buffer devices-> Select LCD Type

选择s3c VGA

保存

 make zImage

<!--[if !supportLists]-->二、调整各VGA时序参数

启动android系统后用使用串口工具连接电脑和开发板(WY-S5PV210开发板),使用SercureCRT工具连接开发

板,进入/sys/devices/platform/s3cfb目录

通过执行类似以下命令设置VGA时序参数

#echo “a b c d e f”>timing

a:

b:水平显示前沿

c: 水平显示后沿

d:

e: 垂直显示前沿

f: 垂直水平显示后沿

一般可以通过

#cat timing

h_sw:60 h_fp:120 h_bp:56 v_sw:15  v_fp:12 v_bp:9

查看当前的时序,然后再做微调整,如

echo “50 120 56 15 12 9”>timing

OK,测试结果如下图

posted @ 2017-09-05 18:39  请给我倒杯茶  阅读(374)  评论(0)    收藏  举报