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.

AM3354: OpenGL library usage

Part Number: AM3354

Hi,

We want to use GPU of AM3354 processor and we are compiling qt5 from buildroot.

We have uncertainty about how to use opengl ES for AM3354 with buildroot.

We are using kernel 4.4.12 based sdk.

Regards

Rohit Khatri 

  • Thanks for quick reply and it really helped.


    Still We are stuck at one point, we have compiled latest SGX sdk, but there was issue in pvrsrvctl.ko, so We compiled extra drivers supported in latest sdk.

    Again, it probes but shows error:

    /usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4).

    We are porting first time this sgx library and need help regarding this. We are using sdk with kernel 4.4.12.

    BR

    Rohit Khatri

  • Hi Rohit,

    /usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4).


    This means that the gpu driver pvrsrvkm.ko is already in use by linux kernel. Try removing it with rmmod & then use your custom pvrsrvctl.ko.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks for answer.

    Yes lsmod is showing  pvrsrvkm, but we are not getting any file named pvrsrvctl.ko after compilation of SGX sdk and ddk from board sdk.

    pvrsrvkm is probing correctly but noothing in /proc/devices, so script rc.pvr can't able to create node /dev/pvrsrvkm. Also, script is returning from next line as execution failure of pvrsrvctl binary(error as previous reply).

    If I insert manually next driver omaplfb.ko, it fails and gives error unknown symbols.

    We have lcd on device and we want to use sgx of AM3354 and currently lcd is working on tilcdc driver.

    So, is there any extra option or driver that we have to enable from kernel or we are missing any step?

    Regards

    Rohit Khatri

  • Hi Rohit,

    If you're building the SGX ddk that is part of the official TI SDK (board-support/extra-drivers/ti-sgx-ddk-km-1.14.3699939), you should get only the prvsrvkm.ko, which is the kernel driver. The prvsrvctl is a prebuild binary located in the filesystem (/usr/lib). It is started by the systemd & loads the coresponding sgx.
    Try the followign:
    1. rebuild your kernel image
    2. rebuild the SGX ddk against your freshly built zImage & copy the generated prvsrvkm.ko in the filesystem (/lib/modules/4.4.19-gdb0b54cdad/extra)
    3. boot your obard & insmod the newly generated sgx driver.

    Best Regard,
    Yordan
  • Hi Yordan,

    Thanks for your detailed reply.

    We have followed steps as suggested in your reply post, but still we are facing same issue.

    Regards

    Rohit Khatri

  • Hi Yordan,

    We are still stuck at same point, we are waiting for your reply.

    Best Regards
    Rohit Khatri