系統環境
使 /bin/sh 使用 bash(註:Ubuntu 預設使用 dash)
sudo apt-get install bash sudo dpkg-reconfigure dash <選 NO>
安裝 rpm
sudo apt-get install rpm sudo apt-get install python-urlgrabber python-rpm python-sqlitecachec python-libxml2
下載 STLinux 2.3 ISO
ftp://ftp.stlinux.com/pub/stlinux/2.3/iso/STLinux-2.3-sh4-03-11-07.iso
mkdir STLinux cd STLinux wget ftp://ftp.stlinux.com/pub/stlinux/2.3/iso/STLinux-2.3-sh4-03-11-07.iso sudo rpm -ivh stlinux23-host-STLinux_deps-0.1-5.i386.rpm
掛載 ISO 檔
sudo mkdir /mnt/iso sudo mount -o loop STLinux-2.3-sh4-03-11-07.iso /mnt/iso
安裝 STLinux
cd /mnt/iso sudo ./install all-sh4-glibc
如果一切正常,會開始安裝所有套件(約 5XX 個),完成後會出現以下的畫面:
Complete!
Warning, could not load sqlite, falling back to pickle
*************************************************
* INSTALLATION COMPLETED *
* *
* Website: http://www.stlinux.com *
* Support: https://bugzilla.stlinux.com *
* *
*************************************************
更新 STLinux 所有套件
cd /opt/STM/STLinux-2.3/host/bin/ sudo ./stmyum update
TIPs:
安裝套件數約 38 個
更新套件數約 286 個
建立 Cross-Compile 指令的 PATH