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/