Was this page helpful?

Debian on NextVOD

    Build Cross-Compile environment on Debian

    OS: Debian 5.0.8

    Add a repository for Debain-Base

    deb http://ftp.isu.edu.tw/pub/Linux/Debian/debian/ lenny main contrib non-free
    deb-src http://ftp.isu.edu.tw/pub/Linux/Debian/debian/ lenny main contrib non-free
    

    Install required packages

    apt-get install build-essential dpkg-dev libncurses5-dev dpkg-cross distcc tree file
    

    Add a repository for toolchain

    deb http://download.si-linux.co.jp/debian-sh/lenny-sh4/toolchain/ ./
    

    Install Cross Compiler

    apt-get install gcc-4.3-sh4-linux-gnu gcc-4.3-sh4-linux-gnu-base g++-4.3-sh4-linux-gnu cpp-4.3-sh4-linux-gnu
    
    網路設定

    /etc/network/interfaces:

    auto lo eth0 eth0:1
    
    iface lo inet loopback
    
    iface eth0 inet dhcp
    
    iface eth0:1 inet static
          address 192.168.199.199
          netmask 255.255.255.0
          network 192.168.199.0
          broadcast 192.168.199.255
    

     

    系統瘦身

    http://linux.koolsolutions.com/2009/...system-part-1/
    移除文件及手冊

    # rm -rf /usr/share/doc/
    # rm -rf /usr/share/doc-base/
    # dpkg --purge man-db manpages
    # rm -rf /usr/share/man/
    
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core