Was this page helpful?

DAHDI Cross-Compile for STLinux(NextVOD)

    交叉編譯 DAHDI

    下載檔案

    http://downloads.asterisk.org/pub/te...inux-complete/

    wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
    

    交叉編譯

    Linux-Kernel
    下載:http://code.google.com/p/nexttv-mod/downloads/list

    cd /home/alang/STLinux/build_source/linux-sh4-2.6.23.17_stm23_A18B/linux-sh4-2.6.23.17_stm23_A18B
    make ARCH=sh CROSS_COMPILE=sh4-linux- pdk7105_defconfig
    make ARCH=sh CROSS_COMPILE=sh4-linux- modules

    DAHDI
    下載:http://downloads.asterisk.org/pub/te...current.tar.gz

    cd /home/alang/STLinux/build_source/dahdi-linux-complete-2.6.1+2.6.1
    
    KSRC=/home/alang/STLinux/build_source/linux-sh4-2.6.23.17_stm23_A18B/linux-sh4-2.6.23.17_stm23_A18B ARCH=sh CROSS_COMPILE=sh4-linux- make V=1
    
    KSRC=/home/alang/STLinux/build_source/linux-sh4-2.6.23.17_stm23_A18B/linux-sh4-2.6.23.17_stm23_A18B ARCH=sh CROSS_COMPILE=sh4-linux- make install DESTDIR=/home/alang/STLinux/build_opt/dahdi
    
    KSRC=/home/alang/STLinux/build_source/linux-sh4-2.6.23.17_stm23_A18B/linux-sh4-2.6.23.17_stm23_A18B ARCH=sh CROSS_COMPILE=sh4-linux- make config DESTDIR=/home/alang/STLinux/build_opt/dahdi
    

    TIPs:

    KSRC - Linux-kernel source 目錄

    ARCH=sh (適合網樂通硬體)

    CROSS_COMPILE=sh4-linux- (適合網樂通硬體)

    V=1 顯示詳細的 log 資訊

    DESTDIR 編譯後安裝的指定目錄

    結果報告

    問題1:dahdi.ko 無法載入

    [email protected]:/mnt/usb/new_patch/dahdi# modprobe dahdi
    insmod: cannot insert '/lib/modules/2.6.23.17_stm23_A18B-PDK7105-32BITS-A18B/dahdi/dahdi.ko': invalid module format (-1): Exec format error
    modprobe: failed to load module dahdi
    

    問題2:dahdi_test 無法執行

    [email protected]:/mnt/usb/new_patch/dahdi# dahdi_test -v
    -bash: /usr/sbin/dahdi_test: cannot execute binary file
    
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core