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,554件の閲覧回数
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,522件の閲覧回数
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,523件の閲覧回数
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,522件の閲覧回数
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 件の賞賛
返信