Vivante GC320 support

This forum is for supported devices using an ARMv7 Freescale SoC.

Re: Vivante GC320 support

Postby tobbebobbe » Fri Feb 07, 2014 2:47 pm

I am not sure I understand your question, but just let it compile now and see if it works when it is done.
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby ralix » Sat Feb 08, 2014 10:30 am

Morning.

xbmc ist running under archlinux on my utilite...

I must now clean up only the PKGBUILDs and again build everything...
change: linux-wandboard.fsl --> linux-utilite-fsl
$this->bbcode_second_pass_code('', '
pkgbase=linux-utilite-fsl
_kernelname=${pkgbase#linux}
_desc="i.MX6 Utilite, patched by Freescale, John Weber and Stephan Rafin"
_fslbspver=4.1.0
_vivantever=3.10.9_1.0.0
pkgver=3.0.35_${_fslbspver}
pkgrel=5
arch=('armv7h')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'uboot-mkimage')
options=('!strip')
source=('config') # my own (stephan, + crypto modules , nfs ...)
...
_gitname="utilite"
_gitroot="git://github.com/wolfgar"
_gitbranch="devel"
...
# allow use of 3.10.17 gpu binaries
#patch --ignore-whitespace -p1 < ../drm-vivante-Add-00-sufix-in-returned-bus-Id.patch
#patch --ignore-whitespace -p1 < ../ENGR00278350-gpu-viante-4.6.9p13-kernel-part-integra.patch
')
I use the old one of gpu binaries 3.10.9

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: Vivante GC320 support

Postby tobbebobbe » Sat Feb 08, 2014 11:18 am

Great to hear that you succeeded! Will you make packages out of these for us to download or should I start compiling myself?
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby tobbebobbe » Sun Feb 09, 2014 3:38 pm

I believe to have altered the PKGBUILD according to your explanation. When I try to compile the kernel I get an error:

$this->bbcode_second_pass_quote('', '
') CC arch/arm/mach-mx6/system.o
CC arch/arm/mach-mx6/devices.o
CC arch/arm/mach-mx6/dummy_gpio.o
CC arch/arm/mach-mx6/irq.o
CC arch/arm/mach-mx6/bus_freq.o
CC arch/arm/mach-mx6/usb_h2.o
In file included from arch/arm/plat-mxc/include/mach/iomux-mx6q.h:25:0,
from arch/arm/mach-mx6/usb_h2.c:32:
arch/arm/mach-mx6/usb_h2.c: In function ���hsic_start���:
arch/arm/plat-mxc/include/mach/iomux-mx6q.h:83:5: error: ���PAD_CTL_DSE_40ohm��� undeclared (first use in this function)
PAD_CTL_DSE_40ohm)
^
arch/arm/plat-mxc/include/mach/iomux-v3.h:74:44: note: in definition of macro ���MUX_PAD_CTRL���
#define MUX_PAD_CTRL(x) ((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT)
^
arch/arm/plat-mxc/include/mach/iomux-mx6q.h:3828:17: note: in expansion of macro ���MX6Q_USB_HSIC_PAD_CTRL���
MUX_PAD_CTRL(MX6Q_USB_HSIC_PAD_CTRL | PAD_CTL_PUS_47K_UP)\
^
arch/arm/mach-mx6/usb_h2.c:180:5: note: in expansion of macro ���MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START���
MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START);
^
arch/arm/plat-mxc/include/mach/iomux-mx6q.h:83:5: note: each undeclared identifier is reported only once for each function it appears in
PAD_CTL_DSE_40ohm)
^
arch/arm/plat-mxc/include/mach/iomux-v3.h:74:44: note: in definition of macro ���MUX_PAD_CTRL���
#define MUX_PAD_CTRL(x) ((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT)
^
arch/arm/plat-mxc/include/mach/iomux-mx6q.h:3828:17: note: in expansion of macro ���MX6Q_USB_HSIC_PAD_CTRL���
MUX_PAD_CTRL(MX6Q_USB_HSIC_PAD_CTRL | PAD_CTL_PUS_47K_UP)\
^
arch/arm/mach-mx6/usb_h2.c:180:5: note: in expansion of macro ���MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START���
MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START);
^
scripts/Makefile.build:305: recipe for target 'arch/arm/mach-mx6/usb_h2.o' failed
make[1]: *** [arch/arm/mach-mx6/usb_h2.o] Error 1
Makefile:945: recipe for target 'arch/arm/mach-mx6' failed
make: *** [arch/arm/mach-mx6] Error 2
==> ERROR: A failure occurred in build().
Aborting...


Any ideas on how to fix?
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby ralix » Mon Feb 10, 2014 6:42 am

My modified PKGBUILDs are now on "https://github.com/ralix-dev/PKGBUILDs"

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: Vivante GC320 support

Postby tobbebobbe » Tue Feb 11, 2014 9:31 pm

Now I have managed to compile the kernel and the libraries, and installed them. But when I try to do the "makepkg" for xbmc-imx it fails during configure:

$this->bbcode_second_pass_code('', 'checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... yes
configure: Using Python 2.7
== Wayland disabled. ==
checking for main in -lEGL... yes
checking for main in -lGLESv2... no
configure: error: Could not find a required library. Please see the README for your platform.
==> ERROR: A failure occurred in build().
Aborting...
')

$this->bbcode_second_pass_code('', 'alarm xbmc-imx]$ ls -l /usr/lib/*GLES*
lrwxrwxrwx 1 root root 21 Feb 4 07:22 /usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root 21 Feb 4 07:22 /usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
-rwxr-xr-x 1 root root 25940 Feb 4 07:23 /usr/lib/libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root 18 Feb 4 07:22 /usr/lib/libGLESv2.so -> libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root 27 Feb 11 22:10 /usr/lib/libGLESv2.so.1 -> /usr/lib/libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root 18 Feb 4 07:22 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rwxr-xr-x 1 root root 1138015 Feb 11 22:19 /usr/lib/libGLESv2.so.2.0.0
')

So the libGLESv2 actually does seem to be there, and should come from gpu-viv-bin-mxq6. Any idea what it is I'm doing wrong?
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby ralix » Wed Feb 12, 2014 5:10 am

Did you take my PKGBUILDs? My "GLESlibs" are located under /opt/fls/lib,,,

root@mordor-dev xbmc]# pwd
/usr/lib/xbmc
[root@mordor-dev xbmc]# ldd xbmc.bin | grep GLES
libGLESv2.so.2 => /opt/fsl/lib/libGLESv2.so.2 (0x40834000)

I think you have not installed pkgconfig.

Regards Ralix.
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

Re: Vivante GC320 support

Postby tobbebobbe » Wed Feb 12, 2014 9:18 am

Yes, I used your PKGSBUILDs and they all compiled fine, except for xbmc now. I did find the libs in /opt/fsl/lib. But do I have to create symlinks myself?

Also from gpu-viv-bin-mx6q I installed the "fb" package, and all other packages that did not conflict with that one. The "dfb" and some other package was in conflict so I did not install those.

When I get home from work I will see if I am missing pkgconfig.
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby tobbebobbe » Wed Feb 12, 2014 9:34 pm

Update, I fixed it by doing:

$this->bbcode_second_pass_code('', 'cd /opt/fsl/lib
ln -s libEGL-fb.so libEGL.so')

as described on the wandboard forum:
http://forums.wandboard.org/viewtopic.p ... 3&start=20
http://forums.wandboard.org/viewtopic.p ... 3&start=30
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: Vivante GC320 support

Postby ralix » Thu Feb 13, 2014 6:36 am

Hi tobbebobbe,

damn I forgot! Yes, I also had to make. I write this with in the PGKBUILD. Nice that it worked out.

Regards Ralix
ralix
 
Posts: 19
Joined: Wed Feb 05, 2014 5:04 am

PreviousNext

Return to Freescale

Who is online

Users browsing this forum: No registered users and 1 guest