Ae you running this on an EVM 5432? If yes, do you have "pvrsrvkm.ko" loadded? Also, you probably have no GL in Window (X11 integration) support, so ypu probably need to add "export LIBGL_FB=1" to force fulscreen and direct framebuffer use.I'm trying to run a simple monogame using your gl4es library.
I compiled gl4es and SDL2 with your guide and set
export LIBGL_ES=2
export LIBGL_GL=21
export LD_LIBRARY_PATH="./arm: $HOME/Projects/gl4es/lib"
I see, that libGL1.so is in uses, but i got errors:
LIBGL: Initialising gl4es
LIBGL: v1.0.9 built on Aug 31 2018 14:28:25
LIBGL: Using GLES 2.0 backend
LIBGL:loaded: libGLESv2.so
LIBGL:loaded: libEGL.so
LIBGL: Using GLES 2.0 backend
PVR: (Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR: (Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR: (Error): Couldn't connect to services [0, ]
LIBGL: Error while gathering supported extension (eglInitialize: EGL_BAD_ALLOC), default to none
LIBGL: Targeting OpenGL 2.1
LIBGL: Current folder is:/home/thomas/Projects/xBreakout
PVR: (Error): LoadWSModule: Couldn't get address of jump table retrieval function for [0, ]
LIBGL: Unable to create EGL display.
PVR: (Error): LoadWSModule: Couldn't get address of jump table retrieval function for [0, ]
LIBGL: Unable to create EGL display.
How can i check, if correct SDL library loaded?
Strange is, running without setting LIBGL_XXXX the default open gl drivers is loaded and the game is running.
Thomas
@aTc can you answer this?Great, can't wait going home for testing.
Thomas
[doublepost=1536074568,1536068943][/doublepost]Sorry to ask, but which kernel source repository have i add to sources.list?
apt-get source linux-image-$(uname -r)
I got the message "E: You must put some 'source' URIs in your sources.list"
Thomas
I checked on my pyra:Mhm, i think, i have to use kernel source from http://projects.goldelico.com/p/gta04-kernel/, there is no 4.15 kernel any more, i have to switch to 4.18.
Thomas
deb [arch=armhf] http://packages.pyra-handheld.com/debian stretch main
deb-src http://packages.pyra-handheld.com/debian stretch main
The "magic" of the module you built is different for the maginc of your current kernel (meaning: different compile flags...). Probably the "-pyra" is missing (check with "uname -a"). Search the config file arch/arm/config/letux_lpae_defconfig.cfg in the kernel to add the "-pyra" to the signature and it will be fine (-pyra means aufs for dbp, if I'm not mistaken).Yes, thanks, downloaded "linux-4.15.0-rc8-letux-lpae-pyra", compiling and creating a module "pvrsrvkm.ko" has done.
But loading failed with message "Invalid module format", it is incompatible with installed kernel.
Try building new kernel, but this fails with missing "openssl/bio.h" in moment.
But thanks for help.
Thomas
Ah yes, there was an option missing in the kernel (I don't remember wich one), leading to that missing symbol. Use kernel 4.15.17 if you can, aTc added that option in this one.running "uname -a" => "4.15.0-rc8-letux-lpae-pyra"
running "sudo modinfo ./eurasia_km/eurasiacon/binary2_omap_linux_release/target/pvrsrvkm.ko" => "4.15.0-rc8-letux-lpae", tada
change line "CONFIG_LOCALVERSION="-letux-lpae" to "CONFIG_LOCALVERSION="-letux-lpae-pyra"",
rerun "make ARCH=arm letux_lpae_defconfig" in kernel dir
rebuild modul
rerun "sudo modinfo ./eurasia_km/eurasiacon/binary2_omap_linux_release/target/pvrsrvkm.ko" => "4.15.0-rc8-letux-lpae-pyra", tada
But loading failed with message "Unknown symbol in module"
I will check this later.
Thomas
Maybe try to use fbdev instead of fbturbo on that kernel. It was needed for me, but not for aTc, so give it a try, but it may not solve the issue.Strange, Kernel 4.15.17 is running, but no x11 screen and on serial console many kernel trace exeptions, but login over ethernet is working.
Trying a newer kernel.
Thomas