====== DD-WRT ======
- [[http://www.nslu2-linux.org/wiki/FAQ/Optware-uClibcBuild|Optware-uClibcBuild]]
- [[http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages|Packages]] 套件庫
===== DD-WRT wiki =====
- [[http://www.dd-wrt.com/wiki/index.php/Optware|Optware]]
- [[http://www.dd-wrt.com/wiki/index.php/Optware-ByHand|Optware-ByHand]]
===== by RAM =====
* [[http://digiland.tw/viewtopic.php?pid=3710#p3710|[DD-WRT] 華碩Router改機]]
- 經由RAM安裝ipkg-opt後, 打包, 壓縮.
- 外接式硬碟已事先分割, 格式化.
- 將硬碟磁區掛載於/opt
== 啟用JFFS2 ==
系統管理-> 基本管理\\
{{http://digiland.tw/uploads/614_dd-wrt_management_jffs2_v24-10923-mini-usb_wl-500gx.gif}}
== 確認可ping ipkg.nslu2-linux.org ==
# ping ipkg.nslu2-linux.org
PING ipkg.nslu2-linux.org (140.211.169.169): 56 data bytes
64 bytes from 140.211.169.169: seq=0 ttl=50 time=212.430 ms
64 bytes from 140.211.169.169: seq=1 ttl=50 time=241.961 ms
64 bytes from 140.211.169.169: seq=2 ttl=50 time=219.324 ms
--- ipkg.nslu2-linux.org ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 200.414/218.532/241.961 ms
== 借用RAM, 掛載/jffs, /opt ==
# mkdir /tmp/jffs
# mount /tmp/jffs /jffs -o bind
# mkdir -p /jffs/tmp/ipkg
# mkdir /jffs/opt
# mount /jffs/opt /opt -o bind
# mkdir /opt/etc
== 設定Optware資料來源 ==
# cat > /opt/etc/ipkg.conf
src optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
dest root /jffs
ctrl-d 結束.
== 更改ipkg設定檔路徑 ==
# export IPKG_CONF_DIR=/opt/etc
== 更新資料來源 ==
# ipkg update
== 安裝ipkg-opt ==
# ipkg -force-depends install ipkg-opt
輸入Y, 覆寫原有設定檔.
== 再更新資料來源 ==
# ipkg-opt update
== 再安裝ipkg-opt ==
# ipkg-opt install ipkg-opt
== 檢查已安裝套件 ==
# ipkg-opt list_installed
ipkg-opt - 0.99.163-10 - The Itsy Package Manager
uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
Successfully terminated.
== 打包, 壓縮 ==
# cd /opt
# tar -cvf /tmp/dd-wrt_optware.tar *
# gzip /tmp/dd-wrt_optware.tar
== 上傳到FTP server ==
ftpput [options] remote-host remote-file local-file
# ftpput -u username -p password 192.168.1.250 dd-wrt_optware.tar /tmp/dd-wrt_optware.tar
== 恢復出廠預設值, 關閉電源 ==
{{http://digiland.tw/uploads/614_dd-wrt_factory_defaults.gif}}
== 安裝已格式化硬碟, 開啟電源 ==
- 設定PPPoE, 時區, NTP server等.
- 驅動USB, ext2/ext3, 掛載/opt
- 重新啟動路由器.
{{http://digiland.tw/uploads/614_dd-wrt_services_usb_automaticdrivemount_opt.gif}}
== 下載dd-wrt_optware.tar.gz到/tmp ==
ftpget [options] remote-host local-file remote-file
# ftpget -u username -p password 192.168.1.250 /tmp/dd-wrt_optware.tar.gz dd-wrt_optware.tar.gz
== 解壓縮到/opt ==
# tar -xzvf /tmp/dd-wrt_optware.tar.gz -C /opt
== 更新套件來源與已安裝套件 ==
# ipkg-opt update
# ipkg-opt upgrade
== 重新啟動路由器 ==
===== 注意事項 =====
- 清除**LD_LIBRARY_PATH**變數
# env
# cat /etc/profile
# unset LD_LIBRARY_PATH