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.

build error. OMAP35x DVEVM Software Setup

Other Parts Discussed in Thread: MIDAS

Hi, I'm chul.

I try build OMAP35x DVEVM software Setup for MIDAS v2.0.

I'm following OMAP35x DVEVM Getting Started Guide.

1 Software Overview
2 Preparing to install
3 Installing the software
3.1 Installing the Target Linux Software
3.2 Installing the DVSDK Software (DVSDK version 3.01.00.09 onwards)
3.3 Installing the DVSDK Software (Till DVSDK version 3.01.00.02)
3.4 Installing the A/V demo files
3.5 Installing the toolchain
3.5.1 Toolchain version to be used for DVSDK v3.01
3.5.2 Toolchain version to be used for DVSDK v3.00
3.6 Exporting a Shared File System for Target Access
3.7 Testing the shared file system
3.8 Notes on using production codecs
4 Setting up the build/development environment
4.1 Writing a simple program and running it on the EVM
5 Rebuilding the Software
5.1 Rebuilding U-boot
5.2 Rebuilding the Linux Kernel
5.3 Rebuilding the DVSDK software for the target <-- I get a error here
5.4 Rebuilding the DSP side server executables
5.5 Rebuilding the Initial NAND X-loader
5.6 Rebuilding the Target-side UART Loader
5.7 Rebuilding the NFS Image
5.8 Rebuilding the Full Ramdisk Image
5.9 Rebuilding the Minimal Ramdisk Image
5.10 Rebuilding the JFFS2 File-System Image
6 What's next?

5.3 Rebuilding the DVSDK software for the target.

step 7.

While in the same directory that contains Rules.make, use the following commands to build the DVSDK demo applications and put the resulting binaries on the target file system specified by EXEC_DIR.
host $ make clean
host $ make all
host $ make install <---- I try it & get error message

Th error message is blow.

# asm64P package/cfg/bin/cs_x64Pcfg.s62 ...
/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/bin/cl6x -c -qq -mv64p -eo.o64P -ea.s64P -Dxdc_cfg__header__='ti/sdo/server/cs/package/cfg/bin/cs_x64P.h' -Dxdc_target_name__=C64P -Dxdc_target_types__=ti/targets/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_6_0_16 -I. -I/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01 -I/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/xdais_6_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/framework_components_2_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/framework_components_2_24/fctools/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/bios_5_33_06/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/biosutils_1_01_00/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/linuxutils_2_24_02/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/dsplink_1_61_03/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/dsplink_1_61_03 -I/home/won/dvsdk/dvsdk_3_00_02_44/codec_engine_2_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/codec_engine_2_24/cetools/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/xdctools_3_15_01_59/packages -I../../../.. -I/home/won/dvsdk/dvsdk_3_00_02_44/bios_5_33_06/packages/ti/bios/include -I/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/include -fr=./package/cfg/bin -fa package/cfg/bin/cs_x64Pcfg.s62
/home/won/dvsdk/dvsdk_3_00_02_44/xdctools_3_15_01_59/bin/mkdep -a package/cfg/bin/cs_x64Pcfg.o64P.dep -p package/cfg/bin -s o64P package/cfg/bin/cs_x64Pcfg.s62 -C -qq -mv64p -eo.o64P -ea.s64P -Dxdc_cfg__header__='ti/sdo/server/cs/package/cfg/bin/cs_x64P.h' -Dxdc_target_name__=C64P -Dxdc_target_types__=ti/targets/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_6_0_16 -I. -I/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01 -I/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/xdais_6_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/framework_components_2_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/framework_components_2_24/fctools/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/bios_5_33_06/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/biosutils_1_01_00/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/linuxutils_2_24_02/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/dsplink_1_61_03/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/dsplink_1_61_03 -I/home/won/dvsdk/dvsdk_3_00_02_44/codec_engine_2_24/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/codec_engine_2_24/cetools/packages -I/home/won/dvsdk/dvsdk_3_00_02_44/xdctools_3_15_01_59/packages -I../../../.. -I/home/won/dvsdk/dvsdk_3_00_02_44/bios_5_33_06/packages/ti/bios/include -I/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/include
rm -f bin/cs.x64P
#
# lnk64P bin/cs.x64P ...
rm -f package/cfg//bin/cs.x64P.map
/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/bin/lnk6x -w -q -u _c_int00 -l link.cmd -q -o bin/cs.x64P package/cfg/bin/cs/main.o64P package/cfg/bin/cs_x64P.o64P package/cfg/bin/cs_x64Pcfg_c.o64P package/cfg/bin/cs_x64Pcfg.o64P package/cfg/bin/cs_x64P.xdl -c -m package/cfg//bin/cs.x64P.map -l /home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/lib/rts64plus.lib
>> package/cfg/bin/cs_x64P.xdl, line 313: warning:
multiple definitions of SECTION named
'.const:_G711_TII_CODER_version'
.executables files complete: Wed Apr 18 20:51:08 KST 2012.
======== all [packages/ti/sdo/codecs/aachedec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/aachedec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/g711dec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/g711dec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/g711enc] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/g711enc/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/h264dec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/h264dec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/h264enc] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/h264enc/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/jpegdec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/jpegdec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/jpegenc] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/jpegenc/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg2dec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg2dec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg4dec] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg4dec/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg4enc] ========
#
# all files complete.
======== all [packages/ti/sdo/codecs/mpeg4enc/ce] ========
#
# all files complete.
======== all [packages/ti/sdo/server/cs] ========
#
# all files complete.
all files complete: Wed Apr 18 20:51:09 KST 2012.
make[1]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01'
won@ubuntu:~/dvsdk/dvsdk_3_00_02_44$ make -j8 install

Creating /home/won/workdir/filesys/opt/dvsdk/omap3530
Installing DVSDK demos..
make -C /home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530 install
make[1]: Entering directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530'


Executing make install in subdirectory decode/...
Executing make install in subdirectory interface/...
make[2]: Entering directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/interface'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/interface'
make[2]: Entering directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/decode'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/decode'

make[2]: Entering directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/data'
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.

Installing fonts in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/fonts...

Installing pictures in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/pics...

Installing sounds in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/sounds...

Installing sounds in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/videos...
make[2]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/data'
make[1]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530'
Installing clips..
make -C clips install
make[1]: Entering directory `/home/won/dvsdk/dvsdk_3_00_02_44/clips'

Installing sounds in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/sounds...

Installing sounds in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/videos...

Installing sounds in /home/won/workdir/filesys/opt/dvsdk/omap3530/data/images...
make[1]: Leaving directory `/home/won/dvsdk/dvsdk_3_00_02_44/clips'

Copying kernel modules to target file system: /home/won/workdir/filesys/opt/dvsdk/omap3530/
Copying cmemk.ko
Copying dsplinkk.ko
Copying lpm_omap3530.ko
Copying sdmak.ko
Copying codec servers from /home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01
install: omitting directory `/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01'
install: cannot stat `/packages/ti/sdo/server/cs/bin/cs.x64P': No such file or directory
make: *** [install] Error 1
won@ubuntu:~/dvsdk/dvsdk_3_00_02_44$

What is the problem?

I try to find a solution to this problem.

for reference, my dvsdk_3_00_02_44's Rules.make is blow.

# Define target platform.
PLATFORM=omap3530

# The installation directory of the DVSDK dvsdk_3_00_02_44.
# DVSDK_INSTALL_DIR=${HOME}/dvsdk_3_00_02_44 # hyungchul
DVSDK_INSTALL_DIR=/home/won/dvsdk/dvsdk_3_00_02_44

# For backwards compatibility
DVEVM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)

# Where the Digital Video Test Bench is installed
DVTB_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvtb_3_00_016

# Where the Codec Engine package is installed.
CE_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/codec_engine_2_24

# Where the XDAIS package is installed.
XDAIS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdais_6_24

# Where the DSP Link package is installed.
LINK_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dsplink_1_61_03

# Where the CMEM (contiguous memory allocator) package is installed.
CMEM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/linuxutils_2_24_02

# Where the EDMA3 Low Level Driver is installed.
EDMA3_LLD_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/edma3_lld_01_10_00_01

# Where the codec servers are installed.
# CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cs1omap3530_1_00_01 # hyungchul
CODEC_INSTALL_DIR=/home/won/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01

# Where the TI C6x codegen tool is installed.
# CODEGEN_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cg6x_6.0.16 # hyungchul
CODEGEN_INSTALL_DIR=/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16

# Where the RTSC tools package is installed.
# XDC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdctools_3_15_01_59 # hyungchul
XDC_INSTALL_DIR=/home/won/dvsdk/dvsdk_3_00_02_44/xdctools_3_15_01_59

# Where Framework Components product is installed.
FC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/framework_components_2_24

# Where DSP/BIOS is installed.
BIOS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/bios_5_33_06

# Where biosutils package is installed.
BIOSUTILS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/biosutils_1_01_00

# Where the Davinci Multimedia Application Interface is installed
DMAI_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dmai_2_00_01_04

# Where the DVSDK demos are installed
DEMO_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvsdk_demos_3_00_01_13

# Additional RTSC package repositories to be picked up by components.
USER_XDC_PATH=$(CE_INSTALL_DIR)/examples
#above works around DMAI path bug

# Platform Support Package installation directory.
PSP_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/

# The directory that points to your kernel source directory.
#LINUXKERNEL_INSTALL_DIR=/db/toolsrc/library/vendors2005/kernel_org/arm/KERNEL_02.01.03.11//OMAP35x-PSP-SDK-02.01.03.11/OMAP35x/linux-02.01.03.11 # hyungchul
LINUXKERNEL_INSTALL_DIR=/home/won/workdir/opt/linux-02.01.03.11

# The directory that points to your OMAP35xx SDK installation directory.
#OMAP3503_SDK_INSTALL_DIR=/db/toolsrc/library/vendors2005/kernel_org/arm/KERNEL_02.01.03.11//OMAP35x-PSP-SDK-02.01.03.11 # hyungchul
OMAP3503_SDK_INSTALL_DIR=/home/won/OMAP35x-PSP-SDK-02.01.03.11/

# UBOOT_INSTALL_DIR=$(OMAP3503_SDK_INSTALL_DIR)/src/u-boot/uboot-02.01.03.11 # hyungchul
UBOOT_INSTALL_DIR=/home/won/workdir/opt/uboot-02.01.03.11

# Where the local power manager is installed.
LPM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/local_power_manager_1_24

# Where temporary Linux headers and libs are installed.
LINUXLIBS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/linuxlibs

# The prefix to be added before the GNU compiler tools (optionally including
# path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".
# CSTOOL_DIR=/db/toolsrc/library/vendors2005/cs/arm/arm-2008q1-126 # hyungchul
CSTOOL_DIR=/home/won/toolchain/arm-2008q1
CSTOOL_PREFIX=$(CSTOOL_DIR)/bin/arm-none-linux-gnueabi-

ifeq ($(PLATFORM), omap3530)
MVTOOL_PREFIX=$(CSTOOL_PREFIX)
endif

# Where to copy the resulting executables and data to (when executing 'make
# install') in a proper file structure. This EXEC_DIR should either be visible
# from the target, or you will have to copy this (whole) directory onto the
# target filesystem.
# EXEC_DIR=${HOME}/workdir/filesys/opt/dvsdk/$(PLATFORM) # hyungchul
EXEC_DIR=/home/won/workdir/filesys/opt/dvsdk/omap3530

I use dvsdk_3_00_02_44. because MIDAS v2.0 use it.

I add it to ~/.bashrc 

export PATH=/home/won/workdir/opt/uboot-02.01.03.11/tools:$PATH
export C6X_C_DIR=/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/include:/home/won/dvsdk/dvsdk_3_00_02_44/cg6x_6_0_16/lib
PATH="/home/won/toolchain/arm-2008q1/bin:$PATH"