IMX6Solo, how the Qt hellogl2 example works

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6Solo, how the Qt hellogl2 example works

ソリューションへジャンプ
66,674件の閲覧回数
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,663件の閲覧回数
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,664件の閲覧回数
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,656件の閲覧回数
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 件の賞賛
返信