Skip to contentSkip to conversation

imx6q-sabresd: Add a qt5 defconfig variant

PATCH Superseded Fabio Estevam 2 participants 7 messages Jun 21, 2017 – Aug 21, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

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

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 v2:
- Drop BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST (Thomas)
- Bump to the latest kernel 4.11.6

 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                | 56 ++++++++++++++++++++++
 4 files changed, 95 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 +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.7.4
author reviewer
#1 lore raw

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

Hi Thomas,

Quoted 10 lines · Fabio Estevam

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.

Quoted 5 lines

---
Changes since v2:
- Drop BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST (Thomas)
- Bump to the latest kernel 4.11.6

Any feedback, please?

author reviewer
#2 lore raw

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

Quoted 13 lines · Fabio Estevam

Hi Thomas,

Quoted 10 lines · Fabio Estevam

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.

Quoted 7 lines
Quoted 5 lines

---
Changes since v2:
- Drop BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST (Thomas)
- Bump to the latest kernel 4.11.6

Any feedback, please?

Ping, I have been trying to submit this patch for months, but no progress so far.

#3 lore raw

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

In reply to Fabio Estevam
Quoted 11 lines · Fabio Estevam

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.

Hi Fabio, I applied to next, with a lot of changes:

- Add Fabio to DEVELOPERS
- Rename linux config fragment to linux_qt5.fragment
- Add comment to linux_qt5.fragment why it is needed
- Add explicit CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y to it
- Reorder defconfig entries to they match imx6q-sabresd_defconfig
- Remove strace and host-uboot-tools, neither seems to be needed
- Drop BR2_PACKAGE_QT5BASE_LICENSE_APPROVED, it no longer exists
- Replace BR2_TARGET_ROOTFS_EXT2_BLOCKS with BR2_TARGET_ROOTFS_EXT2_SIZE
- Regenerate .gitlab-ci.yml

Could you re-test based on the next branch?

Also, you set BR2_TOOLCHAIN_BUILDROOT_GLIBC=y but none of the packages selected
seem to need it. Is there a reason why it is needed? Could you either remove it (after testing with uClibc-ng) or add a comment why it is needed and remove BR2_TOOLCHAIN_BUILDROOT_WCHAR=y?

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
author reviewer
#4 lore raw

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

Hi Arnout,

Quoted 12 lines · Arnout Vandecappelle

Hi Fabio, I applied to next, with a lot of changes:

- Add Fabio to DEVELOPERS
- Rename linux config fragment to linux_qt5.fragment
- Add comment to linux_qt5.fragment why it is needed
- Add explicit CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y to it
- Reorder defconfig entries to they match imx6q-sabresd_defconfig
- Remove strace and host-uboot-tools, neither seems to be needed
- Drop BR2_PACKAGE_QT5BASE_LICENSE_APPROVED, it no longer exists
- Replace BR2_TARGET_ROOTFS_EXT2_BLOCKS with BR2_TARGET_ROOTFS_EXT2_SIZE
- Regenerate .gitlab-ci.yml

Quoted 1 line

Could you re-test based on the next branch?

Thanks for reworking the patch and applying it.

I am currently out of the office without hardware access to test it.

Will test it as soon as I am back to the office (week of August 21)

Quoted 5 lines

Also, you set BR2_TOOLCHAIN_BUILDROOT_GLIBC=y but none of the packages selected
seem to need it. Is there a reason why it is needed? Could you either remove it (after testing with uClibc-ng) or add a comment why it is needed and remove BR2_TOOLCHAIN_BUILDROOT_WCHAR=y?

Sure, will do it.

Thanks

author reviewer
#5 lore raw

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

Hi Arnout,

Quoted 7 lines · Fabio Estevam
Quoted 1 line

Could you re-test based on the next branch?

Thanks for reworking the patch and applying it.

I am currently out of the office without hardware access to test it.

Will test it as soon as I am back to the office (week of August 21)

I was able to test it and can confirm that it works as expected.

Quoted 6 lines
Quoted 4 lines

Also, you set BR2_TOOLCHAIN_BUILDROOT_GLIBC=y but none of the packages selected
seem to need it. Is there a reason why it is needed? Could you either remove it (after testing with uClibc-ng) or add a comment why it is needed and remove BR2_TOOLCHAIN_BUILDROOT_WCHAR=y?

Sure, will do it.

I tried the following change:

configs/imx6q-sabresd_qt5_defconfig +0 -2
@@ -8,9 +8,7 @@ BR2_ARM_FPU_VFPV3=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
 
 # Additional features needed for packages
-BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
-BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
 
 # System
 

,but in this case the Qt5 package is not installed anymore.

author reviewer
#6 lore raw

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

Quoted 14 lines · Fabio Estevam

I tried the following change:

configs/imx6q-sabresd_qt5_defconfig +0 -2
@@ -8,9 +8,7 @@ BR2_ARM_FPU_VFPV3=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
 
 # Additional features needed for packages
-BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
-BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
 
 # System
 
Quoted 1 line

,but in this case the Qt5 package is not installed anymore.

Ok, this is expected as Qt5 depends on BR2_TOOLCHAIN_BUILDROOT_WCHAR.

So I will only remove BR2_TOOLCHAIN_BUILDROOT_GLIBC=y from the defconfig.

Let me test it and will send a patch if it works.