How to permanently set the framebuffer resolution to 1024x768 on i.MX6 board

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

How to permanently set the framebuffer resolution to 1024x768 on i.MX6 board

跳至解决方案
2,551 次查看
li-chen
Contributor II

Hi,

We are writing an application to capture desktop images (via /dev/graphics/fb0) on i.MX6 board, then send it out to another computer. We would like to permanently set the framebuffer resolution to 1024x768 or 1024x600. Note: there is no monitor in this setup so the display compatibility is not an issue. Also, if possible, we would like to use 16bpp instead of the 32bpp default value. Anyone has an idea where we should modify the code to do this?  Thanks.

标签 (4)
0 项奖励
回复
1 解答
1,519 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Please take a look to the following  Application Note :

http://cache.freescale.com/files/dsp/doc/app_note/AN4182.pdf

Basically you need to modify your bootargs and leave this fix, and use only one mode in the fb struct mode.


Have a great day,
Jaime

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,520 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Please take a look to the following  Application Note :

http://cache.freescale.com/files/dsp/doc/app_note/AN4182.pdf

Basically you need to modify your bootargs and leave this fix, and use only one mode in the fb struct mode.


Have a great day,
Jaime

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

0 项奖励
回复
1,519 次查看
klldmofashi
Contributor II

Hi Jaime,

We have the same issue. We have a iMX6 sabre SD board. We downloaded the source code of jb4.2.2_1.1.0. We followed the guide and flashed the image to the board. We tried to set the resolution to be 1920x1080 and 1280x720 and they work fine. However, when we tried 1024x768, it results in the image like the following, do you have some suggestion on how to solve this?

WP_000245.jpg

The boot args we are using are:

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1280x720M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale

setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1024x768M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale

0 项奖励
回复