Skip to contentSkip to conversation

iMX6 Yocto Support based on 12.09.01 BSP

PATCH In review Otavio Salvador 6 participants 51 messages Nov 22, 2012 – Nov 27, 2012 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

v3 cover iMX6 Yocto Support based on 12.09.01 BSP

Hello,

This is the third version of the patchset. The segfault seems fixed and I'd like to ask you to test and comment on them.

If we don't find new problems from this I'd like to merge this patchset soon so we reduce the amount of not-merged patches being handled. This is also going to offer a good base for work in next integration steps as for example Qt support.

The the GStreamer codec support is being finished and we'll send it as another patchset soon.

Changes for v3:

* Drop merged patches (firmware-imx, imx-lib, imx-test);
* Rework GPU packaging to include test applications;
* Fix Linux kernel configuration to have GPU module built-in;

Changes for v2:

* Fix Vivant Xorg driver to rdepends on Xorg EXA module;
* Minor cleanup in Xorg driver packaging;

Adrian Alonso (2):
xf86-dri-vivante: Add Vivant DRI driver for Xorg
xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs

Daiane Angolini (1):
linux-imx (3.0.35): Configure GPU module to be builtin

Otavio Salvador (5):
linux-imx (3.0.35): Move defconfig to mx6 directory
gpu-viv-bin-mx6q: Add Vivant GPU libraries
mesa-dri: Change provided set of libraries when building for iMX6
xserver-xf86-config: Use Vivant accelerated driver for iMX6
imx-base: Use xf86-video-imxfb-vivant for iMX6 targets

 conf/machine/include/imx-base.inc                  |    1 +
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |  144 ++++++++++++++++++++
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb  |    9 ++
 recipes-graphics/mesa/mesa-dri_8.0.4.bbappend      |    4 +-
 recipes-graphics/mesa/mesa-dri_git.bbappend        |    4 +-
 .../xorg-driver/xf86-dri-vivante_12.09.01.bb       |   31 +++++
 .../Makefile.am-remove-prefixed-include-path.patch |   29 ++++
 .../xf86-video-imxfb-vivante_12.09.01.bb           |   27 ++++
 .../xorg-xserver/xserver-xf86-config/mx6/xorg.conf |    8 +-
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |    2 +-
 .../linux/linux-imx-3.0.35/{ => mx6}/defconfig     |    2 +-
 recipes-kernel/linux/linux-imx_3.0.35.bb           |    2 +-
 12 files changed, 255 insertions(+), 8 deletions(-)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb
 create mode 100644 recipes-graphics/xorg-driver/xf86-dri-vivante_12.09.01.bb
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb
 rename recipes-kernel/linux/linux-imx-3.0.35/{ => mx6}/defconfig (99%)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v3 1/8 linux-imx (3.0.35): Move defconfig to mx6 directory

The defconfig is specific of mx6 SoCs thus needs to be moved to reflect it.

Change-Id I6a5651ef8e72109353399aeadb5acf2f92980d45
---
 recipes-kernel/linux/linux-imx-3.0.35/{ => mx6}/defconfig |    0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename recipes-kernel/linux/linux-imx-3.0.35/{ => mx6}/defconfig (100%)
recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig renamed from recipes-kernel/linux/linux-imx-3.0.35/defconfig +0 -0
similarity index 100%
rename from recipes-kernel/linux/linux-imx-3.0.35/defconfig
rename to recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH v3 2/8 linux-imx (3.0.35): Configure GPU module to be builtin

In reply to Otavio Salvador

From: Daiane Angolini <[email protected]>

Change defconfig for mx6 family.

This module was configured to be built as module, but for X11 environment it would be better to have it always included in kernel.

Change-Id I3fc48192a1f366671f1f5fea904379bdee6eb69c
---
 recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig |    2 +-
 recipes-kernel/linux/linux-imx_3.0.35.bb            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-imx-3.0.35/mx6/defconfig +1 -1
index b5e457e..a8bc503 100644
@@ -250,7 +250,7 @@ CONFIG_MXC_IPU=y
 # CONFIG_MXC_HWEVENT is not set
 CONFIG_MXC_ASRC=y
 CONFIG_MXC_MLB150=m
-CONFIG_MXC_GPU_VIV=m
+CONFIG_MXC_GPU_VIV=y
 CONFIG_MXC_MIPI_CSI2=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
recipes-kernel/linux/linux-imx_3.0.35.bb +1 -1
index 37f38ac..60ec3b0 100644
@@ -3,7 +3,7 @@
 
 include linux-imx.inc
 
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
 
 COMPATIBLE_MACHINE = "(mx6)"
 
Signature · 1 line
1.7.10.4
#4 lore raw

Re: [meta-fsl-arm][PATCH v3 2/8] linux-imx (3.0.35): Configure GPU module to be builtin

This is OK to me.

If no comments, please, push.

(I shouldn't be the person to ACK my own patch)

Daiane

#5 lore raw

PATCH v3 3/8 gpu-viv-bin-mx6q: Add Vivant GPU libraries

In reply to Otavio Salvador

This recipe provides the binary libraries for use with iMX6 CPUs.

Change-Id If21cf21535fc8ec4a0a1117974a8cb1f43499f66
---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |  144 ++++++++++++++++++++
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb  |    9 ++
 2 files changed, 153 insertions(+)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc new file +144 -0
new file mode 100644
index 0000000..83ab75a
@@ -0,0 +1,144 @@
+# Copyright (C) 2012 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "GPU driver and apps for imx6"
+SECTION = "libs"
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=092bc28e13d678ceaebe1a40559275fb"
+PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6"
+
+INC_PR = "r0"
+
+inherit fsl-eula-unpack
+
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
+
+PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
+	libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
+	libegl-x11-mx6 libegl-x11-mx6-dev libegl-x11-mx6-dbg \
+	libegl-common-mx6 libegl-common-mx6-dev libegl-common-mx6-dbg \
+	libgal-fb-mx6 libgal-fb-mx6-dev libgal-fb-mx6-dbg \
+	libgal-x11-mx6 libgal-x11-mx6-dev libgal-x11-mx6-dbg \
+	libgal-common-mx6 libgal-common-mx6-dev libgal-common-mx6-dbg \
+	libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \
+	libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \
+	libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \
+	libglslc-mx6 libglslc-mx6-dev libglslc-mx6-dbg \
+	libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \
+	libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \
+	libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \
+	libvivante-x11-mx6 libvivante-x11-mx6-dev libvivante-x11-mx6-dbg \
+	libvivante-fb-mx6 libvivante-fb-mx6-dev libvivante-fb-mx6-dbg \
+	libvivante-dri-mx6 libvivante-dri-mx6-dev libvivante-dri-mx6-dbg \
+	libvivante-common-mx6 libvivante-common-mx6-dev libvivante-common-mx6-dbg \
+	"
+
+# FIXME: The provided binary doesn't provide soname. If in future BSP
+# release the libraries are fixed, we can drop this hack.
+SOLIBS = "${SOLIBSDEV}"
+
+# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
+# the source we cannot fix it. Disable the insane check for now.
+python __anonymous() {
+    packages = d.getVar('PACKAGES', True).split()
+    for p in packages:
+        d.setVar("INSANE_SKIP_%s" % p, "ldflags")
+}
+
+do_install () {
+    install -d ${D}${libdir}/dri
+    install -d ${D}${includedir}
+
+    cp ${S}/usr/lib/*.so ${D}${libdir}
+    cp -axr ${S}/usr/include/* ${D}${includedir}
+
+	cp -axr ${S}/opt ${D}
+
+    # Move DRI library to proper path
+    mv ${D}${libdir}/vivante_dri.so ${D}${libdir}/dri
+
+    find ${D}${libdir} -type f -exec chmod 644 {} \;
+    find ${D}${includedir} -type f -exec chmod 644 {} \;
+}
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+FILES_${PN} += "/opt"
+FILES_${PN}-dev = "${includedir}"
+FILES_${PN}-dbg = "${libdir}/.debug ${libdir}/dri/.debug \
+                   /opt/viv_samples/*/*/.debug"
+
+FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"
+FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}"
+FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}"
+
+FILES_libegl-common-mx6 = "${libdir}/libEGL${SOLIBS}"
+FILES_libegl-common-mx6-dev = "${includedir}/EGL ${libdir}/libEGL${SOLIBSDEV}"
+FILES_libegl-common-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
+
+FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}"
+FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}"
+FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}"
+
+FILES_libegl-x11-mx6 = "${libdir}/libEGL-x11${SOLIBS}"
+FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}"
+FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}"
+
+FILES_libgal-common-mx6 = "${libdir}/libGAL${SOLIBS}"
+FILES_libgal-common-mx6-dev = "${includedir}/HAL ${libdir}/libGAL${SOLIBSDEV}"
+FILES_libgal-common-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}"
+
+FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}"
+FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}"
+FILES_libgal-fb-mx6-dbg = "${libdir}/.debug/libGAL-fb${SOLIBS}"
+
+FILES_libgal-x11-mx6 = "${libdir}/libGAL-x11${SOLIBS}"
+FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}"
+FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}"
+
+FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}"
+FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}"
+FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}"
+
+FILES_libgles2-mx6 = "${libdir}/libGLESv2${SOLIBS}"
+FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
+FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
+
+FILES_libgl-mx6 = "${libdir}/libGL${SOLIBS}"
+FILES_libgl-mx6-dev = "${includedir}/GL ${libdir}/libGL${SOLIBSDEV}"
+FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL${SOLIBS}"
+
+FILES_libglslc-mx6 = "${libdir}/libGLSLC${SOLIBS}"
+FILES_libglslc-mx6-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}"
+FILES_libglslc-mx6-dbg = "${libdir}/.debug/libGLSLC${SOLIBS}"
+
+FILES_libopencl-mx6 = "${libdir}/libOpenCL${SOLIBS}"
+FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}"
+FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}"
+
+FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}"
+FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV}"
+FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}"
+
+FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}"
+FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}"
+FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}"
+
+FILES_libvivante-common-mx6 = "${libdir}/libVIVANTE${SOLIBS}"
+FILES_libvivante-common-mx6-dev = "${includedir}/HAL ${libdir}/libVIVANTE${SOLIBSDEV}"
+FILES_libvivante-common-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}"
+
+FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}"
+FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}"
+FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}"
+
+FILES_libvivante-x11-mx6 = "${libdir}/libVIVANTE-x11${SOLIBS}"
+FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}"
+FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}"
+
+FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}"
+FILES_libvivante-dri-mx6-dev = ""
+FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(mx6)"
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb new file +9 -0
new file mode 100644
index 0000000..c54ad19
@@ -0,0 +1,9 @@
+# Copyright (C) 2012 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+PR = "${INC_PR}.0"
+
+include gpu-viv-bin-mx6q.inc
+
+SRC_URI[md5sum] = "9f2c43b6eae468df6cc6fd75efd00bc5"
+SRC_URI[sha256sum] = "2cec10c1d69bce75a7c2a4482eb3ed29b171578c3b01c5b4ef2cc868ca327330"
Signature · 1 line
1.7.10.4
#8 lore raw

PATCH v3 4/8 xf86-dri-vivante: Add Vivant DRI driver for Xorg

In reply to Otavio Salvador

From: Adrian Alonso <[email protected]>

Change-Id I07eeb3ce0960021a12c04a38447c379318821f75
---
 .../xorg-driver/xf86-dri-vivante_12.09.01.bb       |   31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-graphics/xorg-driver/xf86-dri-vivante_12.09.01.bb
recipes-graphics/xorg-driver/xf86-dri-vivante_12.09.01.bb new file +31 -0
new file mode 100644
index 0000000..3bf133b
@@ -0,0 +1,31 @@
+# Copyright (C) 2012 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+LICENSE = "MIT"
+SECTION = "x11/base"
+DEPENDS = "virtual/libx11 util-macros xf86-video-vivante"
+LIC_FILES_CHKSUM = "file://src/dri.h;enline=27;md5=1d0d59e1dc96f5197ea3a8b101bf1fcc"
+
+SRC_URI = "${FSL_MIRROR}/dri-xorg-graphic-imx-viv-${PV}.tar.gz"
+SRC_URI[md5sum] = "6a3d8130945a24294d34b61cd59e5d59"
+SRC_URI[sha256sum] = "437187360fe76fbee5ad70b1a661d3196568cc8c28a457170494effef859d054"
+
+S = "${WORKDIR}/dri-xorg-graphic-imx-viv-${PV}"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF_armv7a = " --enable-neon "
+CFLAGS += " -I${STAGING_INCDIR}/xorg"
+
+do_install_append () {
+# Install header files
+    install -d ${D}${includedir}/xorg
+    cp -axr ${S}/src/*.h ${D}${includedir}/xorg
+    find ${D}${includedir} -type f -exec chmod 660 {} \;
+# don't install libtool (*.la) archive not usefull, fix Makefile.am
+    find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --
+}
+
+FILES_${PN}-dev += "${includedir}/xorg/*.h"
+FILES_${PN} += " ${libdir}/xorg/modules/extensions/*.so"
+FILES_${PN}-dbg += " ${libdir}/xorg/modules/extensions/.debug"
Signature · 1 line
1.7.10.4
#10 lore raw

PATCH v3 5/8 xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs

In reply to Otavio Salvador

From: Adrian Alonso <[email protected]>

Change-Id I2b9a107b1fe6d50f3f0aa47a0df3115d7a8bc650
---
 .../Makefile.am-remove-prefixed-include-path.patch |   29 ++++++++++++++++++++
 .../xf86-video-imxfb-vivante_12.09.01.bb           |   27 ++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch
 create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch new file +29 -0
new file mode 100644
index 0000000..4354ae4
@@ -0,0 +1,29 @@
+From 230acf40ab9ed8ab5f291ff6644160b3f3859d69 Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <[email protected]>
+Date: Fri, 15 Jun 2012 00:46:28 -0500
+Subject: [PATCH] Makefile.am remove prefixed include path
+
+* Remove prefixed include path, use ${STAGING_INCDIR}
+  to locate drm headers.
+
+Signed-off-by: Adrian Alonso <[email protected]>
+---
+ src/Makefile.am |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 820278b..4acdf6a 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -50,7 +50,7 @@ VIVSRC_CFLAGS = \
+        -I./vivante_util \
+        -I./vivante_exa
+ 
+-AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) -I/usr/include/drm
++AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) ${CFLAGS}
+ vivante_drv_la_LTLIBRARIES = vivante_drv.la
+ vivante_drv_la_LDFLAGS = -module -avoid-version
+ vivante_drv_ladir = @moduledir@/drivers
+-- 
+1.7.7.6
+
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb new file +27 -0
new file mode 100644
index 0000000..34e68a4
@@ -0,0 +1,27 @@
+# Copyright (C) 2012 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+DEPENDS += "virtual/libgal-x11 gpu-viv-bin-mx6q"
+
+LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a"
+
+SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \
+           file://Makefile.am-remove-prefixed-include-path.patch"
+SRC_URI[md5sum] = "1948119717aa01bed1f630be9ee7a708"
+SRC_URI[sha256sum] = "5b3be4b426d2d2803554df9e4d8919d1f9d17659c3153c71c6529f43c37e6ed1"
+
+EXTRA_OECONF_armv7a = " --enable-neon --disable-static"
+CFLAGS += " -I${STAGING_INCDIR}/xorg -I${STAGING_INCDIR}/drm"
+LDFLAGS += "-lm -ldl -lGAL-x11"
+
+S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}"
+
+do_install_append () {
+	install -d ${D}${includedir}
+	cp -axr ${S}/src/vivante_gal/vivante_priv.h ${D}${includedir}
+	find ${D}${includedir} -type f -exec chmod 660 {} \;
+}
+
+RDEPENDS_${PN} += "xserver-xorg-module-exa"
Signature · 1 line
1.7.10.4
#11 lore raw

Re: [meta-fsl-arm][PATCH v3 5/8] xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs

Missing:

* Add to commig log that this package is for imx6 only
* it needs COMPATIBLE_MACHINE

Could you, please, double check if the other GPU package recipe needs to have COMPATIBLE_MACHINE included as well?

Daiane

#12 lore raw

Re: [meta-fsl-arm][PATCH v3 5/8] xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs

Quoted 7 lines · Daiane Angolini

Missing:

* Add to commig log that this package is for imx6 only
* it needs COMPATIBLE_MACHINE

Could you, please, double check if the other GPU package recipe needs to have COMPATIBLE_MACHINE included as well?

Good catch; I fixed it locally now.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#13 lore raw

PATCH v3 6/8 mesa-dri: Change provided set of libraries when building for iMX6

In reply to Otavio Salvador

This overrides the 8.0.4 and git versions of mesa-dri recipe.

Change-Id Ica3e05ade74ccc8c8c2090cac2c2f9e72fb0f66d
---
 recipes-graphics/mesa/mesa-dri_8.0.4.bbappend |    4 +++-
 recipes-graphics/mesa/mesa-dri_git.bbappend   |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
recipes-graphics/mesa/mesa-dri_8.0.4.bbappend +3 -1
index 1dff9fe..8b5cfe6 100644
@@ -1,5 +1,7 @@
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 PROVIDES_mx5 = "virtual/libgl"
+PROVIDES_mx6 = "virtual/libgl"
 
 PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
recipes-graphics/mesa/mesa-dri_git.bbappend +3 -1
index 1dff9fe..8b5cfe6 100644
@@ -1,5 +1,7 @@
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 PROVIDES_mx5 = "virtual/libgl"
+PROVIDES_mx6 = "virtual/libgl"
 
 PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
Signature · 1 line
1.7.10.4
#15 lore raw

PATCH v3 7/8 xserver-xf86-config: Use Vivant accelerated driver for iMX6

In reply to Otavio Salvador
Change-Id Ief51e752d58efbdf5412c93a786c442e3531a961
---
 .../xorg-xserver/xserver-xf86-config/mx6/xorg.conf             |    8 +++++---
 recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend |    2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf +5 -3
index 79b6c0f..b89bed6 100644
@@ -1,7 +1,9 @@
 Section "Device"
-    Identifier  "Kernel Framebuffer Device"
-    Driver      "fbdev"
-    Option      "fbdev" "/dev/fb0"
+    Identifier  "i.MX Accelerated Framebuffer Device"
+    Driver      "vivante"
+    Option      "fbdev"     "/dev/fb0"
+    Option      "vivante_fbdev" "/dev/fb0"
+    Option      "HWcursor"  "false"
 EndSection
 
 Section "ServerFlags"
recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +1 -1
index f9ea3a4..8337e55 100644
@@ -1,4 +1,4 @@
 # Append path for freescale layer to include bsp xorg.conf 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PRINC := "${@int(PRINC) + 7}"
+PRINC := "${@int(PRINC) + 8}"
Signature · 1 line
1.7.10.4
#17 lore raw

Re: [meta-fsl-arm][PATCH v3 7/8] xserver-xf86-config: Use Vivant accelerated driver for iMX6

This patch is OK to me.

Only fix subject at merging.

Daiane

#18 lore raw

PATCH v3 8/8 imx-base: Use xf86-video-imxfb-vivant for iMX6 targets

In reply to Otavio Salvador
Change-Id I9fb4fa04aef988fb8fd3105ab9444276ea0cbc29
---
 conf/machine/include/imx-base.inc |    1 +
 1 file changed, 1 insertion(+)
conf/machine/include/imx-base.inc +1 -0
index 0c2f10d..a920a4b 100644
@@ -24,6 +24,7 @@ UBOOT_LOADADDRESS_mx6 = "0x10800000"
 
 XSERVER_DRIVER = "xf86-video-fbdev"
 XSERVER_DRIVER_mx5 = "xf86-video-imxfb"
+XSERVER_DRIVER_mx6 = "xf86-video-imxfb-vivante"
 XSERVER = "xserver-xorg \
            xf86-input-evdev \
            ${XSERVER_DRIVER}"
Signature · 1 line
1.7.10.4
#21 lore raw
Quoted 4 lines · Daiane Angolini

Overall GPU support is up and running (with and without X11)

Please, make sure commit log and subject was fixed, and COMPATIBLE_MACHINE is set for any needed package.

I did it; this patchset is now merged! Yey!

:-D

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#22 lore raw
Quoted 7 lines · Otavio Salvador
Quoted 4 lines · Daiane Angolini

Overall GPU support is up and running (with and without X11)

Please, make sure commit log and subject was fixed, and COMPATIBLE_MACHINE is set for any needed package.

I did it; this patchset is now merged! Yey!

I just merged the VPU patches as well :-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#23 lore raw
In reply to Otavio Salvador

I've just tested a 'bitbake core-image-x11' and it builds without any problem.

I got a couple of warnings such as:
WARNING: File '/opt/viv_samples/vdk/tutorial2' from gpu-viv-bin-mx6q was already stripped, this will prevent future debugging!

... I don't mind them, but "silencing" them would be helpful/good enough
(no clue if this is possible/feasible)

I would like to tell you that I've also tested this on the hardware, but it my imx6 got "stolen" by colleagues ;)

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers? (so far I've only tested it with 12.04.01)
- How is the gstreamer work progressing?

Quoted 61 lines · On Thu, November 22, 2012 16:49:33 Otavio Salvador wrote:

Hello,

This is the third version of the patchset. The segfault seems fixed and I'd like to ask you to test and comment on them.

If we don't find new problems from this I'd like to merge this patchset soon so we reduce the amount of not-merged patches being handled. This is also going to offer a good base for work in next integration steps as for example Qt support.

The the GStreamer codec support is being finished and we'll send it as another patchset soon.

Changes for v3:

* Drop merged patches (firmware-imx, imx-lib, imx-test);
* Rework GPU packaging to include test applications;
* Fix Linux kernel configuration to have GPU module built-in;

Changes for v2:

* Fix Vivant Xorg driver to rdepends on Xorg EXA module;
* Minor cleanup in Xorg driver packaging;

Adrian Alonso (2):
xf86-dri-vivante: Add Vivant DRI driver for Xorg
xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs

Daiane Angolini (1):
linux-imx (3.0.35): Configure GPU module to be builtin

Otavio Salvador (5):
linux-imx (3.0.35): Move defconfig to mx6 directory
gpu-viv-bin-mx6q: Add Vivant GPU libraries
mesa-dri: Change provided set of libraries when building for iMX6
xserver-xf86-config: Use Vivant accelerated driver for iMX6
imx-base: Use xf86-video-imxfb-vivant for iMX6 targets

 conf/machine/include/imx-base.inc                  |    1 +
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |  144
++++++++++++++++++++ .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb  |  
 9 ++
 recipes-graphics/mesa/mesa-dri_8.0.4.bbappend      |    4 +-
 recipes-graphics/mesa/mesa-dri_git.bbappend        |    4 +-
 .../xorg-driver/xf86-dri-vivante_12.09.01.bb       |   31 +++++
 .../Makefile.am-remove-prefixed-include-path.patch |   29 ++++
 .../xf86-video-imxfb-vivante_12.09.01.bb           |   27 ++++
 .../xorg-xserver/xserver-xf86-config/mx6/xorg.conf |    8 +-
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |    2 +-
 .../linux/linux-imx-3.0.35/{ => mx6}/defconfig     |    2 +-
 recipes-kernel/linux/linux-imx_3.0.35.bb           |    2 +-
 12 files changed, 255 insertions(+), 8 deletions(-)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
 create mode 100644

recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb create mode 100644 recipes-graphics/xorg-driver/xf86-dri-vivante_12.09.01.bb create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-pr efixed-include-path.patch create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb rename recipes-kernel/linux/linux-imx-3.0.35/{ => mx6}/defconfig (99%)

#24 lore raw
Quoted 8 lines · Thomas Senyk

I've just tested a 'bitbake core-image-x11' and it builds without any problem.

I got a couple of warnings such as:
WARNING: File '/opt/viv_samples/vdk/tutorial2' from gpu-viv-bin-mx6q was already stripped, this will prevent future debugging!

... I don't mind them, but "silencing" them would be helpful/good enough
(no clue if this is possible/feasible)

I did a brief check how to quiet them but didn't find a way so I let them on for now.

Quoted 2 lines

I would like to tell you that I've also tested this on the hardware, but it my imx6 got "stolen" by colleagues ;)

Please do! :)

Quoted 3 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers? (so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

Quoted 1 line

- How is the gstreamer work progressing?

We expect to have it done soon...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#25 lore raw
Quoted 5 lines · Otavio Salvador
Quoted 3 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers? (so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Daiane

#26 lore raw
Quoted 11 lines · Daiane Angolini
Quoted 5 lines · Otavio Salvador
Quoted 3 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers? (so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Later Qt will prove if it works or not ;-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#27 lore raw
In reply to Daiane Angolini
Quoted 6 lines · On Mon, November 26, 2012 14:00:42 Daiane Angolini wrote:

On Mon, Nov 26, 2012 at 2:45 PM, Otavio Salvador

Quoted 3 lines · <[email protected]> wrote:
Quoted 3 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

(so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Yes @ "enough" .. at least for me to do the next bigger test: Qt5 and eglfs plugin.
I'll do this test as soon as I get my board back! :)

Quoted 2 lines

Daiane

#28 lore raw
Quoted 11 lines · Thomas Senyk
Quoted 10 lines · On Mon, November 26, 2012 14:00:42 Daiane Angolini wrote:

On Mon, Nov 26, 2012 at 2:45 PM, Otavio Salvador

Quoted 6 lines · <[email protected]> wrote:
Quoted 4 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers?

(so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

Quoted 8 lines
Quoted 4 lines

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Yes @ "enough" .. at least for me to do the next bigger test: Qt5 and eglfs plugin.
I'll do this test as soon as I get my board back! :)

By the way, HP people, Martin and I are working in Qt5 packaging for OE. We're doing our work at https://github.com/meta-qt5/meta-qt5

It is not yet working but you might want to help ;-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#29 lore raw
Quoted 19 lines · On Mon, November 26, 2012 15:12:08 Otavio Salvador wrote:

On Mon, Nov 26, 2012 at 2:53 PM, Thomas Senyk

Quoted 16 lines · <[email protected]> wrote:
Quoted 14 lines · On Mon, November 26, 2012 14:00:42 Daiane Angolini wrote:

On Mon, Nov 26, 2012 at 2:45 PM, Otavio Salvador

Quoted 6 lines · <[email protected]> wrote:
Quoted 4 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers?

(so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Quoted 7 lines
Quoted 4 lines

Yes @ "enough" .. at least for me to do the next bigger test: Qt5 and eglfs
plugin.
I'll do this test as soon as I get my board back! :)

By the way, HP people, Martin and I are working in Qt5 packaging for OE. We're doing our work at https://github.com/meta-qt5/meta-qt5

Nice!! I took a quick look at the files ...and as with the qt4 recipes, it's ... interesting ... how complex things can get when writing a recipe ;)

I'll test it tomorrow ... I guess the proper channel to talk about this is [email protected] ?

Greets
Thomas

Quoted 2 lines

It is not yet working but you might want to help ;-)

#30 lore raw
Quoted 25 lines · Thomas Senyk
Quoted 24 lines · On Mon, November 26, 2012 15:12:08 Otavio Salvador wrote:

On Mon, Nov 26, 2012 at 2:53 PM, Thomas Senyk

Quoted 20 lines · <[email protected]> wrote:
Quoted 6 lines · On Mon, November 26, 2012 14:00:42 Daiane Angolini wrote:

On Mon, Nov 26, 2012 at 2:45 PM, Otavio Salvador

Quoted 3 lines · <[email protected]> wrote:
Quoted 3 lines

Two additional questions:
- Has anyone tested "egl on fb" (without x11) with this new drivers?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

(so far I've only tested it with 12.04.01)

Daiane has tested it I think. Daiane?

I tested tiger (under /opt/viv_samples) (and cover flow) and it worked very fine. I tested it on X11 image and with fb image.

Do you think this test is enough? What would be other good tests?

Yes @ "enough" .. at least for me to do the next bigger test: Qt5 and eglfs
plugin.
I'll do this test as soon as I get my board back! :)

Quoted 8 lines
Quoted 2 lines

By the way, HP people, Martin and I are working in Qt5 packaging for OE. We're doing our work at https://github.com/meta-qt5/meta-qt5

Nice!! I took a quick look at the files ...and as with the qt4 recipes, it's ... interesting ... how complex things can get when writing a recipe ;)

I'll test it tomorrow ... I guess the proper channel to talk about this is [email protected] ?

In fact we've been discussing it at [email protected]

The recipes are not working for non x86 targets as it is still trying to run native tools during target builds. It is still work in progress but any help is good.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#31 lore raw

PATCH 1/1 Remove warning about vivante driver being stripped

In reply to Otavio Salvador
---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |    3 +++
 1 file changed, 3 insertions(+)
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +3 -0
index 83ab75a..4baf608 100644
@@ -33,6 +33,9 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
 	libvivante-common-mx6 libvivante-common-mx6-dev libvivante-common-mx6-dbg \
 	"
 
+# Inhibit warnings about files being stripped.
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
 # FIXME: The provided binary doesn't provide soname. If in future BSP
 # release the libraries are fixed, we can drop this hack.
 SOLIBS = "${SOLIBSDEV}"
Signature · 1 line
1.7.9.5
#32 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 1 line · Alexandre Belloni

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#33 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 4 lines · Otavio Salvador

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

I don't think so but I haven't checked. I'm wondering if we shouldn't separate the driver itself from the example applications that are in /opt. I don't think you would want those on your final production releases...

Signature · 1 line
Alexandre Belloni
#34 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 10 lines · Alexandre Belloni
Quoted 4 lines · Otavio Salvador

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

I don't think so but I haven't checked. I'm wondering if we shouldn't separate the driver itself from the example applications that are in /opt. I don't think you would want those on your final production releases...

It has been done that way; the driver files are split among many lib<something> files and the example code in ${PN}. So it should be fine.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#35 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 4 lines · Otavio Salvador

It has been done that way; the driver files are split among many lib<something> files and the example code in ${PN}. So it should be fine.

Yeah right, I didn't read the inc file to the end...

Signature · 1 line
Alexandre Belloni
#36 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

In reply to Otavio Salvador
Quoted 7 lines · Otavio Salvador
Quoted 1 line · Alexandre Belloni

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

Looking at the python code it seems we ought to use:

INHIBIT_PACKAGE_STRIP = "1"

Regarding your patch, please:

* bump INC_PR;
* prefix short commit description with the recipe name you are changing;

Thanks by looking at it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#37 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 6 lines · Otavio Salvador
Quoted 4 lines · Otavio Salvador
Quoted 1 line · Alexandre Belloni
Quoted 8 lines
Quoted 3 lines

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

Looking at the python code it seems we ought to use:

INHIBIT_PACKAGE_STRIP = "1"

Just to be clear, you mean you want to use both INHIBIT_PACKAGE_DEBUG_SPLIT = 1, to solve the warning issue and INHIBIT_PACKAGE_STRIP = 1 ?

If I'm not mistaken, this will mean that unstripped binaries won't get stripped. Is that what you want ?

Quoted 5 lines

Regarding your patch, please:

* bump INC_PR;
* prefix short commit description with the recipe name you are changing;

Will do.

Regards,

Signature · 1 line
Alexandre Belloni
#38 lore raw

Re: [meta-fsl-arm][PATCH] Remove warning about vivante driver being stripped

Quoted 16 lines · Alexandre Belloni
Quoted 6 lines · Otavio Salvador
Quoted 4 lines · Otavio Salvador
Quoted 1 line · Alexandre Belloni
Quoted 8 lines
Quoted 3 lines

Good catch! Did you check the code if it will warn if it has debug symbols in the package? My concern here is if examples or other apps has symbols if it is going to warn so we can fix it.

Looking at the python code it seems we ought to use:

INHIBIT_PACKAGE_STRIP = "1"

Quoted 6 lines

Just to be clear, you mean you want to use both INHIBIT_PACKAGE_DEBUG_SPLIT = 1, to solve the warning issue and INHIBIT_PACKAGE_STRIP = 1 ?

If I'm not mistaken, this will mean that unstripped binaries won't get stripped. Is that what you want ?

Just INHIBIT_PACKAGE_DEBUG_SPLIT = 1, sorry if I confused you.

Quoted 7 lines
Quoted 5 lines

Regarding your patch, please:

* bump INC_PR;
* prefix short commit description with the recipe name you are changing;

Will do.

Good, thanks.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#39 lore raw
In reply to Otavio Salvador
Quoted 11 lines · Otavio Salvador
Quoted 8 lines · Thomas Senyk

I've just tested a 'bitbake core-image-x11' and it builds without any problem.

I got a couple of warnings such as:
WARNING: File '/opt/viv_samples/vdk/tutorial2' from gpu-viv-bin-mx6q was already stripped, this will prevent future debugging!

... I don't mind them, but "silencing" them would be helpful/good enough
(no clue if this is possible/feasible)

Quoted 7 lines

I did a brief check how to quiet them but didn't find a way so I let them on for now.

Quoted 2 lines

I would like to tell you that I've also tested this on the hardware, but it my imx6 got "stolen" by colleagues ;)

Please do! :)

I've tried these new changes on my imx6qsabrelite board and X now comes up (no more segmentation violation), but the touch screen isn't working. I don't see a module available for it (it used to be tsc2004).

How do I get the touch screen going?

Thanks

#40 lore raw

I'm using LVDS and it is not working as well.

I don't know tsc2004, where do you connect this display?

You could try to use egalaxy driver, may you do that? (and let me know the results =P)

Daiane

#41 lore raw
Quoted 6 lines · Daiane Angolini

I'm using LVDS and it is not working as well.

I don't know tsc2004, where do you connect this display?

You could try to use egalaxy driver, may you do that? (and let me know the results =P)

That driver is compiled in and it's trying to use it, but failing. I get this error when I boot:
egalax_ts 2-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5

I had this working with a previous kernel, using these modules:
egalax_ts
tsc2004
galcore

n.b. when you reply, please quote what you are replying to. If you read these messages via email (as I do), all context is lost and it's really hard to figure out what you are saying. Not everyone uses Google Group's swank interface!

#42 lore raw
Quoted 10 lines · Gary Thomas
Quoted 7 lines · Daiane Angolini

I'm using LVDS and it is not working as well.

I don't know tsc2004, where do you connect this display?

You could try to use egalaxy driver, may you do that? (and let me know the results =P)

Quoted 8 lines

That driver is compiled in and it's trying to use it, but failing. I get this error when I boot:
egalax_ts 2-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5

I had this working with a previous kernel, using these modules:
egalax_ts
tsc2004

Right.

Quoted 1 line

galcore

This is now built-in.

Since you had it working previously please compare the dmesg output between both kernels so we can have a light where to look for it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#43 lore raw
Quoted 20 lines · Otavio Salvador
Quoted 10 lines · Gary Thomas
Quoted 7 lines · Daiane Angolini

I'm using LVDS and it is not working as well.

I don't know tsc2004, where do you connect this display?

You could try to use egalaxy driver, may you do that? (and let me know the results =P)

Quoted 8 lines

That driver is compiled in and it's trying to use it, but failing. I get this error when I boot:
egalax_ts 2-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5

I had this working with a previous kernel, using these modules:

   egalax_ts
   tsc2004
Quoted 8 lines

Right.

Quoted 1 line

galcore

This is now built-in.

Since you had it working previously please compare the dmesg output between both kernels so we can have a light where to look for it?

I'll see what I can do. I built it using meta-fsl-arm in October, so I'll have to rewind meta-fsl-arm to that time period since the linux kernel recipes have been updated (and older versions deleted).

Does someone have a working image for the sabrelite that uses this touch screen (it was the only one available as I recall when I bought the board in October)? I'd really like to try a known image so as to eliminate any errors I might have added when making the build.

#44 lore raw
Quoted 38 lines · Gary Thomas
Quoted 28 lines · Otavio Salvador
Quoted 13 lines · Gary Thomas
Quoted 8 lines · Daiane Angolini

I'm using LVDS and it is not working as well.

I don't know tsc2004, where do you connect this display?

You could try to use egalaxy driver, may you do that? (and let me know the results =P)

Quoted 8 lines

That driver is compiled in and it's trying to use it, but failing. I get this error when I boot:
egalax_ts 2-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5

I had this working with a previous kernel, using these modules:

   egalax_ts
   tsc2004

Right.

Quoted 7 lines
Quoted 1 line

galcore

This is now built-in.

Since you had it working previously please compare the dmesg output between both kernels so we can have a light where to look for it?

Quoted 8 lines

I'll see what I can do. I built it using meta-fsl-arm in October, so I'll have to rewind meta-fsl-arm to that time period since the linux kernel recipes have been updated (and older versions deleted).

Does someone have a working image for the sabrelite that uses this touch screen (it was the only one available as I recall when I bought the board in October)? I'd really like to try a known image so as to eliminate any errors I might have added when making the build.

In any case this seems to be kernel related and not a BSP issue. Fabio, could you take a look?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
reviewer
#45 lore raw
Quoted 2 lines · Otavio Salvador

In any case this seems to be kernel related and not a BSP issue. Fabio, could you take a look?

The "failed to read firmware version" seems to be an I2C issue. The I2C controllers send some commands to the panel, and it is failing.

I will take try to reproduce this when I have a chance.

Regards,

Fabio Estevam

reviewer
#46 lore raw
Quoted 8 lines · Fabio Estevam
Quoted 2 lines · Otavio Salvador

In any case this seems to be kernel related and not a BSP issue. Fabio, could you take a look?

The "failed to read firmware version" seems to be an I2C issue. The I2C controllers send some commands to the panel, and it is failing.

I think the I2C read failure is normal, as the sabrelite panel is not egalax.

You should use the Hannstar panel.

Regards,

Fabio Estevam

#47 lore raw
Quoted 7 lines · Fabio Estevam
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Otavio Salvador

In any case this seems to be kernel related and not a BSP issue. Fabio, could you take a look?

Quoted 6 lines
Quoted 2 lines

The "failed to read firmware version" seems to be an I2C issue. The I2C controllers send some commands to the panel, and it is failing.

I think the I2C read failure is normal, as the sabrelite panel is not egalax.

You should use the Hannstar panel.

Hmm, that driver does not build (meta-fsl-arm is up to date):

| drivers/input/touchscreen/p1003_ts.c: In function 'p1003_probe':
| drivers/input/touchscreen/p1003_ts.c:304:2: error: implicit declaration of function 'set_irq_type' [-Werror=implicit-function-declaration]
| cc1: some warnings being treated as errors
| make[3]: *** [drivers/input/touchscreen/p1003_ts.o] Error 1
| make[2]: *** [drivers/input/touchscreen] Error 2
| make[1]: *** [drivers/input] Error 2
| make: *** [drivers] Error 2
| make: *** Waiting for unfinished jobs....
|   AR      lib/lib.a
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /home/local/imx6_poky/tmp/work/sabrelite-amltd-linux-gnueabi/linux-imx-3.0.35-r32.3/temp/log.do_compile.12860 for further information)

ERROR: Task 6 (/home/local/poky-multi/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 603 tasks of which 599 didn't need to be rerun and 1 failed.
No currently running tasks (599 of 613)

Summary: 1 task failed:
/home/local/poky-multi/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_compile

reviewer
#48 lore raw
Quoted 5 lines · Gary Thomas

Hmm, that driver does not build (meta-fsl-arm is up to date):

| drivers/input/touchscreen/p1003_ts.c: In function 'p1003_probe':
| drivers/input/touchscreen/p1003_ts.c:304:2: error: implicit declaration of function 'set_irq_type' [-Werror=implicit-function-declaration]

Try changing it to 'irq_set_irq_type' instead.

Do you know exactly the panel you are using with sabrelite?

Just looked at Boundary Device's git tree and it seems they support 3 panels:
https://github.com/boundarydevices/linux-imx6/blob/boundary-L3.0.35_MX6DQ_ER_1208-Beta/arch/arm/mach-mx6/board-mx6q_sabrelite.c

The original 12.09 BSP from FSL has not been tested/validated on mx6qsabrelite board. Please compare it with the Boundary Device tree.

Regards,

Fabio Estevam

#49 lore raw
Quoted 10 lines · Fabio Estevam
Quoted 5 lines · Gary Thomas

Hmm, that driver does not build (meta-fsl-arm is up to date):

| drivers/input/touchscreen/p1003_ts.c: In function 'p1003_probe':
| drivers/input/touchscreen/p1003_ts.c:304:2: error: implicit declaration of function 'set_irq_type' [-Werror=implicit-function-declaration]

Try changing it to 'irq_set_irq_type' instead.

Quoted 7 lines

Do you know exactly the panel you are using with sabrelite?

Just looked at Boundary Device's git tree and it seems they support 3 panels:
https://github.com/boundarydevices/linux-imx6/blob/boundary-L3.0.35_MX6DQ_ER_1208-Beta/arch/arm/mach-mx6/board-mx6q_sabrelite.c

The original 12.09 BSP from FSL has not been tested/validated on mx6qsabrelite board. Please compare it with the Boundary Device tree.

I thought I had your kernel working with this board, but I've tried so many things in the past few weeks (not to mention all the other boards I try to keep track of!) My panel is the Nit6X_800x480 which uses the TSC2004 touch controller.

For now, I'll build the kernel using their tree.

Would you entertain patches to make the FSL BSP work with this board (if I have time)?

reviewer
#50 lore raw
Quoted 11 lines · Gary Thomas

I thought I had your kernel working with this board, but I've tried so many things
in the past few weeks (not to mention all the other boards I try to keep track of!)
My panel is the Nit6X_800x480 which uses the TSC2004 touch controller.

For now, I'll build the kernel using their tree.

Would you entertain patches to make the FSL BSP work with this board (if I have time)?

If you can generate a patch that fixes touchscreen on 12.09 for sabrelite, please submit it to the list.