[meta-freescale] Different use of libOpenVG in meta-fsl-arm and official meta-fsl-bsp-release

Otavio Salvador otavio.salvador at ossystems.com.br
Mon Nov 9 10:04:10 PST 2015


Hello Javier,

On Mon, Nov 9, 2015 at 3:57 PM, Viguera, Javier <Javier.Viguera at digi.com> wrote:
> I have a question regarding the use of libOpenVG in MX6 platforms.
>
> Allow me to write a bit of background. Using meta-fsl-arm, the package including the libraries is 'libopenvg-mx6':
>
> root at ccimx6sbc:/usr/lib# ls -l libOpenVG.*
> -rw-r--r--    1 root     root       2186417 Nov  4 11:59 libOpenVG.2d.so
> -rw-r--r--    1 root     root       1321465 Nov  4 11:59 libOpenVG.3d.so
> -rw-r--r--    1 root     root       1321465 Nov  4 11:59 libOpenVG.so
>
> root at ccimx6sbc:~# md5sum /usr/lib/libOpenVG.*
> 1ee20add86cdaf388e0bc406528a777c  /usr/lib/libOpenVG.2d.so
> 62613ac1a5266831e47eb6d617ced58e  /usr/lib/libOpenVG.3d.so
> 62613ac1a5266831e47eb6d617ced58e  /usr/lib/libOpenVG.so
>
> As you can see, file 'libOpenVG.so' is just a copy of 'libOpenVG.3d.so'. When you install the package with the package manager a warning is shows:
>
> /sbin/ldconfig: /usr/lib/libOpenVG.so is not a symbolic link
>
> Now, using the official FSL BSP (branch 'fido_3.14.38_6UL_patch' which uses the same GPU libs versions than current meta-fsl-arm), a boot script is installed, that updates at runtime the symlink of that library *depending* on the CPU:
>
> http://git.freescale.com/git/cgit.cgi/imx/meta-fsl-bsp-release.git/tree/imx/meta-bsp/recipes-core/sysvinit/sysvinit-inittab/mx6/rc_gpu.S?h=fido_3.14.38_6UL_patch
>
> If you look at the script it results that:
>
>   * for i.MX6DL (duallite):  the symlink points to /usr/lib/libOpenVG.3d.so
>   * for i.MX6Q (quad): the symlink points to /usr/lib/libOpenVG.2d.so
>
> In meta-fsl-arm we use libOpenVG.3d.so regardless of the CPU.
>
> Can someone in the list (probably FSL employee) shed a bit of light on this?
>
> Which version of the lib should be used for each of the MX6 CPU flavors?

This highlights a serious problem. Freescale says the QDL are software
compatible however this symlink mangle breaks this assumption. Mainly
it is not possible to use same rootfs, in read-only, for them all.

I added few Freescale people on Cc so they can comment on it.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list