原來搞錯了!
前期按照所謂經驗折騰了半天,編譯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.