Failed to init EGL

Bug #1061428 reported by Egor Rumjantsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-omap4-extras-graphics
Invalid
Undecided
Unassigned

Bug Description

After last update from TI PPA EGL support seems broken.

root@DPP4:~# xeglinfo
gbmpvr: WSEGL_IsDisplayValid:77: hNativeDisplay=0x15070
PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so did not validate native display [98, /generic_ws.c]
wlpvr: WSEGL_IsDisplayValid:174: hNativeDisplay=0x15070
PVR:(Warning): LoadWSModule: Window system module libpvrws_WAYLAND.so did not validate native display [98, /generic_ws.c]
PVR:(Error): PVRSRVBridgeCall: Failed to access device. Function ID:3223086860 (Bad address). [294, /pvr_bridge_u.c]
PVR:(Error): OpenServices: PVRSRVBridgeCall failed. [181, /pvr_bridge_u.c]
PVR:(Error): PVRSRVConnect: Unable to open connection. [361, /bridged_pvr_glue.c]
ERROR: PVR2DCreateDeviceContext failed
PVR:(Warning): PVRDRMSetFD: DRM fd already set [57, /pvr_bridge_u.c]
Unable to initialise egl
    egl error 'EGL_NOT_INITIALIZED' (0x3001)
root@DPP4:~#

I use kernel 3.4.11 on Variscite' OM4460 module, Ubuntu 12.04 armhf.
I tried to compile pvr-omap4-1.9.0.5.1.1 and pvr-omap4-1.9.0.6.1.1 but the result the same - EGL init failed

Revision history for this message
Egor Rumjantsev (egorrumjantsev) wrote :

in dmesg i see message:
Oct 4 07:03:51 DPP4 kernel: [ 30.677215] PVR_K: (FAIL) SGXInit: Incompatible driver DDK revision (2120756)/device DDK revision (2139099).

Should i change this revision number by hands ?

Revision history for this message
Nicolas Dechesne (ndec) wrote : RE: [Tiomap-dev] [Bug 1061428] [NEW] Failed to init EGL
Download full text (4.5 KiB)

It seems to be working fine here...

With this config:

$ dpkg -l | grep pvr
ii pvr-omap4 1.9.0.6.1.1-3 PowerVR SGX540 libraries for OMAP4, remaining libs and binaries
ii pvr-omap4-data 1.9.0.6.1.1-3 PowerVR SGX540 libraries for OMAP4, data files
ii pvr-omap4-dkms 1.9.0.6.1.1-2 PowerVR SGX540 kernel driver for OMAP4 in DKMS format.
ii pvr-omap4-utils 1.9.0.6.1.1-3 PowerVR SGX540 utils for OMAP4
ii pvr-omap4-xf86 1.9.0.6.1.1-3 X.org graphics -- TI OMAP pvr display driver

can you send the output for the same command?

also can you send output of:

$ lsmod
$ dkms status

Are you sure you ran:

* In some cases, you might need to re-install dkms packages: after reboot, check if omapdrm_pvr module is loaded, if not execute following command before to reboot:
    $ sudo apt-get install --reinstall pvr-omap4-dkms

As per Xav's email?

>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 12.654.784

-----Original Message-----
> From: <email address hidden>
> [mailto:<email address hidden>] On
> Behalf Of Egor Rumjantsev
> Sent: Thursday, October 04, 2012 9:22 AM
> To: <email address hidden>
> Subject: [Tiomap-dev] [Bug 1061428] [NEW] Failed to init EGL
>
> Public bug reported:
>
> After last update from TI PPA EGL support seems broken.
>
> root@DPP4:~# xeglinfo
> gbmpvr: WSEGL_IsDisplayValid:77: hNativeDisplay=0x15070
> PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so
> did not validate native display [98, /generic_ws.c]
> wlpvr: WSEGL_IsDisplayValid:174: hNativeDisplay=0x15070
> PVR:(Warning): LoadWSModule: Window system module
> libpvrws_WAYLAND.so did not validate native display [98, /generic_ws.c]
> PVR:(Error): PVRSRVBridgeCall: Failed to access device. Function
> ID:3223086860 (Bad address). [294, /pvr_bridge_u.c]
> PVR:(Error): OpenServices: PVRSRVBridgeCall failed. [181, /pvr_bridge_u.c]
> PVR:(Error): PVRSRVConnect: Unable to open connection. [361,
> /bridged_pvr_glue.c]
> ERROR: PVR2DCreateDeviceContext failed
> PVR:(Warning): PVRDRMSetFD: DRM fd already set [57, /pvr_bridge_u.c]
> Unable to initialise egl
> egl error 'EGL_NOT_INITIALIZED' (0x3001) root@DPP4:~#
>
> I use kernel 3.4.11 on Variscite' OM4460 module, Ubuntu 12.04 armhf.
> I tried to compile pvr-omap4-1.9.0.5.1.1 and pvr-omap4-1.9.0.6.1.1 but the
> result the same - EGL init failed
>
> ** Affects: ubuntu-omap4-extras-graphics
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of TI OMAP
> Developers, which is subscribed to ubuntu-omap4-extras-graphics.
> https://bugs.launchpad.net/bugs/1061428
>
> Title:
> Failed to init EGL
>
> Status in Ubuntu OMAP4 graphics addons:
> New
>
> Bug description:
> After last update from TI PPA EGL support seems broken.
>
> root@DPP4:~# xeglinfo
> gb...

Read more...

Revision history for this message
Egor Rumjantsev (egorrumjantsev) wrote :
Download full text (3.6 KiB)

root@DPP4:~# dpkg -l | grep pvr
ii pvr-omap4 1.9.0.6.1.1-3 PowerVR SGX540 libraries for OMAP4, remaining libs and binaries
ii pvr-omap4-data 1.9.0.6.1.1-3 PowerVR SGX540 libraries for OMAP4, data files
ii pvr-omap4-dkms 1.9.0.6.1.1-2 PowerVR SGX540 kernel driver for OMAP4 in DKMS format.
ii pvr-omap4-utils 1.9.0.6.1.1-3 PowerVR SGX540 utils for OMAP4
ii pvr-omap4-xf86 1.9.0.6.1.1-3 X.org graphics -- TI OMAP pvr display driver
root@DPP4:~#

root@DPP4:~# lsmod
Module Size Used by
omapdrm_pvr 323483 0
telit_gc864 5199 0
tda8029 6162 0
power_drv 7092 0
power_button 4880 0
mfrc531_ssp 24762 0
arc4 1059 2
wl12xx 10685 0
wlcore 144514 1 wl12xx
omapdce 22230 0
rpmsg_omx 7658 0
omaprpc 17000 0
mac80211 371739 1 wlcore
omap_remoteproc 4692 1
rpmsg_resmgr_common 2518 0
remoteproc 21403 3 rpmsg_omx,omap_remoteproc,rpmsg_resmgr_common
omap_rpmsg_resmgr 8587 0
rpmsg_resmgr 5471 2 rpmsg_resmgr_common,omap_rpmsg_resmgr
virtio_rpmsg_bus 9164 4 omapdce,rpmsg_omx,omaprpc,rpmsg_resmgr
cfg80211 160971 2 wlcore,mac80211
wlcore_sdio 2953 0
omap4iss 29233 0
var_battery 9846 0
omap4_keypad 2988 0
mt9p031 4360 0

root@DPP4:~# dkms status
pvr-omap4, 1.9.0.6.1.1: added

I did "apt-get install --reinstall pvr-omap4-dkms"

root@DPP4:~# apt-get install --reinstall pvr-omap4-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/637 kB of archives.
After this operation, 0 B of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = "ru_RU.utf8",
 LC_ALL = (unset),
 LANG = "posix"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
(Reading database ... 72412 files and directories currently installed.)
Preparing to replace pvr-omap4-dkms 1.9.0.6.1.1-2 (using .../pvr-omap4-dkms_1.9.0.6.1.1-2_armhf.deb) ...

------------------------------
Deleting module version: 1.9.0.6.1.1
completely from the DKMS tree.
------------------------------
Done.
Unpacking replacement pvr-omap4-dkms ...
Setting up pvr-omap4-dkms (1.9.0.6.1.1-2) ...
Loading new pvr-omap4-1.9.0.6.1.1 DKMS files...
First Installation: checking all kernels...
It is likely that 3.4.11-dipp45 belongs to a chroot's host
Building for architecture armhf
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

root@DPP4:~# dmesg | grep SGX
[ 30.677215] PVR_K: (FAIL) SGXInit: Incompatible driver DDK revision (21207...

Read more...

Revision history for this message
Egor Rumjantsev (egorrumjantsev) wrote :

Problem was in omapdrm_pvr.
i tried to build module:
make BUILD=release all

but after inserting module i got:

Unknown symbol PVRSRVTrace (err 0)
Oct 4 09:32:54 DPP4 kernel: [ 136.485687] omapdrm_pvr: Unknown symbol PVRSRVDebugPrintf (err 0)
Oct 4 09:32:54 DPP4 kernel: [ 136.535186] omapdrm_pvr: Unknown symbol PVRSRVTrace (err 0)

i unset DEBUG in pvr_debug.h and now module loads correctly.
xeglinfo works fine.
Question is closed...Sorry

Revision history for this message
Nicolas Dechesne (ndec) wrote :

your problem seems to be that you are using the PVR kernel .ko from the previous 'release' (september update), and the user space from "october" update.

as this message is telling:

root@DPP4:~# dmesg | grep SGX
[ 30.677215] PVR_K: (FAIL) SGXInit: Incompatible driver DDK revision (2120756)/device DDK revision (2139099).

2120756 was the DDK released b/o Sept, while 2139099 is the latest one release yesterday.

To me the problem is that the DKMS build failed because you are using your custom kernel and are missing the associated header files, as per:

Setting up pvr-omap4-dkms (1.9.0.6.1.1-2) ...
Loading new pvr-omap4-1.9.0.6.1.1 DKMS files...
First Installation: checking all kernels...
It is likely that 3.4.11-dipp45 belongs to a chroot's host Building for architecture armhf Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed.

I recommend that you either add you customization on top of our "ubuntu" kernel (http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git;a=summary) and rebuild your custom kernel as debian package using these instructions: http://omappedia.org/wiki/Ubuntu_kernel_for_OMAP4. that will ensure that when you install your kernel with dpkg -i, the PVR DKMS module will be rebuilt properly.

OR you can build the kernel without debian package, and rebuild the PVR out of tree driver 'manually', the instructions should be something like this:

get the PVR driver (out of tree kernel) source, and run:

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export DISCIMAGE=/
export KERNELDIR=<place where you have build kernel>
cd eurasia_km/eurasiacon/build/linux2/omap4430_linux/
make

I will close that bug.

Changed in ubuntu-omap4-extras-graphics:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.