This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SGX usermode binaries not loading

I am trying to port SGX to Kitkat on Blaze Board.

I am using SGX binaries(user mode binaries and kernel modules) generated with DDK 1.9@2166536 using Kitkat and 3.4.61 Kernel.

I am getting SEG Fault while loading SGX usermode binaries.

F/libc    (   98): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 98 (surfaceflinger)

.......

I/DEBUG ( 97): backtrace:
I/DEBUG ( 97): #00 pc 00000000 <unknown>
I/DEBUG ( 97): #01 pc 00000c98 /system/vendor/lib/libpvrANDROID_WSEGL_SGX540_120.so

Attached the Kernel, kitkat logcat and gfx_script output.

Please help me in resolving this error.

sgx.7z
  • Hi ,

    Have you checked this thread in the xda forum how you can patch the kernel and use the updated ducati?

    http://forum.xda-developers.com/showpost.php?p=47153419

    Regards,

    Boyko

  • Hi Boyko

    I am using 4AJ.2.5P2 Ducati Source and  SGX DDK 1.9@2166536 Source for which we have license.

    With Ducati and SGX binaries built for JellyBean + 3.4.61 omap kernel , GPU works.

    i.e. With JellyBean + 3.4.61  SGX user and kernel Mode binaries are loading .

    But i am facing issues with Kitkat + 3.4.61 omap kernel + Ducati and SGX binaries built for Kitkat.

    SGX Kernel Binaries (pvrsrvkm_sgx540_120.ko) are loading.(So no issue with 3.4.61 kernel?) 

    But SGX Usermode Binaries are causing Seg Fault.(See Attached logs SGX.7z)

    What am i missing for KitKat?

    As mentioned in the xda forum

    "you can patch the GNeX kernel and use the updated ducati, sgx gpu, and gralloc bins provided"

    Which Version of Ducati,SGX,Gralloc Bins should be used for kitkat?

    Should i apply any patches for 3.4.61 omap 4AJ.2.5P2 Kernel to support SGX for kitkat? or use kernel p-android-omap-3.0-dev mentioned in xda forum

    Regards,

    Srinivas

     

     

  • Hi Srinvas,

    Unfortunately kitkat for those kind of devices is not considered and  the best chance to have evrything runing is  to use the kernels suggested from the open( xda) community because the guys there have done more than enough to practical make it running. Also check the  linaro release which is based on 3.2 kernel 

    Regards,

    Boyko