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.

Graphics SDK - v3dfx problems on DM8168

Has anyone has succes running the v3dfx demos on a DM8168?

I have encountered several errors when I attempt to run the required scripts and the demo app.

root@arago:/opt/v3dfx# ./routeFb1toHDMI.sh
VPSS_GRPX : please open fb1 node first.
VPSS_GRPX : please open fb1 node first.

How do I open the fb1 node?

root@arago:/opt/v3dfx# ./loadmodules389xx.sh
insmod: can't insert '/opt/gfxlibraries/gfx_rel_es6.x/bufferclass_ti.ko': File exists
CMEMK module: built on Oct 24 2011 at 11:57:05
  Reference Linux version 2.6.37
  File /home/user/z3/z3-netra-RPS-20111017/ezsdk/component-sources/linuxutils_3_21_00_04/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x88000000) overlaps kernel (0x80000000 -> 0x8ce00000)
CMEMK Error: Failed to request_mem_region(0x88000000, 89128960)
insmod: can't insert '389xx/cmemk.ko': Bad address

It seems the memory region requested in the loadmodules389xx.sh script is not suitable on my system. Can I just change the start address of the range?

Running v3fdx with no parameters gives me ...

root@arago:/opt/v3dfx/binaries# ./v3dfx
input video file : davinciEffect_720x480_uyvy422.yuv
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
CMEM Error: CMEM file descriptor -1 (failed 'open()'), ensure CMEMK kernel module cmemk.ko has been installed with 'insmod'CMEM_alloc for Video Stream buffer returned NULL

The cmemk.ko was not in the installation folder 389xx as indicated in the manual. I found it elsewhere in the file system and copied it to this folder.

ANY suggestions would be greatly appreciated!

Here is diagnostic information from my system generated by running gfx_check.sh ...

root@arago:~# ./gfx_check.sh
WSEGL settings
[default]
WindowSystem=libpvrQWSWSEGL.so
#WindowSystem=libpvrPVR2D_FRONTWSEGL.so
#WindowSystem=libpvrPVR2D_FLIPWSEGL.so
#WindowSystem=libpvrPVR2D_DRIWSEGL.so

------
ARM CPU information
Processor       : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 986.31
Features        : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc08
CPU revision    : 2

Hardware        : ti8168evm
Revision        : 0000
Serial          : 0000000000000000
------
SGX driver information
Version 1.6.16.4117 (release) /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/omap3-sgx-modules-1.6.16.4117-r4i/Graphics_SDK_4_04_00_02/GFX_Linux_KM
System Version String: SGX revision = 1.2.5
------
Framebuffer settings
------
Rotation settings
0
------
Kernel Module information
Module                  Size  Used by    Not tainted
bufferclass_ti          4946  0
omaplfb                10794  0
pvrsrvkm              155450  2 bufferclass_ti,omaplfb
ti81xxhdmi             12992  0
ti81xxfb               20247  1
vpss                   61787  3 omaplfb,ti81xxhdmi,ti81xxfb
ipv6                  209879 10
syslink              1107079  0
------
Boot settings
console=ttyO2,115200n8 rootwait rw mem=256M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=50M ti814xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=192.168.0.13:/home/user/z3/z3-netra-RPS-20111017/filesys/fs ip=dhcp
------
Linux Kernel version
Linux arago 2.6.37 #5 Fri Oct 28 08:39:32 EDT 2011 armv7l GNU/Linux

  • Hi Steve,

    The steps in the v3dfx userguide are applicable only when you're using the Graphics SDK alone.

    Looks like you're using EZSDK, so need to change a few steps.

    I have been able run the demo using the EZSDK with the below steps.

    Standlone v3dfx demo without using Qt GUI

    =================================

    1. Modify the bootargs as below to reserve memory for CMEM

    setenv bootargs 'console=ttyO2,115200n8 root=/dev/nfs nfsroot=xxxxx, nolock rw mem=160M vram=50M ti816xfb.vram=0:24M,1:16M,2:6M notifyk.vpssm3_sva=0xBF900000 earlyprintk rootdelay=5'

    2. After getting to linux prompt, stop the matrix application

    /etc/rc5.d/S99matrix-gui-e stop

    3. Assign the reserved memory to CMEM as below

    insmod 389xx/cmemk.ko phys_start=0x8A000000 phys_end=0x8F500000 pools=1x89128960

    4. Run v3dfx

    #./v3dfx

    5. ./v3dfx -h      # prints availble command line options

    I'll provide the steps to run the demo along with Qt GUI after you succeed with running in standalone.

    Regards,

    Mahesh.

  • Hi Mahesh,

    I've got the demo working. Problem was I had mem=256M in bootargs which conflicted with the phys_start address using when loading cmemk. I modified the cmemk command line accordingly and I have been able to get the demo app to work. Thx.

    I just created another post concerned a problem I am having using v3dfx within a Qt application. Maybe you can take a look ...

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/145717.aspx

    Thx, Steve