How to create multiple frame buffer layer under /dev

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

How to create multiple frame buffer layer under /dev

1,513 Views
ekrem_sahin
Contributor I

Hello,

I am trying to create multiple frame buffer device under /dev such as /dev/fb0 , /dev/fb1 ,/dev/fb2 to /dev/fbN and for this reason need to modify kernel source for imx8qm.I found that there is drivers/video/fbdev/imxfb.c may be an option but it is not added to build  system for imx8qm.I am using yocto release 4.14.98 and need some idea to manage this.

Could you please give me some start point ?

Best Regards

0 Kudos
2 Replies

1,436 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ekrem,

Do not understand the question, but you can create a multiple fbN since  Fbi displays the specified file(s) on the linux console using the framebuffer device, now if you like to have multiple /dev/fbX it need to have different displays to do it, this page will show you:

Adding a custom display 

Regards

0 Kudos

1,436 Views
ekrem_sahin
Contributor I

Hello,

Letme ask my question in a more detailed manner.I have only hdmi device on my imx8qm-mek device which creates /dev/fb0 and want to create more frame buffer layer on hdmi since for example I want to put a qt application onto /dev/fb0 and for example, want to create multiple smaller square areas on top of qt application to draw different shapes,text etc which I need to have different frame buffer devices such as /dev/fb1, /dev/fb2 to /dev/fbn.

By modifying some of kernel sources in hacky way, I could manage to create /dev/fb1 but it is not working as I expected and I need to do it correctly.So Could you please help me on this ?

Best Regards

0 Kudos