How to set the HDMI output 1920*1080p,my imx6q now is 1024*768p

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set the HDMI output 1920*1080p,my imx6q now is 1024*768p

跳至解决方案
4,229 次查看
michaelhan
Contributor II

How to modify the codes?

My android version is 6.0.1

标签 (2)
0 项奖励
回复
1 解答
3,638 次查看
michaelhan
Contributor II

按这样修改

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=256M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled

后,实际物理size更小了,640x480

我看到fb0下也确实只有640x480p这个需要怎么去改,让fb0下有1920x1080p,我想是不是这样了才会支持?

root@sabresd_6dq:/ # wm size

Physical size: 640x480

root@sabresd_6dq:/ # cd /sys/class/graphics/f

fb0/ fb1/ fbcon/

root@sabresd_6dq:/ # cd /sys/class/graphics/fb0

root@sabresd_6dq:/sys/class/graphics/fb0 # cat m

mode modes

root@sabresd_6dq:/sys/class/graphics/fb0 # cat modes

V:640x480p-60

V:640x480p-60

root@sabresd_6dq:/sys/class/graphics/fb0 #

huiyun.han@fhsjdz.com

在原帖中查看解决方案

0 项奖励
回复
14 回复数
3,638 次查看
wuwenbing
Contributor I

replace a display that supports 1080P

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

If you want to set the HDMI display 1920*1080p, you can set the Kernel command line (bootargs) in the u-boot.

video=mxcfb1:dev=hdmi,1920x1080M@60,

Hope this can help you

Best Regards

Rita

0 项奖励
回复
3,638 次查看
michaelhan
Contributor II

这个设了,没用。

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=256M init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled

而且我在/sys/class/graphics/fb0 查看modes

只有U:1024x768p-60

fb1 

只有U:240x320p-60

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

你好,请问你这里板子是买的NXP官网的开发板还是自己参考我们开发板设计的?我看到你的uboot里内核参数设置了,你这里是要LVDS和HDMI同时显示么?

Best Regards

Rita

0 项奖励
回复
3,638 次查看
michaelhan
Contributor II

Rita,

买的官网板子,目前是只需要显示HDMI。

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

只HDMI显示的话,你设置:

 video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off
video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M

就可以了,你上面的设置是LVDS和HDMI同时显示的话,显示的分辨率是1024*768p这个的。HDMI单独显示是可以实现1080P的。你改一下再试试~~

Best Regards

Rita

0 项奖励
回复
3,639 次查看
michaelhan
Contributor II

按这样修改

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=256M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled

后,实际物理size更小了,640x480

我看到fb0下也确实只有640x480p这个需要怎么去改,让fb0下有1920x1080p,我想是不是这样了才会支持?

root@sabresd_6dq:/ # wm size

Physical size: 640x480

root@sabresd_6dq:/ # cd /sys/class/graphics/f

fb0/ fb1/ fbcon/

root@sabresd_6dq:/ # cd /sys/class/graphics/fb0

root@sabresd_6dq:/sys/class/graphics/fb0 # cat m

mode modes

root@sabresd_6dq:/sys/class/graphics/fb0 # cat modes

V:640x480p-60

V:640x480p-60

root@sabresd_6dq:/sys/class/graphics/fb0 #

huiyun.han@fhsjdz.com

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

I have tried it on my board. Runing the andorid6.0 BSP. It works well on my side. My u-boot kernal command lines settting are as follows:

uboot command line setting.PNG

When the board boot up, the Physical size: 1920x1080.
Capture.PNG

I think your problem is caused by your HDMI screen. You can have a check.

Have a nice day

Rita

0 项奖励
回复
3,638 次查看
michaelhan
Contributor II

Rita,

thanks,我换了一个支持1080p显示屏确实可以了。

我还有个问题,就是u-boot kernal command lines是烧录完成后启动板子时设置,但我想在build代码时就把这个编译进去需要修改哪里的代码?

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hello michael,

Android 6.0里面我还没有改过,不过以前老的版本的BSP里面我弄过,是可以的。

2u-boot command source code.PNG

你可以参考一下。


Have a great day,
Rita

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

0 项奖励
回复
3,638 次查看
michaelhan
Contributor II

ok,thanks

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

If your problem have solved, could you help close this thread by click mark correct botton? Thanks.

If you have new questions you can create new thread in our community.
Have a great day,
Rita

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

0 项奖励
回复
3,638 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi michael,

Here which board are you using?

Have a nice day

Rita

0 项奖励
回复
3,638 次查看
michaelhan
Contributor II

Rita 你好,

我板子 imx 6 Series

主芯片看到是,MCIMX6Q6AVT10AD

0 项奖励
回复