Skip to contentSkip to conversation

egl on beagleboard xM

DISCUSSION Tomas Frydrych 2 participants 5 messages Apr 26, 2012 – Apr 27, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to get native egl (i.e., without X) working on Beagleboard xM, but without much success. I am using libgles-omap3 (4.05.00.03) the kernel(s) and sgx drivers from meta-ti master; everything appears to start fine (i.e., no errors reported from pvr-init or dmesg), but trying run any of the gles tests / demos gives:

'eglInitialize' returned egl error 'EGL_BAD_ALLOC' (0x3003)

I have tried both linux-omap 2.6.39 and linux 3.0.8, with same results.

Any pointers to what the problem might be would be much appreciated,

Tomas

kernel command line:

console=ttyO2,115200n8 vram=48M mpurate=auto omapfb.mode=dvi:1280x720MR-16@60 omapfb.debug=y omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

Also tried 1024x768MR-16@60, and different vram sizes, without success.

# lsmod
Module                  Size  Used by
bufferclass_ti          4696  0
omaplfb                11014  0
pvrsrvkm              142463  2 bufferclass_ti,omaplfb

...

# cat /proc/pvr/nodes

Registered nodes

Addr     Type     Class    Index Ref pvDev     Size Res
db42eb00 ?9       buffer      2   1  da43ba00   28    (null)
db42ed40 ?9       display     1   1  db77a300   52    (null)
db42eec0 ?7       3D          0   1  db57c000    0  db572680
# fbset -i

mode "1280x720-60"

    # D: 64.000 MHz, H: 44.444 kHz, V: 59.979Hz
    geometry 1280 720 1280 720 16
    timings 15625 80 48 3 13 32 5
    rgba 5/11,6/5,5/0,0/0

endmode

Frame buffer device information:

    Name        :omapfb
    Address     : 0x9d000000
    Size        : 1843200
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
#1 lore raw

Op 26 apr. 2012, om 22:10 heeft Tomas Frydrych het volgende geschreven:

Quoted 11 lines

Hi,

I am trying to get native egl (i.e., without X) working on Beagleboard xM, but without much success. I am using libgles-omap3 (4.05.00.03) the kernel(s) and sgx drivers from meta-ti master; everything appears to start fine (i.e., no errors reported from pvr-init or dmesg), but trying run any of the gles tests / demos gives:

'eglInitialize' returned egl error 'EGL_BAD_ALLOC' (0x3003)

I have tried both linux-omap 2.6.39 and linux 3.0.8, with same results.

Both of those aren't the default, so are you actually using meta-ti?!?

#2 lore raw
Quoted 11 lines · Koen Kooi

Op 26 apr. 2012, om 22:10 heeft Tomas Frydrych het volgende geschreven:

Quoted 8 lines

Hi,

I am trying to get native egl (i.e., without X) working on Beagleboard xM, but without much success. I am using libgles-omap3 (4.05.00.03) the kernel(s) and sgx drivers from meta-ti master; everything appears to start fine (i.e., no errors reported from pvr-init or dmesg), but trying run any of the gles tests / demos gives:

Quoted 5 lines
Quoted 3 lines

'eglInitialize' returned egl error 'EGL_BAD_ALLOC' (0x3003)

I have tried both linux-omap 2.6.39 and linux 3.0.8, with same results.

Both of those aren't the default, so are you actually using meta-ti?!?

Hm, so which is meant to be the 'right' beagleboard kernel? The default virtual provider in meta-ti beagleboard.conf is linux-omap, and based on the priorities it seems to work out that 2.6.39 is the preferred version. I am quite happy to try yet a different kernel, of course :)

(I am only using the kernel and related recipes from meta-ti.)

Tomas

#3 lore raw

Op 27 apr. 2012, om 01:04 heeft Tomas Frydrych het volgende geschreven:

Quoted 12 lines · Koen Kooi
Quoted 11 lines

Op 26 apr. 2012, om 22:10 heeft Tomas Frydrych het volgende geschreven:

Quoted 8 lines

Hi,

I am trying to get native egl (i.e., without X) working on Beagleboard xM, but without much success. I am using libgles-omap3 (4.05.00.03) the kernel(s) and sgx drivers from meta-ti master; everything appears to start fine (i.e., no errors reported from pvr-init or dmesg), but trying run any of the gles tests / demos gives:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

'eglInitialize' returned egl error 'EGL_BAD_ALLOC' (0x3003)

I have tried both linux-omap 2.6.39 and linux 3.0.8, with same results.

Both of those aren't the default, so are you actually using meta-ti?!?

Hm, so which is meant to be the 'right' beagleboard kernel? The default virtual provider in meta-ti beagleboard.conf is linux-omap

No, it isn't.

Quoted 5 lines

, and based on
the priorities it seems to work out that 2.6.39 is the preferred version. I am quite happy to try yet a different kernel, of course :)

(I am only using the kernel and related recipes from meta-ti.)

Try using the machine.conf as well:

koen@dominion:/OE/angstrom-v2012-05/sources/meta-ti$ git log --oneline -1
51617ea cloud9-gnome-image: same as cloud9-image, but with GNOME added to it
koen@dominion:/OE/angstrom-v2012-05/sources/meta-ti$ git grep PREFERRED_PROVIDER_virtual/kernel | grep beagle
conf/machine/beagleboard.conf:PREFERRED_PROVIDER_virtual/kernel = "linux"
conf/machine/beaglebone.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp"
#4 lore raw
Quoted 1 line · Koen Kooi
Quoted 1 line
Quoted 1 line
Quoted 1 line

I have tried both linux-omap 2.6.39 and linux 3.0.8, with same results.

                                                   ^^^^^

Sorry, that was mean to say 3.0.28, and the gles does not work. Or is that not the default kernel?

Tomas