Debian on NextVOD

    版本為 08:47, 30 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    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://www.si-linux.co.jp/pub/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/
    
    Powered by MindTouch Core