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.

setup and configure dm6446 development

Other Parts Discussed in Thread: TVP5146

Dear All:

we want to setup and configure the dm6446 development ,the setup as follow:

1.setup mvl

mkdir mv_pro_5.0.0 under /opt

./mvl_5_0_0801921_demo_sys_setuplinux.bin

Setup dir is /opt/mv_pro_5.0.0/

cd /opt/mv_pro_5.0.0/

exec ls list files as follow:

mvltools5_0_0801921_update.tar.gz   uninstall

 

tar –zxvf mvltools5_0_0801921_update.tar.gz

2.setup dvsdk

./dvsdk_setuplinux_2_00_00_22.bin

Setup dir is /opt/dvsdk_2_00_00_22

 

3.setup xdctools

./xdctools_setuplinux_3_10_05_61.bin

Setup dir is /opt/dvsdk_2_00_00_22

4.setup bios

./bios_setuplinux_5_33_03.bin

Setup dir is /opt/dvsdk_2_00_00_22

 

5.setup TI-C6x-CGT-v6.0.21.1.bin

mkdir ti_cgt_c6000_6.0.21 under /opt/

./TI-C6x-CGT-v6.0.21.1.bin

6.setup codecs

./dm6446_codecs_setuplinux_2_00_00_22.bin

The setup dir is  /opt/dvsdk_2_00_00_22.

 

Then exec ls to list the files under /opt/ dir as follow:

**********************

bin

bios_5_33_03

biosutils_1_01_00

ceutils_1_06

cg_xml_2_12_00

clips

codec_engine_2_23_01

dm355_2_00_00_22_release_notes.html

dm355_codecs_1_13_000

dm6446_2_00_00_22_release_notes.html

dm6467_2_00_00_22_release_notes.html

dmai_1_20_00_06

docs

dsplink-1_61_03-prebuilt

dvsdk_demos_2_00_00_07

dvtb_4_00_08

edma3_lld_1_05_00

examples

framework_components_2_23_01

kernel_binaries

licenses

linuxutils_2_23_01

Makefile

mapdmaq

mapdmaq-hd

PSP_02_00_00_140

quilt

Rules.make

ti_cgt_c6000_6.0.21

uninstall

xdais_6_23

xdctools_3_10_05_61

 

7.backup the Rules.make

cp Rules.make Rules.make.bak

8.modify the Rules.make

9. cd /opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/

make clean

make

error message :

Making all in subdirectory decode...

make[1]: Entering directory `/opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/decode'

 

======== Building decode ========

Configuring application using decode.cfg

 

making package.mak (because of package.bld) ...

generating interfaces for package decode_config (because package/package.xdc.inc is older than package.xdc) ...

configuring decode.x470MV from package/cfg/decode_x470MV.cfg ...

Info: Configuring engine named 'decode' from the info file for DSP server './decodeCombo.x64P',

          located in package 'ti.sdo.servers.decode':

      Target app will look for the DSP server image 'decodeCombo.x64P' in its current directory.

      Adding codec 'h264dec' (ti.sdo.codecs.h264dec.ce.H264DEC), scratch groupId=0

      Adding codec 'mpeg2dec' (ti.sdo.codecs.mpeg2dec.ce.MPEG2DEC), scratch groupId=0

      Adding codec 'mpeg4dec' (ti.sdo.codecs.mpeg4dec.ce.MPEG4DEC), scratch groupId=0

      Adding codec 'aachedec' (ti.sdo.codecs.aachedec.ce.AACHEDEC), scratch groupId=1

      Adding codec 'g711dec' (ti.sdo.codecs.g711dec.ce.G711DEC), scratch groupId=1

Info: Reading DSP memory map from the info file for DSP server './decodeCombo.x64P',

      located in package 'ti.sdo.servers.decode':

js: "/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/xdc/xdc.tci", line 299: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: /opt/dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/package.xdc found along the package path, but no schema file was found.  Ensure that the package 'ti.sdo.dmai' is completely built.

    "/opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/decode/decode.cfg", line 33

    "./package/cfg/decode_x470MV.cfg", line 479

    "./package/cfg/decode_x470MV.cfg", line 434

gmake: *** [package/cfg/decode_x470MV.c] Error 1

js: "/opt/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/xdc/tools/Cmdr.xs", line 40: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

make[1]: *** [decode_config/compiler.opt] Error 1

make[1]: Leaving directory `/opt/dvsdk_2_00_00_22/dvsdk_demos_2_00_00_07/dm6446/decode'

make: *** [decode] Error 2

Please help us check the root cause, thanks!

  • Try to do following commands in /opt/dvsdk_2_00_00_22 :

    > gmake clean

    > gmake

    If you modifyed Rules.make correctly, then gmake should work fine.

    FIRST OFF ALL: you must build "dm6446_combos" and after that you have to build dvsdk.  I don't know why, but it helps me to solve your problem.

  • forget to say,my develop host os is fedaro 9.

    i try gmake clean and gmake,there are still some errors.

    i do it as this:

    1.cd /opt/dvsdk_2_00_00_22 ;

    gmake clean;

    2.cd  dm6446_dvsdk_combos_2.05 ;

    gmake;

    3.cd /opt/dvsdk_2_00_00_22 ;

    gmake;

    then this errors display:

     gmake
    Checking that components in Rules.make are found:

    Done checking! If no warning messages above, all components are found..

    gmake -C /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/interface ../../lib/cmem.a470MV
    gmake[1]: Entering directory `/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/interface'
    /opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -I. -Wall  -c -O2 -o release/cmem.o470MV cmem.c
    /opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-ar rc ../../lib/cmem.a470MV release/cmem.o470MV
    gmake[1]: Leaving directory `/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/interface'
    gmake -C /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module
    gmake[1]: Entering directory `/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module'
    make -C /opt/ti-davinci M=`pwd` ARCH=arm CROSS_COMPILE=/opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le- \
      EXTRA_CFLAGS="-DUSE_UDEV=1 -DMAX_POOLS=128" modules
    make[2]: Entering directory `/opt/ti-davinci'
      CC [M]  /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o
    In file included from include/asm/proc-fns.h:154,
                     from include/asm/system.h:95,
                     from include/asm/atomic.h:100,
                     from include/asm/processor.h:25,
                     from include/linux/prefetch.h:14,
                     from include/linux/list.h:7,
                     from include/linux/kobject.h:21,
                     from include/linux/device.h:16,
                     from /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:20:
    include/asm/cpu-single.h:44: 警告:忽略函数返回类型的类型限定
    /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:69:2: warning: #warning *** not a warning *** Note: LINUX_VERSION_CODE < 2.6.18
    /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:162: 警告:初始化指针时目标与指针符号不一致
    /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c:178: 警告:初始化指针时目标与指针符号不一致
      Building modules, stage 2.
      MODPOST
      CC      /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.mod.o
    In file included from include/asm/proc-fns.h:154,
                     from include/asm/system.h:95,
                     from include/asm/bitops.h:22,
                     from include/linux/bitops.h:77,
                     from include/linux/thread_info.h:20,
                     from include/linux/spinlock.h:12,
                     from include/linux/capability.h:45,
                     from include/linux/sched.h:7,
                     from include/linux/module.h:10,
                     from /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.mod.c:1:
    include/asm/cpu-single.h:44: 警告:忽略函数返回类型的类型限定
      LD [M]  /opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.ko
    make[2]: Leaving directory `/opt/ti-davinci'
    gmake[1]: Leaving directory `/opt/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module'

    cmemk.ko kernel module can be found under /opt/dvsdk_2_00_00_22/kernel_binaries/dm6446
    gmake -C /opt/dvsdk_2_00_00_22/dmai_1_20_00_06 dm6446_al
    gmake[1]: Entering directory `/opt/dvsdk_2_00_00_22/dmai_1_20_00_06'
    gmake[2]: Entering directory `/opt/dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai'
    Compiling obj/Buffer.dm6446.o470MV from Buffer.c..
    Compiling obj/BufferGfx.dm6446.o470MV from BufferGfx.c..
    Compiling obj/BufTab.dm6446.o470MV from BufTab.c..
    Compiling obj/Ccv.dm6446.o470MV from Ccv.c..
    Compiling obj/ColorSpace.dm6446.o470MV from ColorSpace.c..
    Compiling obj/Framecopy.dm6446.o470MV from Framecopy.c..
    Compiling obj/Loader.dm6446.o470MV from Loader.c..
    Compiling obj/VideoStd.dm6446.o470MV from VideoStd.c..
    Compiling obj/ce/Adec1.dm6446.o470MV from ce/Adec1.c..
    Compiling obj/ce/Adec.dm6446.o470MV from ce/Adec.c..
    Compiling obj/ce/Aenc1.dm6446.o470MV from ce/Aenc1.c..
    Compiling obj/ce/Aenc.dm6446.o470MV from ce/Aenc.c..
    Compiling obj/ce/Idec1.dm6446.o470MV from ce/Idec1.c..
    Compiling obj/ce/Idec.dm6446.o470MV from ce/Idec.c..
    Compiling obj/ce/Ienc1.dm6446.o470MV from ce/Ienc1.c..
    Compiling obj/ce/Ienc.dm6446.o470MV from ce/Ienc.c..
    Compiling obj/ce/Sdec1.dm6446.o470MV from ce/Sdec1.c..
    Compiling obj/ce/Sdec.dm6446.o470MV from ce/Sdec.c..
    Compiling obj/ce/Senc1.dm6446.o470MV from ce/Senc1.c..
    Compiling obj/ce/Senc.dm6446.o470MV from ce/Senc.c..
    Compiling obj/ce/Vdec2.dm6446.o470MV from ce/Vdec2.c..
    Compiling obj/ce/Vdec.dm6446.o470MV from ce/Vdec.c..
    Compiling obj/ce/Venc1.dm6446.o470MV from ce/Venc1.c..
    Compiling obj/ce/Venc.dm6446.o470MV from ce/Venc.c..
    Compiling obj/linux/Capture.dm6446.o470MV from linux/Capture.c..
    linux/Capture.c:48:40: error: media/davinci/davinci_vpfe.h: 没有那个文件或目录
    linux/Capture.c:49:35: error: media/davinci/tvp5146.h: 没有那个文件或目录
    linux/Capture.c:72: 错误:‘V4L2_STD_525P_60’未声明 (不在函数内)
    linux/Capture.c:72: 错误:‘V4L2_STD_625P_50’未声明 (不在函数内)
    linux/Capture.c:72: 错误:‘V4L2_STD_720P_60’未声明 (不在函数内)
    linux/Capture.c:73: 错误:‘V4L2_STD_720P_50’未声明 (不在函数内)
    linux/Capture.c:73: 错误:‘V4L2_STD_1080I_60’未声明 (不在函数内)
    linux/Capture.c:73: 错误:‘V4L2_STD_1080I_50’未声明 (不在函数内)
    linux/Capture.c:73: 错误:‘V4L2_STD_1080P_30’未声明 (不在函数内)
    linux/Capture.c:74: 错误:‘V4L2_STD_1080P_25’未声明 (不在函数内)
    linux/Capture.c:74: 错误:‘V4L2_STD_1080P_24’未声明 (不在函数内)
    linux/Capture.c: 在函数‘Capture_detectVideoStd’中:
    linux/Capture.c:512: 错误:‘TVP5146_AMUX_SVIDEO’未声明 (在此函数内第一次使用)
    linux/Capture.c:512: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
    linux/Capture.c:512: 错误:所在的函数内也只报告一次。)
    linux/Capture.c:515: 错误:‘TVP5146_AMUX_COMPOSITE’未声明 (在此函数内第一次使用)
    linux/Capture.c:545: 错误:‘VPFE_STD_AUTO’未声明 (在此函数内第一次使用)
    gmake[2]: *** [obj/linux/Capture.dm6446.o470MV] 错误 1
    gmake[2]: Leaving directory `/opt/dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai'
    gmake[1]: *** [dm6446_al] 错误 2
    gmake[1]: Leaving directory `/opt/dvsdk_2_00_00_22/dmai_1_20_00_06'
    gmake: *** [dmai] 错误 2
    **********************************************************

     

  • Looks like your environment is set wrong.