Beagle - Ubuntu - SGX

Folks,

Need some help with a behavior I’ve been noticing with SGX.

I’d followed the wiki - http://elinux.org/BeagleBoardUbuntu and setup Ubuntu on Beagleboard. After booting, when I do dmesg, given below is what I notice.

I am guessing that this could be a problem. Am I correct? If yes, how do I rectify it - the EnableSGXClocks error?

In general, where could I get some - a bird’s eye view - information about PVR and SGX? I could take a look at the code - but just wanted to see if there are any ready reckoners…


[ 53.108428] PVR: PVRCore_Init
[ 53.108489] PVR: PVRCore_Init: major device 249
[ 53.108581] PVR: Setting Debug Level = 0x4
[ 53.109252] PVR: PVRSRVDriverProbe(pDevice=bf08c570)
[ 53.109405] PVR: EnableSystemClocks: Enabling System Clocks
[ 53.109527] PVR: Setting GPTIMER11 parent to System Clock (13Mhz)
[ 53.109588] PVR: GPTIMER11 clock is 13000000Hz
[ 53.109619] PVR: Setting GPTIMER11 mode to posted (currently is non-posted)
[ 53.109649] PVR: OSUnMapPhysToLin: unmapping 4 bytes from 0xd8088040
[ 53.109680] PVR: OSUnMapPhysToLin: unmapping 4 bytes from 0xd8088024
[ 53.109710] PVR_K:(Error): EnableSGXClocks: Enabling SGX Clocks [590, /mnt/debian/omap3-sgx-modules-1.3.13.1397/services4/system/omap3430/sysutils_linux.c]
[ 53.109802] PVR: CPU Clock is 1000Mhz
[ 53.109832] PVR: SGX FClock is 55Mhz. Setting to 110Mhz now
[ 53.109863] PVR: SGX FClock is 55Mhz
[ 53.123718] PVRSRV_PIXEL_FORMAT_RGB565
[ 53.198883] PVR: Installing MISR with cookie bf08d5bc
[ 53.198913] PVR: Installing device LISR SGX ISR on IRQ 21 with cookie c7c4c6e0
[ 53.199005] PVR: OSUnMapPhysToLin: unmapping 16384 bytes from 0xc8d80000
[ 53.199035] PVR_K:(Warning): SysFinalise: Version string: SGX revision = 1.0.3 [387, /mnt/debian/omap3-sgx-modules-1.3.13.1397/services4/system/omap3430/sysconfig.c]
[ 53.199066] PVR: DisableSGXClocks: Disabling SGX Clocks

Check if the modules are loaded by doing lsmod. Check for pvrsrvkm & omaplfb

-Varun

lsmod does list omaplfb and pvrsrvkm. But that doesn’t explain this error right?

[ 53.109710] PVR_K:(Error): EnableSGXClocks: Enabling SGX Clocks [590, /mnt/debian/omap3-sgx-modules-1.3.13.1397/services4/system/omap3430/sysutils_linux.c]

Hi Radha,

I'm not really sure if that's an actual error or not, do the ti demo's
run? (Too much is closed source..)

Otherwise give the oer40.5 modules a shot, they are based on a later
version 1.3.13.1607

You can either run this script which i updated this afternoon:

http://www.rcn-ee.com/deb/kernel/ubuntu-update-kernel.sh

or copy these modules..

http://www.rcn-ee.com/deb/kernel/beagle/jaunty/v2.6.29-58cf2f1-oer40.5/omaplfb.ko
http://www.rcn-ee.com/deb/kernel/beagle/jaunty/v2.6.29-58cf2f1-oer40.5/pvrsrvkm.ko

Regards,

Thanks for the reply Robert,

Upgraded to oer40.5. This is what comes up in dmesg output…

[ 3467.556335] PVR: PVRCore_Init
[ 3467.556396] PVR: PVRCore_Init: major device 249
[ 3467.556488] PVR: Setting Debug Level = 0x4
[ 3467.557250] PVR: PVRSRVDriverProbe(pDevice=bf091eb0)
[ 3467.557434] PVR: EnableSystemClocks: Enabling System Clocks
[ 3467.557647] PVR: Setting GPTIMER11 parent to System Clock
[ 3467.557678] PVR: GPTIMER11 clock is 13MHz
[ 3467.557708] PVR: Setting GPTIMER11 mode to posted (currently is non-posted)
[ 3467.557739] PVR: OSUnMapPhysToLin: unmapping 4 bytes from 0xd8088040
[ 3467.557769] PVR: OSUnMapPhysToLin: unmapping 4 bytes from 0xd8088024
[ 3467.557800] PVR: EnableSGXClocks: Enabling SGX Clocks
[ 3467.557830] PVR: CPU Clock is 1000Mhz
[ 3467.557891] PVR: SGX Functional Clock rate is 110Mhz
[ 3467.558502] PVR: DisableSGXClocks: Disabling SGX Clocks
[ 3467.569091] PVRSRV_PIXEL_FORMAT_RGB565
[ 3467.651000] PVR_K:(Error): BridgedDispatchKM: Driver initialisation not completed yet. [4931, /mnt/debian/omap3-sgx-modules-1.3.13.1607/services4/srvkm/bridged/bridged_pvr_bridge.c]

Any suggestions?

Hi Radha,

This is what i get.. http://pastebin.com/f2396817a

I've seen this before, it was a race issue, try bumping
/etc/rcS.d/S60pvr.sh later such as /etc/rcS.d/S99pvr.sh

Regards,

Radha Krishna,

[ 3467.651000] PVR_K:(Error): BridgedDispatchKM: Driver initialisation not completed yet. [4931, /mnt/debian/omap3-sgx-modules-1.3.13.1607/services4/srvkm/bridged/bridged_pvr_bridge.c]

The above error indicates that there is a problem with the module initialization. It is probably due to kernel modules built against different kernel than the kernel you are actually using. What version of the Kernel Modules are you using? Is it .08 release? Did you try rebuilding the kernel modules against the kernel you are using?

Regards,
Varun

Tried renaming to S99pvr.sh. Didn’t help. The same behavior.

uname -r gives me 2.6.29-oer40.5. Is this OK? How do I go about debugging this issue?

Hi Radha,

That's the greatest/latest... What version of the SDK are you using?
the older 06 or the newer 08?

The SDK I am using is the one listed in the wiki - that is 06. Where do I get 08? When I searched in the TI website, it takes me to a questionnaire that mentions that an approval process would be initiated before the download is allowed.

Don’t remember going through this process earlier on when I downloaded 06.

Any suggestions?

Hi Radha,

That's the one.. I couldn't find my link to 08 anymore, so i wasn't
able to update the elinux wiki with the correct http address for new
users. Please add it..

Kinda hoping '09 would have been released pretty soon. .:wink:

Regards,

I still haven’t been able to get hold of the 08 version of the SDK. I had to register my details to go through the approval process. Shall update the wiki with details once I successfully download the SDK…

Is this a common thing - the approval stuff?

Is the software ok to be shared? If it is, can you share the 08 package with me?

I'm hoping eventually it'll change, but it's common for this type of package..

Sorry, according to the license, that's not possible..

ps. once you get approved, it looks like 08a is now out, wonder what changed..

What is the kernel I should use so that 06 works fine?

TI just replied that they can’t approve my request because I am a hobbyist and not part of a company.

That leaves me with the current release version - 06. Any idea which version of the kernel should I be using oer32?