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
3. default config
- imx_v7_defconfig
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
已解决! 转到解答。
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.
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.