Uboot logo an LVDS RGB 24 shows not normal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uboot logo an LVDS RGB 24 shows not normal

Jump to solution
7,616 Views
zhilinhuang
Contributor III

Hi ,everybody

我用的 是  imx6q   uboot  版本是    uboot-imx-imx_v2009.08_3.0.35_4.1.0

我公司现在采购了一块lvds 8 24 位的 ,分辨率为1024*768

现在的问题是,内核logo显示正常,uboot  logo 显示不正常,帮忙支持一下,谢谢。

我的具体操作如下

图片信息如下

pastedImage_0.png

按照规格书得出以下信息

HSPW =70     

HBPD =160 -70 = 90

HFPD = 160

VSPW 10

VBPD = 23 -10 =13

VFPD = 15

内核logo 显示正常,ubootlogo 显示不正常

具体如下

修改了 uboot

第一处 board/freescale/mx6q_sabresd/mx6q_sabresd.c

static struct fb_videomode lvds_xga = {

93    "XGA", 60, 1024, 768, 15385, 90, 160, 13, 15, 70, 10, // 修改成了以上得出的结果

94     FB_SYNC_EXT,

95     FB_VMODE_NONINTERLACED,

96     0,

  97 };

第二处:

ret = ipuv3_fb_init(&lvds_xga, di, IPU_PIX_FMT_RGB24, //原来是rgb666

                          DI_PCLK_LDB, 65000000);

         if (ret)

                  puts("LCD cannot be configured\n");

修改启动bootargs

bootargs_base=setenv bootargs console=ttymxc0,115200 video=mxcfb0:dev=ldb,LDB-XGA,if=RGB24

显示如下

pastedImage_1.png

修改内核:

1

board-myimx6ek200.c

….

static struct ipuv3_fb_platform_data sabresd_fb_data[] = {

{

.disp_dev = "ldb",

1792     .interface_pix_fmt = IPU_PIX_FMT_RGB24,

1793     .mode_str = "LDB-XGA",

1794     //.default_bpp = 16,

1795     .default_bpp = 32,

1796     .int_clk = false,

1797      {

……..

2,修改 linux-2.6-imx-imx_3.0.35_4.1.0/drivers/video/mxc/ldb.c

106 static struct fb_videomode ldb_modedb[] = {

107 {

108 //"LDB-WXGA", 60, 1280, 800, 14065,

109 "LDB-WXGA", 60, 1024,768 , 15385,

110 //40, 40,

111 90, 160,

112 13, 15,

113 //21, 7,

114 70, 10,

115 0,

116 FB_VMODE_NONINTERLACED,

117 FB_MODE_IS_DETAILED,},

118     {

119      "LDB-XGA", 60, 1024, 768, 15385,

120      90, 160,

121      13, 15,

122      70, 10,

123      0,

124      FB_VMODE_NONINTERLACED,      //修改

125      FB_MODE_IS_DETAILED,},

内核logo 显示正常

pastedImage_2.png

请问该如果修改uboot logo 正常显示  我已经研究2天了还是没有找到解决的方法

我改了一下几个参数还是没有解决,

#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
#define LCD_BPPLCD_COLOR16
#define CONFIG_BMP_8BPP

0 Kudos
1 Solution
4,985 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi zhilin,

You can refer to the thread Patch to support uboot logo keep from uboot to kernel for NXP Linux and Android BSP (HDMI, LCD and L...  in our community.
Have a great day,
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
23 Replies
4,986 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi zhilin,

You can refer to the thread Patch to support uboot logo keep from uboot to kernel for NXP Linux and Android BSP (HDMI, LCD and L...  in our community.
Have a great day,
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
651 Views
zhilinhuang
Contributor III

HI Dan Wang

你好,在吗,我的打了补丁后  运行 ts_calibrate  校准完成后。没有清屏返回。还是停留在老界面

好像运行qt 也一样  ctrl + C  后 界面没有清屏。这是不是补丁有问题啊。还是要修改那个地方

Have a great day

0 Kudos
651 Views
zhilinhuang
Contributor III

HI Dan Wang ,

thanks for your help  , 我准备尝试一下。

0 Kudos