IMX6Solo, how the Qt hellogl2 example works

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

IMX6Solo, how the Qt hellogl2 example works

跳至解决方案
66,666 次查看
SeungGeun_Lee
Contributor I

I would like to know how the Qt hellogl2 example works.

 

0. Enviroment

    - i.MX6 Solo custom board + Yocto + "X11" + Qt5

 

1. Kernel

    - imx_4.19.35_1.1.0

    https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm?h=rel_imx_4.19.35_1.1.0

 

2. default dts

    - imx6dl-sabresd.dts

    https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6dl-sabresd.dts?h=rel...

 

3. default config

    - imx_v7_defconfig

    https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/configs/imx_v7_defconfig?h=rel_im...

 

3. my kernel dts (attached file)

4. my kernel config (attached file)

5. dmesg (attached file)

6. qt hellogl2 log (attached file)

7. Xorg log (attached file)

 

As shown in the picture below, the opengl area only shows a black screen

my__hellogl2_capture.png

标签 (3)
0 项奖励
回复
1 解答
66,655 次查看
SeungGeun_Lee
Contributor I

i resolved issue

 

1. My xorg.conf created after yocto build is as follows.

root@imx6solosabresd-custom:~# cat /etc/X11/xorg.conf


Section "Device"
    Identifier "i.MX Accelerated Framebuffer Device"
    Driver "vivante"
    Option "fbdev" "/dev/fb0"
    Option "vivante_fbdev" "/dev/fb0"
    Option "HWcursor" "false"
EndSection

Section "ServerFlags"
    Option "BlankTime" "0"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
EndSection

 

2. When I applied xorg.conf as the contents of the i.MX Reference Manual, opengl worked.

i.MX Reference Manual

https://www.nxp.com/docs/en/reference-manual/i.MX_Reference_Manual_Linux.pdf

 

5.3.2.5 xorg.conf for i.MX

Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
EndSection


Section "Module"
    Load "dbe"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "dri"
EndSection


Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "XkbLayout" "us"
    Option "XkbModel" "pc105"
    Option "XkbRules" "xorg"
EndSection

Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
EndSection

Section "Device"
    Identifier "Your Accelerated Framebuffer Device"
    Driver "vivante"
    Option "fbdev" "/dev/fb0"
    Option "vivante_fbdev" "/dev/fb0"
    Option "HWcursor" "false"
EndSection

Section "Monitor"
    Identifier "Configured Monitor"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Your Accelerated Framebuffer Device"
    DefaultDepth 24
EndSection

Section "DRI"
    Mode 0666
EndSection

 

3. 

my__hellogl2_capture_2.png

在原帖中查看解决方案

2 回复数
66,656 次查看
SeungGeun_Lee
Contributor I

i resolved issue

 

1. My xorg.conf created after yocto build is as follows.

root@imx6solosabresd-custom:~# cat /etc/X11/xorg.conf


Section "Device"
    Identifier "i.MX Accelerated Framebuffer Device"
    Driver "vivante"
    Option "fbdev" "/dev/fb0"
    Option "vivante_fbdev" "/dev/fb0"
    Option "HWcursor" "false"
EndSection

Section "ServerFlags"
    Option "BlankTime" "0"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
EndSection

 

2. When I applied xorg.conf as the contents of the i.MX Reference Manual, opengl worked.

i.MX Reference Manual

https://www.nxp.com/docs/en/reference-manual/i.MX_Reference_Manual_Linux.pdf

 

5.3.2.5 xorg.conf for i.MX

Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
EndSection


Section "Module"
    Load "dbe"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "dri"
EndSection


Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "XkbLayout" "us"
    Option "XkbModel" "pc105"
    Option "XkbRules" "xorg"
EndSection

Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
EndSection

Section "Device"
    Identifier "Your Accelerated Framebuffer Device"
    Driver "vivante"
    Option "fbdev" "/dev/fb0"
    Option "vivante_fbdev" "/dev/fb0"
    Option "HWcursor" "false"
EndSection

Section "Monitor"
    Identifier "Configured Monitor"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Your Accelerated Framebuffer Device"
    DefaultDepth 24
EndSection

Section "DRI"
    Mode 0666
EndSection

 

3. 

my__hellogl2_capture_2.png

66,648 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello SeungGeun,

 

What i can see the code it working, it just show you the QT while you can variance the alpha blending

 

Regards

0 项奖励
回复