Skip to contentSkip to conversation

imx6q-sabresd: Add a qt5 defconfig variant

PATCH RESEND New Fabio Estevam 3 participants 6 messages Jun 21, 2017 – Jun 28, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

From: Fabio Estevam <[email protected]>

Introduce imx6q-sabresd_qt5_defconfig that supports the opensource Etnaviv graphical stack.

This defconfig provides a way to quickly test some graphical applications, such as kmscube, qt5, glmark2.

Currently kernel mainline exhibits issues when running cpufreq as ondemand governor on mx6, so add a linux fragment that disables such option for the time being.

---
Changes since v1:
- Use latest U-Boot and kernel versions

 board/freescale/imx6q-sabresd/linux.fragment       |  1 +
 board/freescale/imx6q-sabresd/readme.txt           | 23 +++++++++
 .../imx6q-sabresd/rootfs_overlay/root/sabresd.json | 15 ++++++
 configs/imx6q-sabresd_qt5_defconfig                | 59 ++++++++++++++++++++++
 4 files changed, 98 insertions(+)
 create mode 100644 board/freescale/imx6q-sabresd/linux.fragment
 create mode 100644 board/freescale/imx6q-sabresd/rootfs_overlay/root/sabresd.json
 create mode 100644 configs/imx6q-sabresd_qt5_defconfig
board/freescale/imx6q-sabresd/linux.fragment new file +1 -0
new file mode 100644
index 0000000..39bec58
@@ -0,0 +1 @@
+# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
board/freescale/imx6q-sabresd/readme.txt +23 -0
index 10e973c..b57c4fb 100644
@@ -54,4 +54,27 @@ To boot your newly created system:
   emulator at 115200 bps, 8n1;
 - power on the board.
 
+Testing graphics on the i.MX6Q Sabre SD board
+=============================================
+
+The imx6q-sabresd_qt5_defconfig allows to quickly test the graphics
+capabilities of i.MX6 using the opensource Etnaviv graphics stack
+and kernel mainline.
+
+In order to build it:
+
+make imx6q-sabresd_qt5_defconfig
+make
+
+Then flash the SD card as explained above.
+
+Running kmscube application:
+
+# kmscube -D /dev/dri/card1
+
+Running Qt5 Cinematic Demo:
+
+# export QT_QPA_EGLFS_KMS_CONFIG=/root/sabresd.json
+# /usr/share/Qt5/CinematicExperience/Qt5_CinematicExperience
+
 Enjoy!
board/freescale/imx6q-sabresd/rootfs_overlay/root/sabresd.json new file +15 -0
new file mode 100644
index 0000000..9469dc1
@@ -0,0 +1,15 @@
+{
+  "device": "/dev/dri/card1",
+  "hwcursor": false,
+  "pbuffers": true,
+  "outputs": [
+    {
+      "name": "HDMI-1",
+      "mode": "off"
+    },
+    {
+      "name": "LVDS-1",
+      "mode": "1024x768"
+    }
+  ]
+}
configs/imx6q-sabresd_qt5_defconfig new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

Hello,

configs/imx6q-sabresd_qt5_defconfig line 36

Quoted 4 lines · Fabio Estevam
configs/imx6q-sabresd_qt5_defconfig new file +4 -0
+BR2_PACKAGE_MESA3D=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y

Just curious, why are you enabling the swrast drivers here?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
reviewer
#2 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

Hi Thomas,

Quoted 10 lines · Thomas Petazzoni

Hello,

configs/imx6q-sabresd_qt5_defconfig line 36

Quoted 4 lines · Fabio Estevam
configs/imx6q-sabresd_qt5_defconfig new file +4 -0
+BR2_PACKAGE_MESA3D=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y

Just curious, why are you enabling the swrast drivers here?

Good point: actually I don't need it.

Would you like to respin it without this option?

Thanks

#3 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

Hello,

Quoted 13 lines · Fabio Estevam
Quoted 10 lines · Thomas Petazzoni

Hello,

configs/imx6q-sabresd_qt5_defconfig line 36

Quoted 4 lines · Fabio Estevam
configs/imx6q-sabresd_qt5_defconfig new file +4 -0
+BR2_PACKAGE_MESA3D=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y  

Just curious, why are you enabling the swrast drivers here?

Quoted 3 lines

Good point: actually I don't need it.

Would you like to respin it without this option?

I can definitely remove them when applying, but I won't be able to do a runtime test to verify that everything still works properly. So it would probably be better if you could remove those lines, and verify that things are still working as expected.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
reviewer
#4 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

Hi Thomas,

Quoted 4 lines · Thomas Petazzoni

I can definitely remove them when applying, but I won't be able to do a runtime test to verify that everything still works properly. So it would probably be better if you could remove those lines, and verify that things are still working as expected.

I have tested and it works fine. Just sent a v3, thanks.

reviewer
#5 lore raw

PATCH RESEND v2 1/1 imx6q-sabresd: Add a qt5 defconfig variant

Hi Thomas,

Quoted 11 lines · Fabio Estevam

Hi Thomas,

Quoted 4 lines · Thomas Petazzoni

I can definitely remove them when applying, but I won't be able to do a runtime test to verify that everything still works properly. So it would probably be better if you could remove those lines, and verify that things are still working as expected.

I have tested and it works fine. Just sent a v3, thanks.

Are you happy with v3?