Android i.MX8mq: How to Using OpenGL with overlay frame 1 buffer /dev/graphics/fb1

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

Android i.MX8mq: How to Using OpenGL with overlay frame 1 buffer /dev/graphics/fb1

1,608 Views
hongxingyu1982
Contributor III

Hi, sir

Now I used the imx8mq evk board to test the dual display, one is hdmi(/dev/graphics/fb0), the other is mipi-to-hdmi(/dev/graphics/fb1). When I set the correct bootargs and dts files, both display can work, but with the same context when I run the demo. So If I would like to only control the /dev/graphics/fb1 using OpenGL,  How can I set?

The Andriod version is :evk_8mq_eng 9 1.0.0-ga-rc3 20190114 dev-keys

0 Kudos
Reply
4 Replies

1,495 Views
hongxingyu1982
Contributor III

Hi sir

I would like to use the blew parameter to control fb1

    fd = open("/dev/graphics/fb1", O_RDWR);
    EGLNativeWindowType window = (EGLNativeWindowType)fd;

But it build error as blew:

frameworks/native/opengl/tests/OPENGLESTestRGB/opengl_es_test_rgb.cpp:40:31: error: cast to 'ANativeWindow *' from smaller integer type 'int' [-Werror,-Wint-to-pointer-cast]
        EGLNativeWindowType window = (EGLNativeWindowType)fd;

Does there anyone else know this issue, and fix it?

BR

0 Kudos
Reply

1,495 Views
hongxingyu1982
Contributor III

Hi everyone

Is there anyone else can fix this issue ?

BR

0 Kudos
Reply

1,495 Views
hongxingyu1982
Contributor III

Hi anyone

Is there anything update ?

BR

0 Kudos
Reply

1,495 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, you are using an unofficial Android BSP from us. I suggest using the NXP Android BSPs. 

Android OS for i.MX Applications Processors | NXP 

However, only mirrored display is supported by our BSP. Having different content in both display is not supported.

I apologize for the inconvenience this could give you.

Best regards,

Diego.

0 Kudos
Reply