>>顺序安装DVEVM和DVSDK各编译器montavista, CE, dvsdk,dvevm, dsp/bios,TI-CGT等)
{
DVEVM:
1 mvl_setuplinux_1_10_01_32
2 mvl_target_setuplinux_1_10_01_32
3 mvl_lsp_setuplinux_1_10_01_32
4 dvevm_setuplinux_1_10_01_32
DVSDK:
5 dvsdk_setuplinux_1_10_00_30
6 dsp_bios_setuplinux_5_30_00_11
7 TI-C6x-CGT-v6.0.14.1
(DVEVM DVSDK两者必须版本相同)
}
>>配置nfs (开发板文件系统)
1.建立开发板启动目录
cd /(进入VMWare系统根目录)
mkdir -p nfshost (建目录,用于放开发板所有启动文件)
cd /nfshost
cp -a /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/* .
2.配置nfs
修改nfs配置
vi /etc/exports
--------------------------
/nfshost *(rw,no_root_squash,no_all_squash,sync)
--------------------------
重启动nfs服务
service nfs restart
3.设置启动文件,即配置tftp服务器
cp /opt/mv_pro_4.0/montavista/pro/devkit/lsp/ti-davinci/arch/arm/boot/uImage /tftpboot
chmod 777 /tftpboot/uImage
vi /etc/xinet.d/tftp
-----------------------
disable = no
server_args = -s /tftpboot (设置tftp服务器的根目录)
-----------------------
重启动xinet服务(service xinetd restart)
//===============至此,开发板与虚拟机连接成功==================
>>配置交叉编译工具链
1. vi /root/.bash_profile
----------------------------------
PATH=$PATH:$HOME/bin:/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_4.0/montavista/pro/bin:/opt/mv_pro_4.0/
montavista/common/bin
----------------------------------
2.编译测试例子,在板子上测试
>>配置smb
1,添加系统用户smbuser
2,添加smb用户
3,编辑smb配置,参考smb.conf
4,重启动smb服务
>>配置davinci开发环境
cd /opt/dvevm_1_20
chmod 777 Makefile Rules.make
修改/opt/dvevm_1_20/Rules.make, /opt/dvevm_1_20/Makefile(参考Rules.make,Makefile)
修改examples下面user.bld和xdcpaths.mak路径
user.bld:
修改MVArm9.rootDir = "/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi"
修改C64P.rootDir = "/opt/TI/cg6x_6_0_14"
xdcpaths.mak:
CE_INSTALL_DIR = /opt/dvevm_1_20/codec_engine_1_10_01
XDC_INSTALL_DIR = /opt/bios_5_31_01/xdctools
BIOS_INSTALL_DIR = /opt/bios_5_31_01
XDAIS_INSTALL_DIR= /opt/dvevm_1_20/xdais_5_10
DSPLINK_INSTALL_DIR = /opt/dvevm_1_20/dsplink_1_30_08_02
CMEM_INSTALL_DIR= /opt/dvevm_1_20/cmem_1_02
FC_INSTALL_DIR= /opt/dvevm_1_20/framework_components_1_10_04
修改/opt/dvevm_1_20/codec_engine_1_10_01/packages/config.bld,注释掉linux86
>>编译例子
1.进入examples/codec修改makefile
gmake clean && gmake
2.进入server修改makefile
gmake clean && gmake
3.进入app修改makefile
修改montavista交叉编译器路径CC= /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi/bin/gcc
gmake clean && gmake