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.

How to build omaplfb.ko in SGX DDK 1.9

Other Parts Discussed in Thread: 4460

Hi,

I am using SGX DDK  1.9@2166536.

This DDK build only usermode bins, pvrsrvkm_sgx540_120.ko and not omaplfb.ko.

1)How should i build omaplfb.ko uisng DDK 1.9

I was able to build omaplfb.ko by enabling  DISPLAY_CONTROLLER_COMPONENT := dc_omapfb3_linux   

at eurasia_km/eurasiacon/build/linux2/omap4430_android/Makefile .

2)How SGX DDK ensures that its omaplfb.ko is loaded by kernel. Does it have omaplfbinit like pvsrvinit?

Note: Kernel also has omaplfb module which is crashing. si i am  trying to build omaplfb from DDK

Please help me.

  • Hi,

    "1)How should i build omaplfb.ko uisng DDK 1.9"

    If you have the SGX DDK sources, you should refer to the README file located inside the SGX DDK folder. It contains the step by step instructions for building the DDK driver.

    For linux, after exporting
    CROSS_COMPILE

    DISCIMAGE

    KERNELDIR

    you should go to the <path_to_eurasia_km>/eurasiacon/build/linux/<build_target_folder>/kbuild folder and execute the make command.

    For Android there should be a build script that should be used.  As I said go through the txt (& README) files in your sources, the procedure is explained in details.

    "How SGX DDK ensures that its omaplfb.ko is loaded by kernel. Does it have omaplfbinit like pvsrvinit?"

    After your build is complete you should copy the generated kernel object ( .ko) file on your target, in /system/lib/modules and insmod it. 

    Best Regards,

    Yordan

  • Hi Yordan Kovachev,

    omaplfb is now not part of DDK since it is moved to Kernel.

    Thats why README doesnt mention how to build omaplfb.ko.  I am getting build errors for omaplfb due to mismatch of kernel and SGX variables of few structures. So not going with this idea now as following is my main issue.

    with SGX DDK 1.9@2166536, kitkat  and 3.4.61 kernel, i am observing kernel crash.

    I have enabled SGX debug prints, i am getting below error in kitkat logcat

    E/IMGSRV ( 121): sgxinit.c:3323: SetupuKernel : EDM status value DevVAddr: 0x0F004000 pvLinAddrKM: 0xE0BC1000

    Also Kernel crash is due to Failure of below condition in function ProcessFlipV2 of omaplfb/omaplfb_displayclass.c

    uiHwcDataSz=636 calcsz=680

    if (uiHwcDataSz != calcsz)

    WARN(1, "invalid size of private data (%d vs %d)",uiHwcDataSz, calcsz);

    Attached Kitkat ,Kernel and gfx_check.sh logs.

    please help me in resolving the issue. 

    Regards,

    Srinivas

    sgx.7z
  • Hi Srinivas,

    The SGX DDK is updated for kitkat, but it supports only the newer device's GPUs (Jacinto platforms, which use SGX544).

    SGX DDK kernel modules and user modules for OMAP4 & TI OMAP4 kernel releases are NOT updated to support KitKat.

    Best Regards,
    Yordan

  • Hi all,

    it is still not possible to use the Blaze Tablet in combination with Android 4.4?

    I want migrate my existing device which is based on Blaze Tablet OMAP4460 to Android 4.4 but there are a lot of SGX problems.

    I also not want to go back to kernel 3.0 which is used in Panda Android 4.4.

    Does anybody have some hints for me (Android 4.4 on Blaze Tablet - OMAP 4460)?

    Regards, Roman

  • Hi Roman,

    There is no official TI release of Android 4.4 (kitkat) for Blaze/Blaze Tablet.

    There are some community projects for Android 4.4 with Pandaboard (as you've noticed), but not for Blaze/Blaze Tablet.

    Official TI releases for those devices use kernel 3.4 & JellyBean (Andoird 4.2.2).

    Best Regards,
    Yordan

  • HI Yordan,

    many thanks for the prompt response.

    Does there exist an inofficial TI release for that which can be used as start point?  ;-)

    Regards, Roman

  • Hi Roman,

    To my knowledge there isn't Android 4.4 on Blaze/Blaze Tablet.

    I know that there has been partial success in porting KitKat on Pandaboard (search for OMAP4 KitKat in this forum or in xda developers forum for more info)

    Best Regards,

    Yordan