How to write a freescale imx6q control fb(framebuffer) program for dual display(L3.10.53 BSP(yocto project))?

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

How to write a freescale imx6q control fb(framebuffer) program for dual display(L3.10.53 BSP(yocto project))?

1,913 Views
陳冠儒
Contributor IV

Hi,all:

Because L3.10.53 BSP (yocto project) is only open fb0  to  use, so i can not throw display information  to show another fb for  dual display.

The L3.10.53 BSP  dual display is not the beginning of the same show  screen.

Another screen,i  must  throw things to display,because  Framebuffer  data  is  0.

So,

How  to write freescale imx6q control  fb(framebuffer) program

Or how to control fb?

My  experience is not enough, do not  know  how to write  this  control program, please help  me.

please help me,thanks.

(中譯:

因為 L3.10.53 BSP(yocto project)只打開fb0去使用,所以在雙顯示下我不能丟顯示資訊到另一個fb

L3.10.53 BSP 雙顯不是一開始就秀相同的畫面。

另外一個畫面,我必須丟東西去顯示才行,因為Framebuffer 資料是0

所以,如何去寫一個freescale imx6q fb的控制程式呢?

或者如何去控制fb?

我經驗不夠,不知道如何撰寫此控制程式,請幫忙我一下。

請幫助我,感謝。

)

Labels (4)
0 Kudos
Reply
3 Replies

1,254 Views
igorpadykov
NXP Employee
NXP Employee

Hi 陳 冠儒

for framebuffer usage one can look at

https://www.kernel.org/doc/Documentation/fb/framebuffer.txt

Linux Software User Manual (i.MX6) - BlueWiki

and sect.6.2.1 IPU Frame Buffer Drivers Overview attached

Linux Manual

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

1,254 Views
陳冠儒
Contributor IV

hi,igorpadykov:

Thanks for u help.

After see your say's site and manual,I still do not know how to achieve dual display in L3.10.53, I use a combination of parameters IPU and DISP for LVDS1,

ex:

lvds-channel@1 {

  fsl,data-mapping = "spwg";

  fsl,data-width = <18>;

  primary;

  ipu_id = <0>;

  disp_id = <1>;

...

}

Environment variables set:

setenv bootargs_mmc1 'setenv bootargs ${bootargs} root=/dev/mmcblk2p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 console=ttymxc0,115200'

mxcfb0 (fb0) have display,but  mxcfb1 (fb2) have not display.

At this point I have to open fb2, as follows:

echo 0 > /sys/class/graphics/fb2/blank

Because L3.10.53 BSP (yocto project) is only open fb0 to use, so I can not throw display information to show another fb for dual display.

The L3.10.53 BSP dual display is not the beginning of the same show screen.

Another screen,I must throw things to display,because Framebuffer data is 0.

So,

How to Write freescale imx6q control fb (framebuffer) control program

Or how to control fb?

My experience is not enough, do not know how to write this control program, please help me.

please help me,thanks.

(中譯:

謝謝你的幫忙。

看過您提供的網站與手冊後,我仍然不知道在L3.10.53版如何去達成雙顯示,我使用 IPU and DISP 的組合對 LVDS1,如:

lvds-channel@1 {

  fsl,data-mapping = "spwg";

  fsl,data-width = <18>;

  primary;

  ipu_id = <0>;

  disp_id = <1>;

...

}

環境變數設定:

setenv bootargs_mmc1 'setenv bootargs ${bootargs} root=/dev/mmcblk2p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 console=ttymxc0,115200'

mxcfb0 (fb0) 有顯示,但 mxcfb1 (fb2) 沒有顯示.

此時我有打開fb2,如下:

echo 0 > /sys/class/graphics/fb2/blank

因為 L3.10.53 BSP(yocto project)只打開fb0去使用,所以我不能丟顯示資訊到另一個fb在雙顯示下。

L3.10.53 BSP 雙顯不是一開始就秀相同的畫面。

另外一個畫面,我必須丟東西去顯示才行,因為Framebuffer 資料是0 。

所以,如何去寫一個freescale imx6q 的控制程式呢?

或者如何去控制fb?

我的經驗不夠,不知道如何撰寫此控制程式,請幫忙我一下。

請幫助我,感謝。

)

0 Kudos
Reply

1,254 Views
陳冠儒
Contributor IV

hi,igorpadykov:

Thanks for u help.

Let me look at your say's site and manual.

0 Kudos
Reply