configs/imx6-sabresd_qt5: Move mdev from eudev
Fabio Estevam
reviewerPATCH 1/4 configs/imx6-sabresd_qt5: Move mdev from eudev
Since commit cf66a67112cd706d2e7 ("package/glmark2: drm support needs udev") udev is needed when the drm flavor is used.
Move mdev from eudev in order to fix the following glmark2 build failure:
Unknown flavor: . Supported flavors are dispmanx-glesv2, drm-gl, drm-glesv2, mir-gl, mir-glesv2, wayland-gl, wayland-glesv2, win32-gl, win32-glesv2, x11-gl, x11-glesv2
--- configs/imx6-sabresd_qt5_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/imx6-sabresd_qt5_defconfig +1 -1
@@ -95,4 +95,4 @@ BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOPARSERS=y BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS=y # For automatic kernel module loading -BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
Signature · 1 line
2.17.1
Fabio Estevam
reviewerPATCH 2/4 configs/imx6-sabresd_qt5: Select the KMSRO gallium driver
After migrating to Mesa 19.2 the imx-drm_dri.so is no longer installed unless the kmsro gallium driver is selected, so explicitly select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO to fix the problem.
--- configs/imx6-sabresd_qt5_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/imx6-sabresd_qt5_defconfig +1 -0
@@ -48,6 +48,7 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y # GL driver BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y +BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y BR2_PACKAGE_MESA3D_OPENGL_ES=y
Signature · 1 line
2.17.1
Fabio Estevam
reviewerPATCH 3/4 imx6-sabresd/readme.txt: Improve Qt5 Cinematic Demo instructions
In reply to Fabio EstevamQT_QPA_EGLFS_ALWAYS_SET_MODE=1 needs to be exported, otherwise the Qt5 Cinematic demo throws a storm of the following messages:
Could not queue DRM page flip on screen LVDS1 (Invalid argument)
Improve the instructions by mentioning such requirement.
--- board/freescale/imx6-sabresd/readme.txt | 1 + 1 file changed, 1 insertion(+)
board/freescale/imx6-sabresd/readme.txt +1 -0
@@ -80,6 +80,7 @@ Running kmscube application: Running Qt5 Cinematic Demo: # export QT_QPA_EGLFS_KMS_CONFIG=/root/sabresd.json +# export QT_QPA_EGLFS_ALWAYS_SET_MODE=1 # /usr/share/Qt5/CinematicExperience/Qt5_CinematicExperience Running gl2mark benchmark:
Signature · 1 line
2.17.1
Fabio Estevam
reviewerPATCH 4/4 configs/imx6-sabresd: Bump U-Boot and kernel versions
In reply to Fabio EstevamBump U-Boot to 2019.10 and kernel to 5.3.4 version.
--- configs/imx6-sabresd_defconfig | 8 ++++---- configs/imx6-sabresd_qt5_defconfig | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
configs/imx6-sabresd_defconfig +4 -4
@@ -4,8 +4,8 @@ BR2_ARM_ENABLE_NEON=y BR2_ARM_ENABLE_VFP=y BR2_ARM_FPU_VFPV3=y -# Linux headers same as kernel, a 4.19 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y +# Linux headers same as kernel, a 5.3 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3=y # System BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
@@ -24,7 +24,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BOARDNAME="mx6sabresd" BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10" BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="SPL"
@@ -32,7 +32,7 @@ BR2_TARGET_UBOOT_SPL_NAME="SPL" # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.3.4" BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabresd imx6dl-sabresd imx6qp-sabresd"
configs/imx6-sabresd_qt5_defconfig +4 -4
@@ -4,8 +4,8 @@ BR2_ARM_ENABLE_NEON=y BR2_ARM_ENABLE_VFP=y BR2_ARM_FPU_VFPV3=y -# Linux headers same as kernel, a 4.19 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y +# Linux headers same as kernel, a 5.3 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3=y # Additional features needed for packages BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
@@ -30,7 +30,7 @@ BR2_ROOTFS_OVERLAY="board/freescale/imx6-sabresd/rootfs_overlay" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BOARDNAME="mx6sabresd" BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10" BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="SPL"
@@ -38,7 +38,7 @@ BR2_TARGET_UBOOT_SPL_NAME="SPL" # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.3.4" BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabresd imx6dl-sabresd imx6qp-sabresd"
Signature · 1 line
2.17.1
PATCH 1/4 configs/imx6-sabresd_qt5: Move mdev from eudev
In reply to Fabio EstevamHello,
Quoted 6 lines · On Wed, 9 Oct 2019 13:55:58 -0300 Fabio Estevam <[email protected]> wrote:
Since commit
cf66a67112cd706d2e7("package/glmark2: drm support needs udev") udev is needed when the drm flavor is used.Move mdev from eudev in order to fix the following glmark2 build failure:
Quoted 6 lines
Unknown flavor: . Supported flavors are dispmanx-glesv2, drm-gl, drm-glesv2, mir-gl, mir-glesv2, wayland-gl, wayland-glesv2, win32-gl, win32-glesv2, x11-gl, x11-glesv2
Suggested-by Peter Seiderer <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
While this patch is necessary, I think the glmark2 package also needs to be fixed: it should not be possible to select it if not all dependencies are available to at least have one flavour enabled.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com