TI OMAP 3530 psp compile note(3)

來源:互聯網
上載者:User

原來搞錯了!

 

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

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.