Hi
I've been asked to get a DM6446 development board running to implement custom video processing algorithms. For the past few weeks I've been battling though Linux setups (which I know virtually nothing about), and now I'm working my way through the GSG (v1.30). I'm working on SUSE 10.3, as that was that another developer who worked on the system suggested (I really hope that is not going to be a problem...) After a lot of problems (which included the little typo in the GSG and code that had hidden spaces, etc), I have been able to get everything done up until section 4.6. There is no way I would have gotten this far without this forum, so thanks a lot for that!
But I'm stuck once again: I've finally managed to get to section 4.6 (Rebuilding the DVSDK software for the Target) but when I run the make command, I get the following error:
Making all in subdirectory /home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module...
make[1]: Entering directory `/home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module'
make -C /home/andre/workdir/lsp/ti-davinci M=`pwd` ARCH=arm CROSS_COMPILE=/opt/mv_pro_4.0/montavista.pro/devkit/arm/v5t_le/bin/arm_v5t_le- \
EXTRA_CFLAGS="-DUSE_UDEV=1 -DMAX_POOLS=128" modules
make[2]: Entering directory `/home/andre/workdir/lsp/ti-davinci'
CC [M] /home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o
/bin/sh: /opt/mv_pro_4.0/montavista.pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc: No such file or directory
make[3]: *** [/home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o] Error 1
make[2]: *** [_module_/home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module] Error 2
make[2]: Leaving directory `/home/andre/workdir/lsp/ti-davinci'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module'
make: *** [/home/andre/dvsdk_1_30_01_41/cmem_2_00_01/packages/ti/sdo/linuxutils/cmem/src/module] Error 2
In another thread on this forum (https://community.ti.com/forums/p/6538/25027.aspx#25027) Ron seems to have picked up the same error. But I've had a look at all the paths in the Rules.make and I cannot find anything wrong. Being a complete novice, I used the default and/or recommended install directories. Here is my Rules.make:
PLATFORM=dm6446
ifndef PLATFORM
$(error PLATFORM must be set in Rules.make to dm355 or dm6446 before building the demos)
endif
# The installation directory of the DVSDK dvsdk_1_30_01_41.
DVSDK_INSTALL_DIR=$(HOME)/dvsdk_1_30_01_41
# For backwards compatibility
DVEVM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)
# Where the Codec Engine package is installed.
CE_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/codec_engine_2_00_01
# Where the XDAIS package is installed.
XDAIS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdais_6_00_01
# Where the DSP Link package is installed.
LINK_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dsplink_140-05p1
# Where the CMEM (contiguous memory allocator) package is installed.
CMEM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cmem_2_00_01
# Where the codec servers are installed (dm6446) or codecs (dm355)
ifneq ($(PLATFORM),dm355)
CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm6446_dvsdk_combos_1_35
else
CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm355_codecs_1_12_003
endif
# Where the RTSC tools package is installed.
XDC_INSTALL_DIR=$(HOME)/xdc_3_00_02
# Where Framework Components product is installed
FC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/framework_components_2_00_01
# Where DSP/BIOS is installed
BIOS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/bios_5_31_08
# The directory that points to your kernel source directory.
LINUXKERNEL_INSTALL_DIR=$(HOME)/workdir/lsp/ti-davinci
# The prefix to be added before the GNU compiler tools (optionally including
# path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".
# MVTOOL_DIR=/opt/mv_pro_4.0/montavista.pro/devkit/arm/v5t_le -> Ou waardes
# MVTOOL_PREFIX=$(MVTOOL_DIR)/bin/arm_v5t_le- -> Ou Waardes
MVTOOL_DIR=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le
MVTOOL_PREFIX=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le
# 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.
#EDITED ANDRE: EXEC_DIR=$(HOME)/workdir/filesys/opt/dvsdk/$(PLATFORM)
EXEC_DIR=$(HOME)/workdir/filesys/opt/dvsdk/dm6446
The other problem/question I've got is that the EXEC_DIR path points to a directory in : /home/andre/workdir/filesys/opt/dvsdk/dm6446, but my system only has a directory structure down to /home/andre/workdir/filesys/opt. Is this a problem, or will it be fixed if I run the make install command once the make command is succesful?
Can someone please help me?