Yeah, that's as far as i got... TI even got that far in our jessie image too...
Yeah, you are right..... SGX module is an headache.... inclusion of proprietary code. This is the main problem... :-( ... Well, with the same commands, have the same error... good. another little step:
The problem seems due to a wrong pvrsrvkm.ko in the package. I have opened a thread in TI forum to know what are the exactly module version to build.
[http://e2e.ti.com/support/arm/sitara_arm/f/791/p/544759/1987258#1987258]
And response is that we have to use the latest stack, integrated into the last Processor SDK: <Processor SDK>**/board-support/extra-drivers/** So in my host - download ti-processor-sdk-linux-rt-am335x-evm-03.00.00.04 and enter in the right path - copy board-support/extra-drivers/ti-sgx-ddk-km-1.14.3699939 directory in my BBB in my BBB: $ cd ti-sgx-ddk-km-1.14.3699939/eurasia_km/eurasiacon/build/linux2/omap_linux/ $ export DISCIMAGE=/ $ export TARGET_PRODUCT=ti335x $ export KERNELDIR=/usr/src/linux-headers-4.4.16-ti-rt-r38/ $ make So, copy by hand pvrsrvkm.ko in the right place: **/lib/modules/**<your kernel version>/extra/ti335x because "make install" doesn't work.. Arrrrrgggh Finally: $ sudo /usr/bin/pvrsrvctl --start module starts properly and kernel says: [ 208.971076] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1 [ 208.974968] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ] But when I try to execute any example placed in omap5-sgx-ddk-um-linux/targetfs/ sound like libEGL warning: DRI3: xcb_connect failed libEGL warning: DRI2: xcb_connect failed libEGL warning: DRI2: xcb_connect failed Unable to initialise egl egl error 'EGL_NOT_INITIALIZED' (0x3001) Is possible that we have to update also userspace bin? Regards, Matteo
libEGL warning: DRI3: xcb_connect failed libEGL warning: DRI2: xcb_connect failed libEGL warning: DRI2: xcb_connect failed Unable to initialise egl egl error 'EGL_NOT_INITIALIZED' (0x3001)
sudo mkdir -p /lib/modules/4.4.11-00332-gce54280-dirty/extra/
sudo ln -s /lib/modules/`uname -r`/extra/ti335x/pvrsrvkm.ko
/lib/modules/4.4.11-00332-gce54280-dirty/extra/pvrsrvkm.ko
debian@beaglebone:~$ sudo /usr/bin/pvrsrvctl --start
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
debian@beaglebone:~$ sudo modprobe pvrsrvkm
(nothing in dmesg)
debian@beaglebone:~$ lsmod | grep pvr
pvrsrvkm 379674 0
debian@beaglebone:~$ ls /dev/dri/*
/dev/dri/card0 /dev/dri/controlD64
So libEGL is Mesa's Wayland extensions.
Mesa is a 3d graphics library. Not sure how SGX even comes in at this context ?
>
> How was this module built?
https://github.com/rcn-ee/ti-sgx-omap5/blob/master/build-ti335x-4.4.x.sh
Nice find Matteo, I missed that the makefile grew a device option..
Regards,
I'm pretty sure we will have to back-port wayland from stretch..
But this scares me:
http://git.ti.com/gitweb/?p=graphics/omap5-sgx-ddk-um-linux.git;a=commit;h=8d4ba04a2da59989b21aacca9defdf387e321695
the gcc 4.9 -> gcc 5.x was so much "FUN" in stretch over the summer, ^
might mean we have to just use stretch..