After fixing init.rc (having it structured like other devices on LP AOSP), I managed to get it booted up !
I could also manage to get it connected trhough adb and see logcat that failed with:
D/libEGL ( 7682): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX530_120.so
W/linker ( 7682): libpvrANDROID_WSEGL.so: unused DT entry: type 0xf arg 0x124
W/libEGL ( 7682): eglInitialize(0x1) failed (EGL_BAD_ALLOC)
W/linker ( 7682):
gralloc.emxx.so: unused DT entry: type 0xf arg 0x4e8
W/linker ( 7682): libpvr2d.so: unused DT entry: type 0xf arg 0x779
W/linker ( 7682):
hwcomposer.emxx.so: unused DT entry: type 0xf arg 0xeb
E/HAL ( 7682): load: module=/vendor/lib/hw/
hwcomposer.emxx.soE/HAL ( 7682): dlopen failed: cannot locate symbol "SGX_DBG" referenced by "
hwcomposer.emxx.so"...
E/SurfaceFlinger( 7682): hwcomposer module not found
E/SurfaceFlinger( 7682): ERROR: failed to open framebuffer (Not a typewriter), aborting
F/libc ( 7682): Fatal signal 6 (SIGABRT), code -6 in tid 7682 (surfaceflinger)
...
The
Also, trying to start the 'pvrsrvctl' service, I get an error:
root@android:/ # pvrsrvctl
error: only position independent executables (PIE) are supported.
This points to the need to rebuild the SGX KM and UM modules, using using latest LP toolchain, I think...
Also, binaries should be built probably setting the -fPIE and -pie compiler flags (after a brief search on Google...).
Issue is that I'm having troubles re-compiling SGX modules now... I used to do that in the past, but now I'm getting an error.
Liu, could you get in touch, so we could try to discuss this?
thanks
Fabio