Hi See comments below... Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/>
________________________________ From: YangZhijun [mailto:[EMAIL PROTECTED] Sent: 23 June 2008 09:59 To: Phil Quiney; [email protected] Subject: RE: problem to build the new Linux kernel using the updated DVSDK v1.3 for DM355 HI, I reinstalled my Ubuntu linux OS, and the Apr 15 updates of DVEVM software from TI website. But I still cannot compile the kernel using kernelkit as I did successfully with the old version before. Here is the command (line wrap on) causing the problem, [EMAIL PROTECTED]:/media/hda5/home/zyang1/workdir/lsp/ti-davinci$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage CHK include/linux/version.h HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc SPLIT include/linux/autoconf.h -> include/config/* CC scripts/mod/empty.o /bin/sh: arm_v5t_le-gcc: command not found [Phil Q] here is the error, the shell cannot find the cross compiler. You have 2 fixes 1/ Add the path to the compiler to the PATH variable 2/ set CROSS_COMPILE to the full path to the compiler + arm_v5t_le- The command 'which arm_v5t_le-gcc' must work if you use option #1 [EMAIL PROTECTED] linux]$ which arm_v5t_le-gcc /opt/dm355/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc make[2]: *** [scripts/mod/empty.o] Error 127 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 By the way, in the same directory I can run the following two commands without problem, make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_evm_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig [Phil Q] no great suprise - neither of these use the cross compiler In the new guide I notice that it seems there is a subdir linux-2.6.10_mvl401 in /home/<useracct>/workdir/lsp/ti-davinci in which one should do compilation of the kernel, but I cannot find this subdir. [Phil Q] You need to take a copy of the kernel source you unpacked from mvl_4_0_1_demo_lsp_setuplinux_01_20_00_014.bin into your working area. After running the .bin file you should have a DaVinciLSP-01_20_00_014.tar.gz (in /opt/dm355/mv_pro_4.0.1) file that would install the kernel source to montavista/pro/devkit/lsp/ti-davinci. You can use this file to unpack into your working directory and move the ti-davinci directory wherever you want afterwards. <snip> I did these according to the new guide, so it should be all right. The following is my Rules.make file, [Phil Q] You wasted a lot of time changing lines you didn't need to change in this file. Any line with DVSDK_INSTALL_DIR or DVEVM_INSTALL_DIR will pick up the chage you make to its definition for itself. The kernel pointed to must be built before the DVSDK build will work. # # This make variable must be set before the demos or examples # can be built. It must be set to either dm355 or dm6446 # PLATFORM=dm355 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_00_40. DVSDK_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40 # For backwards compatibility #DVEVM_INSTALL_DIR=$(DVSDK_INSTALL_DIR) DVEVM_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40 # Where the Codec Engine package is installed. #CE_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/codec_engine_2_00_01 CE_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/codec_engine_2_00_01 # Where the XDAIS package is installed. #XDAIS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdais_6_00_01 XDAIS_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/xdais_6_00_01 # Where the DSP Link package is installed. #LINK_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dsplink_140-05p1 LINK_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/dsplink_140-05p1 # Where the CMEM (contiguous memory allocator) package is installed. #CMEM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cmem_2_00_01 CMEM_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/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_34 else #CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm355_codecs_1_12_000 CODEC_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/dm355_codecs_1_12_000 endif # Where the RTSC tools package is installed. XDC_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/xdc_3_00_02 # Where Framework Components product is installed #FC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/framework_components_2_00_01 FC_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/framework_components_2_00_01 # Where DSP/BIOS is installed #BIOS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/__BIOS_VERS__ BIOS_INSTALL_DIR=/home/zyang1/dvsdk_1_30_00_40/__BIOS_VERS__ # The directory that points to your kernel source directory. LINUXKERNEL_INSTALL_DIR=/home/zyang1/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=/db/toolsrc/library/vendors2005/mvl/arm/mvl4.0.1-root-new//montavista/pro/devkit/arm/v5t_le MVTOOL_PREFIX=$(MVTOOL_DIR)/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. EXEC_DIR=/home/zyang1/workdir/filesys/opt/dvsdk/dm355 <snip> ________________________________ Subject: RE: problem to build the new Linux kernel using the updated DVSDK v1.3 for DM355 Date: Mon, 16 Jun 2008 09:01:51 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [email protected] Hi, I really need to see the exact error here.... Did you also update the kernel source? I don't understand how updating the DVSDK affects the kernel build - the two are independant. You should have the following files (these are the Apr 15 updates) dvsdk_setuplinux_1_30_00_40.bin mvl_4_0_1_demo_lsp_setuplinux_01_20_00_014.bin xdc_setuplinux_3_00_02_14.bin Do get the assiciated release notes and the sprue73a.pdf document and take note of the changes, especially kernel arguments for the new kernel. The dvsdk_setuplinux_1_30_00_40.bin and xdc_setuplinux_3_00_02_14.bin files you install to your working directory - the 'xdc' goes 'inside' the dvsdk directory so you must install dvsdk first. The Rules.mak file in the dvsdk directory needs editing to point to toolchain & kernel source. You can then extract mvl_4_0_1_demo_lsp_setuplinux_01_20_00_014.bin, which contains the file DaVinciLSP-01_20_00_014.tar.gz which is the kernel source. You need to extract, copy & build this code & then edit the Rules.mak file in the DVSDK to point to it. You should then be able to build the dvsdk stuff. /bin/sh is the shell - it is possible that your toolchain is corrupt but without the exact output of the command it is difficult to say Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: YangZhijun [mailto:[EMAIL PROTECTED] Sent: 15 June 2008 22:59 To: Phil Quiney; [email protected] Subject: problem to build the new Linux kernel using the updated DVSDK v1.3 for DM355 Hi Phil, With your help I've gone through the getting started guide of the DM355 DVEVM software coming with the board. But now I have an issue again, after I uninstall the old version of DVSDK and install the new version from TI's new software update website. The problem is that I cannot compile the kernel using the following command in kernelkit, as I successfully did for the old version, make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage After a long compilation process I finally got something like, /bin/sh: arm_v5t_le-gcc: no such file ...... In my .bashrc I have already had: EXPORT PATH="/media/hda1/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin: /media/hda1/opt/mv_pro_4.0.1/montavista/pro/bin: /media/hda1/opt/mv_pro_4.0.1/montavista/common/bin:$PATH" which is okay to compile the old kernel in kernelkit. I found that in /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin I have arm_v5t_le-gcc, but I don't know why kernelkit try to find it in /bin/sh? what is that? Thanks for your help. Best regards, Michael <http://get.live.cn/product/writer.html> ________________________________ 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息! <http://spaces.live.com/?page=HP>
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
