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 on AM335x (Beaglebone) fails to start.

Hi,

Please help me, I'm at my whits end here.  I had successfully installed the hard-fp libs and basic setup of the SGX libraries and had the demos working perfectly on my Beaglebone with a Chipsee 7" LCD extension board.

Now it's stopped working. I'm not sure what I've done. I've tried to retrace my steps but I'm not getting anywhere.

Using the debug libraries I'm getting this:

PVR:(Error): PVRSRVBridgeCall: Failed to access device. Function ID:3223086915 (Bad address). [250, /pvr_bridge_u.c]
PVR:(Error): PVRSRVInitSrvConnect: BridgeCall failed [2100, /bridged_pvr_glue.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (34) [56, /srvinit.c]
PVR:(Error): main: SrvInit failed (34) [47, /main.c]

..when running /etc/init.d/rc.pvr start. SO it's not even getting past the first stage!

I have recompiled my kernel several times as well as the modules. They do insmod properly, but then pvrsrvkm.ko gives these problems.

Any ideas?

Kind Regards,

Christian Ruocco

  • Hello,

    Which release of linux are you running? Which toolchain are you using to build your kernel and the grpahics libraries? If you lsmod, what modules are loaded? Did you follow the instructions here for building and installing the SGX modules: http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide?

    Regards,

    Dave

  • Hi,

    Have you followed all the steps given in user guide ? Are you building Xorg or non-Xorg driver? Can you please share your graphics SDK build command & install lines used?

    Please provide your setup/environment details as requested by Dave. In addition ,provide the ouput from below script run on your EVM-

    https://gforge.ti.com/gf/download/docmanfileversion/203/3715/gfx_check.sh

    Specifically, have you made sure to run 335x-demo script ?

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Step_2_:_soc_demo_script_verification

    If you are using latest graphics SDK releases (04.08.00.01 & onwards) , you should have the following line in rc.pvr -

     # Run the PVR initialisation server
            if ! /usr/local/bin/pvrsrvctl --start --no-module; then return; fi

    If using older releases ie for releases before 04.08.00.01 , you will see below line in rc.pvr-

     # Run the PVR initialisation server
            if ! /usr/local/bin/pvrsrvinit; then return; fi

    Please note the difference & make sure you are using right version of rc.pvr that comes with the release.

    From the error log you provided, it seems that PVR initialisation server was not run (the binary name is pvrsrvinit in older releases & pvrsrvctl in latest releases as shown above).

    Thanks,

    Prathap.

  • Hi guys,

    Thanks for the help. I managed to fix it myself. Must have been a version mismatch. I deleted everything and started from scratch. Works fine!!

    Thanks so much for your time.

    Kind Regards,

    Chris.

  • Hi Chris 

    Can you brief me some of the modification you did ?

    Here am using imagination user mode Graphics ddk  1.9.RC2@2139099 with AM335x TI Graphics ddk Graphics_SDK_setuplinux_4_08_00_02 on my BeagleBone. But am getting below error when am trying to run 

    /usr/local/bin/pvrsrvctl --start --no-module  which is a part of  rc.pvr script.

    [ 232.069030] PVR_K: (FAIL) SGXInit: Mismatch in client-side and KM driver build options; extra options present in client-side driver: (0x8000). Please check sgx_option.h
    /usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=26)

    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                        

  • Hi Satyaprakash,

    No modifications. Just deleted everything, re-extracted the SDK, rebuild against the kernel and made sure both the kernel and the SDK install files for the beaglebone where up to date.

    Hope that helps!

    Chris.