[meta-freescale] [meta-fsl-arm][PATCH v3 0/8] iMX6Q BSP 1.1.0 upgrade

Thomas Senyk thomas.senyk at pelagicore.com
Tue Feb 12 04:54:49 PST 2013


Hi,

I tried the patch-set today and had several issues/problems.
Some (most?) of them are due to my own limited knowledge or my unusual setup.

This time I applied all patches of the patch-set :)
 ... but not the upstream openembedded-core patches as I'm building without 
X11, if this is in anyway a potential cause of errors: please let me know.
(How do I find the right openembbeded patches if I'm not on their mailing-
list? .. I guess I should be? ;)



1. Generally importing patch-set from mailing-lists.

How do you do this? For me it's always troublesome and error-prone to manually 
copy the patches from mail to files and apply them
 ... I'm sure there must be a better way of doing it?



2. recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-path-
to-HAL.patch
didn't apply anymore for me with following error:


NOTE: Applying patch '0001-change-header-path-to-HAL.patch' (../sources/meta-
fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-
path-to-HAL.patch)
ERROR: Command Error: exit status: 1  Output:
Applying patch 0001-change-header-path-to-HAL.patch
patching file usr/include/gc_vdk_types.h
Hunk #1 FAILED at 26.
1 out of 1 hunk FAILED -- rejects in file usr/include/gc_vdk_types.h
Patch 0001-change-header-path-to-HAL.patch does not apply (enforce with -f)


I changed the patch to:
--#include "gc_hal_eglplatform.h"
-+#include <HAL/gc_hal_eglplatform.h>
+-#include "gc_hal_eglplatform_type.h"
++#include <HAL/gc_hal_eglplatform_type.h>

... now it's building, but not sure if this was the right modification?



3. I got a different md5-hash for gc_vdk.h
I got a LIC_FILS_CHKSUM error pointing me to another hash.
I could verify this by manually running/extracting gpu-viv-bin-mx6q-1.1.0.bin 
and doing:
.../gpu-viv-bin-mx6q-1.1.0/usr/include/ head -11 gc_vdk.h|md5sum                                                                                                                                                  
c831981a5cbb2673318b77fb2f07014c  -



... I do get the felling I got a different version of the drivers then the 
rest of the people :D but it does look right:

.../oe-yocto/fsl-community-bsp/downloads/ sha1sum gpu-viv-bin-mx6q-1.1.0.bin
e17d9fc743245fc270309903f5863b480ab08e71  gpu-viv-bin-mx6q-1.1.0.bin

.../temp/ wget http://download.ossystems.com.br/bsp/freescale/source/gpu-viv-bin-mx6q-1.1.0.bin                                                                                                                      
.../temp/ sha1sum gpu-viv-bin-mx6q-1.1.0.bin
e17d9fc743245fc270309903f5863b480ab08e71  gpu-viv-bin-mx6q-1.1.0.bin





4. I build without X11 in DISTRO_FEATURES
 ... never the less I get: 
root at imx6qsabrelite:/usr/lib# ls libGAL* libEGL* -alh
-rw-r--r--    1 root     root       83.8K Feb 12 10:00 libEGL-x11.so
lrwxrwxrwx    1 root     root          13 Feb 12 11:22 libEGL.so -> libEGL-
x11.so
-rw-r--r--    1 root     root      807.1K Feb 12 10:00 libGAL-x11.so
lrwxrwxrwx    1 root     root          13 Feb 12 11:22 libGAL.so -> libGAL-
x11.so


their is a patch for that which never got "rebased & resend":
http://permalink.gmane.org/gmane.linux.embedded.yocto.meta-freescale/1160

... he might just wait for 'patch v3' to land



5. A similar problem within to sysroot,
Their is no libEGL.so anymore (same for libGAL.so)
 ... so far Qt always linked against those.

The above mentioned patch takes care about this as well by rm *-x11.so and 
letting the default symlinks (libEGL.so -> libEGL-fb.so) as they are
  ...for the not-x11 case (the x11 solution looks strange though).



6. uname -a
Linux imx6qsabrelite 3.0.35-1.1.0+yocto+gc27cb38 #1 SMP PREEMPT Mon Feb 11 
17:07:57 CET 2013 armv7l GNU/Linux

Their is a patch-set for switching to a newer 3.7 based kernel.
Can anyone clarify about the different kernels, how and why/why not switch?
 ... should 3.7 be default or is 3.0.35 the right one for now?



7. I still got the shader errors:
vertex shader compilation error: 
fragment shader compilation error: 
program link error: No vertex shader attached.

... those might be caused by one of the errors/mistakes above?



Greets
Thomas






On Wed, February 06, 2013 16:42:19 Otavio Salvador wrote:
> Hello,
> 
> This patch series upgrades the iMX6Q BSP to 1.1.0; it also try to fix
> the DRI support for it.
> 
> Please give it a try as this is a huge upgrade and we might have
> regressions and pending issues still unkown. This series depends on a
> cuple of patches I sent to OpenEmbeeded-Core mailing list for
> xserver-xorg and mesa, please apply them before playing with this
> series.
> 
> Changes for v3:
> - Drop merged patches
> - Add upgrade of linux-fslc kernel to 3.7.5
> 
> Changes for v2:
> - Fix build error due wrong dependency order between Xorg driver and
>   DRI;
> - Avoid installation of DRI headers as those are provided by Xorg;
> - Add upgrade of linux-fslc;
> - Drop merged patches.
> 
> Andrei Gherzan (2):
>   gpu-viv-bin-mx6q: Add dri.pc
>   glproto: Don't install glxtokens.h for imx6qsabrelite
> 
> Otavio Salvador (6):
>   gpu-viv-bin-mx6q: Upgrade to 1.1.0
>   xf86-video-imxfb-vivante: Upgrade to 1.1.0
>   linux-fslc: Update to 3.7.5 based kernel
>   xserver-xorg: Override PACKAGECONFIG for i.MX6 to enable DRI support
>   xf86-dri-vivante: Upgrade to 1.1.0
>   xf86-video-imxfb-vivante: Add depends/rdepends for DRI support
> 
>  .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |  43 ++++---
>  .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc       |  11 ++
>  ...-mx6q_12.09.01.bb => gpu-viv-bin-mx6q_1.1.0.bb} |   5 +-
>  .../xf86-dri-vivante/fix-with-xorg-1-13.patch      | 141
> +++++++++++++++++++++ .../xorg-driver/xf86-dri-vivante_1.1.0.bb          | 
> 45 +++++++
>  .../xorg-driver/xf86-dri-vivante_12.09.01.bb       |  36 ------
>  .../Makefile.am-remove-prefixed-include-path.patch |   2 +
>  .../fix-vivante-compile.patch                      |  86 ++++++-------
>  ....09.01.bb => xf86-video-imxfb-vivante_1.1.0.bb} |  16 ++-
>  .../xorg-proto/glproto_1.4.16.bbappend             |   8 ++
>  .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   4 +
>  recipes-kernel/linux/linux-fslc_3.7.bb             |   4 +-
>  12 files changed, 289 insertions(+), 112 deletions(-)
>  create mode 100644
> recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc rename
> recipes-graphics/gpu-viv-bin-mx6q/{gpu-viv-bin-mx6q_12.09.01.bb =>
> gpu-viv-bin-mx6q_1.1.0.bb} (51%) create mode 100644
> recipes-graphics/xorg-driver/xf86-dri-vivante/fix-with-xorg-1-13.patch
> create mode 100644 recipes-graphics/xorg-driver/xf86-dri-vivante_1.1.0.bb
> delete mode 100644
> recipes-graphics/xorg-driver/xf86-dri-vivante_12.09.01.bb rename
> recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_12.09.01.bb =>
> xf86-video-imxfb-vivante_1.1.0.bb} (65%) create mode 100644
> recipes-graphics/xorg-proto/glproto_1.4.16.bbappend create mode 100644
> recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend



More information about the meta-freescale mailing list