原来搞错了!
前期按照所谓经验折腾了半天,编译uboot,kernel等,后来编译devkit8000自带到一些内核,boot代码。
后来看到还有一个DVSDK,看了看说明,下了个dvsdk_3_01_00_10版本,安装很容易,运行就好,是图形界面,好像如果在ssh等命令行下也可以安装。
期间,在TI下载了一堆到东西,比如C6X的DSP编译工具,等,也统统安装上去。
安装完毕,要设置一些内部到环境变量,在Rules.make中,最主要的是:
DVSDK_INSTALL_DIR=/home/wpl/dvsdk/dvsdk_3_01_00_10
……
CODEGEN_INSTALL_DIR=/opt/TI/C6000CGT6.1.12/
……
OMAP3503_SDK_INSTALL_DIR=/home/wpl/omap/AM35x-OMAP35x-PSP-SDK-03.00.01.06
……
CSTOOL_DIR=/home/wpl/omap/arm-2009q1
这其中几个东西,如psp, arm tool-chain, c6000 tool-chain, dvsdk 等都要安装并指定相应目录。
另外需要注意:CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cs1omap3530_1_01_00
这个是原来到写法,但我安装cs1omap3530_1_01_00这个包的时候,其实不是装在DVSDK目录下,所以为了省事,我在dvsdk目录下建立了一个软连接到cs1omap目录。
为啥说搞错了,其实如果使用DVSDK,这就是TI提供给开发者到统一环境,其它都是这个工具环境到依赖包,make help可以看到:
Available build targets are:
check : Make sure Rules.make is set up properly
info : List versions of DVSDK components
all : Build the components below
clean : Remove files generated by the 'all' target
cmem : Build the CMEM kernel module for omap3530
cmem_clean : Remove generated cmem files.
dmai : Build DMAI for omap3530_al
dmai_clean : Remove generated DMAI files.
lpm : Build LPM for omap3530
lpm_clean : Remove generated lpm files.
sdma : Build SDMA for omap3530
sdma_clean : Remove generated SDMA files.
demos : Build the DVSDK demos for omap3530
demos_clean : Remove generated DVSDK demo files.
dvtb : Build DVTB for omap3530
dvtb_clean : Remove generated DVTB files
The following targets have to be explicitly built and cleaned:
everything : Rebuild everything including below targets
Note: C6000 code gen tools are required
clobber : Remove all generated files
Note: C6000 code gen tools are required
dsplink : Configure and build DSP Link for omap3530 ARM and DSP
Note: C6000 code gen tools are required
dsplink_arm : Configure and build DSP Link for omap3530 ARM
dsplink_dsp : Configure and build DSP Link for omap3530 DSP
Note: C6000 code gen tools are required
dsplink_samples : Build DSP Link ARM and DSP sample applications for omap3530
Note: C6000 code gen tools are required
dsplink_clean : Remove generated DSP Link files
Note: C6000 code gen tools are required
codecs : Build codec servers for omap3530
codecs_clean : Remove generated codec server files
uboot : Build uboot for omap3530
uboot_clean : Remove generated uboot files
linux : Build Linux kernel uImage for omap3530
linux_clean : Remove generated Linux kernel files
install : Install binaries to /home/wpl/workdir/filesys/opt/dvsdk/omap3530
dmai_install : Install DMAI binaries to /home/wpl/workdir/filesys/opt/dvsdk/omap3530
ce_examples : Build Codec Engine Examples for omap3530
Note: C6000 code gen tools are required
ce_examples_clean:Remove Codec Engine Examples
Note: C6000 code gen tools are required
所以,执行make linux 就可以编译内核(其过程是先编译uboot,估计是需要mkimage等工具);执行make uboot就可以编译uboot等等。
不过编译时注意权限(编译器的)问题,必要时后使用sudo.