#1 2008-10-23 10:06:46
[教學] 利用ipkg安裝packages的步驟
本身剛接觸嵌入式系統,使用的平台是ASUS WL-500gP:
DD-WRT v23 SP2 std (c) 2006 NewMedia-NET GmbH
Release: 09/15/06 (SVN revision: 3932)
在此要分享在ASUS WL-500gP上安裝packages的方法,如果有錯的地方,請大大們糾正一下唷!
步驟1:Enable JFFS2 Support
(1)開啟網頁:http://192.168.1.1/
(2)Enable 「JFFS2」及「Clean JFFS2」,將JFFS2致能之後,並且將JFFS2做清除的動作。
Administration » Management:JFFS2 Support
JFFS2 » Enable
Clean JFFS2 » Enable
(3)按「Click Settings」。
(4)按「Reboot Router」。
步驟2:Telnet to ASUS WL-500gP
(1) telnet 192.168.1.1
步驟3:Preparing /jffs for /opt
(1) 在/jffs的目錄中建立opt目錄
~ # mkdir /jffs/opt
(2) 確保有一個足夠大且可寫的/opt目錄,因為所有optware都要安裝在這個目錄
~ # mount -o bind /jffs/opt /opt
步驟4:更新ipkg
~ # ipkg update
如果你不幸的,遇到以下的問題:
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/Packages, returning
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/Packages to //jffs/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages
...
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/non-free/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages to //jffs/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/backports/rc5/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/backports/rc5/Packages to //jffs/usr/lib/ipkg/lists/backports
有二個狀況
(1) 網路不通或是Static DNS的位址設定不對。
(2) JFFS2的問題。
解決方法:
(1) 查看一下DNS設定的對不對或是網路通不通
(2) Enable 「JFFS2」及「Clean JFFS2」,按「Save Settings」,然後「Reboot Router」
若解決問題之後,記得在「ipkg update」,成功的話,會得到以下的結果
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Packages 100% |*****************************| 143 KB 00:00:00 ETA
Done.
Updated list of available packages in //jffs/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages
...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Packages 100% |*****************************| 568 --:--:-- ETA
Done.
Updated list of available packages in //jffs/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
Connecting to downloads.openwrt.org[195.56.146.238]:80
Packages 100% |*****************************| 98390 00:00:00 ETA
Done.
Updated list of available packages in //jffs/usr/lib/ipkg/lists/backports
步驟5:Installing packages
(1) 這個網站是全部dd-wrt的stable的optware:http://ipkg.nslu2-linux.org/feeds/optwa … ss/stable/
(2) 下載你所需要的,比如uClibc:
~ #wget http://ipkg.nslu2-linux.org/feeds/optwa … mipsel.ipk
~ # ipkg install uclibc-opt_0.9.28-13_mipsel.ipk
Unpacking uclibc-opt...Done.
Configuring uclibc-opt...Updating /opt/etc/ld.so.cache
Done.
希望分享對大家有幫助唷!
參考文件
Optware - DD-WRT Wiki : http://www.dd-wrt.com/wiki/index.php/Optware
最後修改: James (2008-10-23 10:09:30)
離線
#5 2008-10-23 13:50:15
Re: [教學] 利用ipkg安裝packages的步驟
離線