Author Topic: CB4 Linaro v1.0 issues  (Read 6670 times)

Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
CB4 Linaro v1.0 issues
« on: May 17, 2015, 02:25:48 pm »
Hi,
Found these issues so far:
When switching to VGA, mouse cursor is hidden with fbturbo. After switching to pvr x11 driver, cursor works again.

Was unable to set another resolution than 1024x768. How to calculate those vertical/horizontal timings for 1366x768 or 1368x768 or 1360x768? Googled some VGA timings, but those didn't work.

QT Creator 5 is working, great!

Processing Java IDE is working great with 2D. Got Processing2 with Java SE Embedded and Processing3 with Java 8 ARM. Also tried Processing 2.0a5 + OpenGL/ES support (older hacked version from SVN) found here: http://compulab.co.il/utilite-computer/forum/viewtopic.php?f=48&t=488

But all those Java projects use LWJGL. There is compiled LWJGL for ARMHF: https://github.com/spsn/lwjgl ...so native libs can be easily replaced in linux32 folder.

And you have some error: /usr/lib/arm-linux-gnueabihf/libGLESv2.so is pointing to invalid location, so it liblwjgl cannot find and load this library. Screenshot attached here: https://www.dropbox.com/s/5xhr4jxb0mfhpvb/libgles.jpg?dl=0

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #1 on: May 17, 2015, 10:42:08 pm »
Hi,
Found these issues so far:
When switching to VGA, mouse cursor is hidden with fbturbo. After switching to pvr x11 driver, cursor works again.

Was unable to set another resolution than 1024x768. How to calculate those vertical/horizontal timings for 1366x768 or 1368x768 or 1360x768? Googled some VGA timings, but those didn't work.

QT Creator 5 is working, great!

Processing Java IDE is working great with 2D. Got Processing2 with Java SE Embedded and Processing3 with Java 8 ARM. Also tried Processing 2.0a5 + OpenGL/ES support (older hacked version from SVN) found here: http://compulab.co.il/utilite-computer/forum/viewtopic.php?f=48&t=488

But all those Java projects use LWJGL. There is compiled LWJGL for ARMHF: https://github.com/spsn/lwjgl ...so native libs can be easily replaced in linux32 folder.

And you have some error: /usr/lib/arm-linux-gnueabihf/libGLESv2.so is pointing to invalid location, so it liblwjgl cannot find and load this library. Screenshot attached here: https://www.dropbox.com/s/5xhr4jxb0mfhpvb/libgles.jpg?dl=0


Thanks for share your experience.     The last question  "/usr/lib/arm-linux-gnueabihf/libGLESv2.so is pointing to invalid location"   is strange,  This is my try, refer to attachment.

root@cubieboard4:/usr/lib/arm-linux-gnueabihf# ls libGLESv2.so -al
lrwxrwxrwx 1 root root 24 Jan  1  1970 libGLESv2.so -> libGLESv2.so.1.4.3064661
root@cubieboard4:/usr/lib/arm-linux-gnueabihf#

Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #2 on: May 18, 2015, 09:23:40 am »
Tried fresh install v1.0-hdmi and it is still pointing to mesa-egl/libGLESv2.so...but thanks for the share, I will fix the link manually.

libGLESv2.so.1 and libGLESv2.so.2 are pointing to that 1.4 version...only libGLESv2.so has a bad link (using pvr-xorg config). This fixes it: sudo ln -s libGLESv2.so.1.4.3064661 libGLESv2.so

Got working 1368x768 using VGA timings here :-)
http://tinyvga.com/vga-timing

OpenArena (Quake 3 clone) running great with sound as well...this is a great release!!! :-) I've tried several ARM boards (like 5 different vendors)...but only CC-A80 is finally working for my R&D project :-)

The only thing that remains for me to solve is Processing 3 Java IDE. They released a new version yesterday :-D which is using JOGL instead of LWJGL and all JOGL native binaries including armhf ones are already included (changelist: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt ). So you can download Processing 3 from processing.org (Linux 32-bit) and replace /java folder with Oracle JDK 8 for ARM. All demos are working, but opengl demos are not:
libGL error: MESA-LOADER: malformed or no PCI ID
libGL error: failed to create dri screen
libGL error: failed to load driver: pvr
libGL error: failed to load driver: swrast

It looks like it wants also some DRI driver for Xorg...

BTW: Arduino IDE works, but I had to create my own image again and include ftdi_sio module for /dev/ttyUSB* to appear.





Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #3 on: May 19, 2015, 01:32:39 pm »
Here is simple shell script for executing JOGL unit tests for ARMhf: https://gist.github.com/xranby/55de4fd65bfadae26203 ...it prints the same error as in Processing IDE, so it's not fault of the app. It's generic problem with PowerVR driver. JOGL supports GLES2 and GLES3...

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #4 on: May 21, 2015, 09:55:18 pm »
Tried fresh install v1.0-hdmi and it is still pointing to mesa-egl/libGLESv2.so...but thanks for the share, I will fix the link manually.

libGLESv2.so.1 and libGLESv2.so.2 are pointing to that 1.4 version...only libGLESv2.so has a bad link (using pvr-xorg config). This fixes it: sudo ln -s libGLESv2.so.1.4.3064661 libGLESv2.so

Got working 1368x768 using VGA timings here :-)
http://tinyvga.com/vga-timing

OpenArena (Quake 3 clone) running great with sound as well...this is a great release!!! :-) I've tried several ARM boards (like 5 different vendors)...but only CC-A80 is finally working for my R&D project :-)

The only thing that remains for me to solve is Processing 3 Java IDE. They released a new version yesterday :-D which is using JOGL instead of LWJGL and all JOGL native binaries including armhf ones are already included (changelist: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt ). So you can download Processing 3 from processing.org (Linux 32-bit) and replace /java folder with Oracle JDK 8 for ARM. All demos are working, but opengl demos are not:
libGL error: MESA-LOADER: malformed or no PCI ID
libGL error: failed to create dri screen
libGL error: failed to load driver: pvr
libGL error: failed to load driver: swrast

It looks like it wants also some DRI driver for Xorg...

BTW: Arduino IDE works, but I had to create my own image again and include ftdi_sio module for /dev/ttyUSB* to appear.


From error log,  It seem that it need libGL (OpenGL) . But now linaro desktop 1.0 only support OpenGLES.     

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #5 on: May 21, 2015, 10:00:14 pm »
Here is simple shell script for executing JOGL unit tests for ARMhf: https://gist.github.com/xranby/55de4fd65bfadae26203 ...it prints the same error as in Processing IDE, so it's not fault of the app. It's generic problem with PowerVR driver. JOGL supports GLES2 and GLES3...

You can search the name  "opengl" and "opengles" in the link that you give,  It seem that there is nothing about opengls  but opengl.
maybe JOGL didn't support opengles  but support opengl

Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #6 on: May 28, 2015, 09:13:19 am »
Hello,

1) JOGL supports: GLES2, GLES3, GLES4

2) The code above is running GLES2 unit tests, see line with RawGL2ES2demo:
java -cp jogl-demos.jar:jogl-all.jar:gluegen-rt.jar RawGL2ES2demo // RawGL2ES2demo.java source:
http://jogamp.org/git/?p=jogl-demos.git;a=blob;f=src/demos/es2/RawGL2ES2demo.java;hb=HEAD

3) It works on Raspberry Pi, which has those capabilities
« Last Edit: May 28, 2015, 09:38:59 am by cyberluke »

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #7 on: June 01, 2015, 02:31:09 am »
Hello,

1) JOGL supports: GLES2, GLES3, GLES4

2) The code above is running GLES2 unit tests, see line with RawGL2ES2demo:
java -cp jogl-demos.jar:jogl-all.jar:gluegen-rt.jar RawGL2ES2demo // RawGL2ES2demo.java source:
http://jogamp.org/git/?p=jogl-demos.git;a=blob;f=src/demos/es2/RawGL2ES2demo.java;hb=HEAD

3) It works on Raspberry Pi, which has those capabilities

Can you tell detailedly how to reproduce your situation?  I am no familar these things  about what you said.

Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #8 on: June 03, 2015, 07:24:33 am »
Hello Sam, yes just save this file: https://gist.github.com/xranby/55de4fd65bfadae26203 ...it's a shell script and execute it in the console. It will download the latest version and run those tests.

Apart from other things, it will report if GLES2, 3 and 4 is found:
GLES2: yes/no
GLES3: yes/no
GLES4: yes/no

It reports GLES2 not found in spite of the fact that it is downloading native binaries on line 7:
wget http://jogamp.org/deployment/jogamp-current/jar/jogl-all-natives-linux-armv6hf.jar

(jar is just a zip file, which can be extracted...I've looked into it and there are all files needed)...it looks like it's using some other X11 driver (MESA/DRI?) or there is some misconfiguration in xorg.conf
« Last Edit: June 03, 2015, 07:26:08 am by cyberluke »

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #9 on: June 06, 2015, 02:22:49 am »
Hello Sam, yes just save this file: https://gist.github.com/xranby/55de4fd65bfadae26203 ...it's a shell script and execute it in the console. It will download the latest version and run those tests.

Apart from other things, it will report if GLES2, 3 and 4 is found:
GLES2: yes/no
GLES3: yes/no
GLES4: yes/no

It reports GLES2 not found in spite of the fact that it is downloading native binaries on line 7:
wget http://jogamp.org/deployment/jogamp-current/jar/jogl-all-natives-linux-armv6hf.jar

(jar is just a zip file, which can be extracted...I've looked into it and there are all files needed)...it looks like it's using some other X11 driver (MESA/DRI?) or there is some misconfiguration in xorg.conf

When i run shell https://gist.github.com/xranby/55de4fd65bfadae26203 . just report jave not found. not other thing

Offline cyberluke

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: CB4 Linaro v1.0 issues
« Reply #10 on: June 08, 2015, 08:22:12 am »
Yes :-D you need Java

Download and install JDK 8 for ARM: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

It's also compatible with Java 7 for Embedded