DD-WRT

DD-WRT wiki

by RAM

  1. 經由RAM安裝ipkg-opt後, 打包, 壓縮.
  2. 外接式硬碟已事先分割, 格式化.
  3. 將硬碟磁區掛載於/opt
啟用JFFS2

系統管理→ 基本管理

確認可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
恢復出廠預設值, 關閉電源

安裝已格式化硬碟, 開啟電源
  1. 設定PPPoE, 時區, NTP server等.
  2. 驅動USB, ext2/ext3, 掛載/opt
  3. 重新啟動路由器.

下載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
重新啟動路由器

注意事項

  1. 清除LD_LIBRARY_PATH變數
# env
# cat /etc/profile
# unset LD_LIBRARY_PATH
 
optware/dd-wrt.txt · 上一次變更: 2012/03/31 03:14 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki DigiLand.tw