我的系统是Android4.4.2
修改了kernel下的board-mx6q_sabresd.c文件添加了如下代码:
{
.disp_dev = "lcd",
.interface_pix_fmt = IPU_PIX_FMT_RGB565,
.mode_str = "CLAA_WVGA",
.default_bpp = 32,
.int_clk = false,
.late_init = false,
},、
uboot启动参数我是这样设置的:
bootargs=console=ttymxc0,115200 init=/init video=mxcfb0:dev=lcd,CLAA_WVGA,if=RDB565 video=mxcfb1ff video=mxcfb2ff fbmem=10M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale
修改
kernel_imx/drivers/video/mxc/mxc_lcdif.c
static struct fb_videomode lcdif_modedb[] = {
30 {
31 // 800x480 @ 57 Hz , pixel clk @ 27MHz
32 "CLAA-WVGA", 60, 640, 480, 40000, 50, 110, 34, 11, 3, 2,
33 FB_SYNC_CLK_LAT_FALL,
34 FB_VMODE_NONINTERLACED,
35 0,},
36 {
37 /* 480x640 @ 60 Hz */
38 /*"VGA", 60, 640, 480, 41701, 60, 41, 10, 5, 20, 10,
39 0,
40 FB_VMODE_NONINTERLACED,
41 0,},*/
42 //"VGA", 60, 640, 480, 29850, 30, 50, 10, 20, 3, 1,
43 "VGA", 60, 800, 480, 36937, 30, 50, 10, 20, 3, 1,
44 // FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
45 // FB_SYNC_CLK_LAT_FALL,
46 2,
47 FB_VMODE_NONINTERLACED,
48 0},
49 {
50 /* 800x480 @ 60 Hz , pixel clk @ 32MHz */
51 "SEIKO-WVGA", 60, 1280, 480, 29850, 89, 164, 23, 10, 10, 10,
52 FB_SYNC_CLK_LAT_FALL,
53 FB_VMODE_NONINTERLACED,
54 0,},
就是现实 染色那里不对 急急急求解
显示图片如图::G:\1.jpg
|