[Tomato] 在RT-N16 JFFS 上安裝 optware

RT-N16 刷完韌體還想玩什麼新鮮玩意? 32MB Flash 刷完 8MB 的韌體,千萬別浪費剩餘 24MB 空間,透過啟動 JFFS 功能,不必插 USB 隨身碟,馬上多出 24MB 空間可以使用。不過這空間大小有些尷尬,放不了幾個檔案,但何不拿來安裝 optware 呢? 底下就來介紹在 JFFS 空間裡安裝 optware。

開啟 JFFS 功能
刷完 Tomato 後,JFFS 功能預設是關閉的,所以必須到 路由器管理 => JFFS 裡手動開啟,並且執行 格式化/清除 功能,系統會進行格式化 JFFS 空間,如下圖。
http://digiland.tw/uploads/2_tomato_jffs_init.gif

指定 opt 路徑
optware 預設路徑已固定使用 /opt 路徑,所以當我們格式化 JFFS 空間後,必須把 /opt 指向 JFFS 路徑,這樣日後安裝 optware 套件,才會寫入 JFFS。
 

root@rt-n16:/# mkdir /jffs/opt
root@rt-n16:/# mount -o bind /jffs/opt /opt


設定自動掛載
路由器管理 => JFFS => 掛載後執行 欄位裡填入 mount -o bind /jffs/opt /opt
下次重啟時,系統會自動掛載進來。
http://digiland.tw/uploads/2_tomato_jffs_mount_opt.gif

下載安裝 optware script
這裡參考 TomatoUSB 上的教程下載 optware-install.sh
 

root@rt-n16:/# wget http://tomatousb.org/local--files/tut:optware-installation/optware-install.sh -O - | tr -d ' ' > /tmp/optware-install.sh
Connecting to tomatousb.org (74.86.234.146:80)
Connecting to tomatousb.wdfiles.com (67.228.37.26:80) - 100% |***********************************************************************************************************************| 2826 --:--:-- ETA


變更程可執行檔
 

root@rt-n16:/# chmod +x /tmp/optware-install.sh


開始安裝 optware 環境
 

root@rt-n16:/# sh /tmp/optware-install.sh Checking system config ... Using 192.168.2.10 as the default gateway. Using the following nameserver(s): nameserver 127.0.0.1 Warning: local nameserver is different than gateway! Check config or enter: sed -i s/192.168.*/192.168.2.10/ /tmp/resolv.conf and try again, or wait to see if your download continues anyway. Installing package uclibc-opt_0.9.28-13_mipsel.ipk ... Some newer versions of DD-WRT does not show download progress bar, so just be patient - or check STATUS -> BANDWIDTH tab for download activity in your routers Web-GUI, and then still wait a minute or two. Connecting to ipkg.nslu2-linux.org (140.211.169.169:80) uclibc-opt_0.9.28-13 100% |***********************************************************************************************************************| 832k 00:00:00 ETA Updating /opt/etc/ld.so.cache Installing package ipkg-opt_0.99.163-10_mipsel.ipk ... Some newer versions of DD-WRT does not show download progress bar, so just be patient - or check STATUS -> BANDWIDTH tab for download activity in your routers Web-GUI, and then still wait a minute or two. Connecting to ipkg.nslu2-linux.org (140.211.169.169:80) ipkg-opt_0.99.163-10 100% |***********************************************************************************************************************| 75822 00:00:00 ETA Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz Connecting to ipkg.nslu2-linux.org (140.211.169.169:80) Packages.gz 100% |***********************************************************************************************************************| 118k 00:00:00 ETA Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/optware Successfully terminated. Installing uclibc-opt (0.9.28-13) to /opt/... Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk Connecting to ipkg.nslu2-linux.org (140.211.169.169:80) uclibc-opt_0.9.28-13 100% |***********************************************************************************************************************| 832k 00:00:00 ETA package uclibc-opt suggests installing ipkg-opt Configuring uclibc-opt Updating /opt/etc/ld.so.cache Successfully terminated. Installing ipkg-opt (0.99.163-10) to /opt/... Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk Connecting to ipkg.nslu2-linux.org (140.211.169.169:80) ipkg-opt_0.99.163-10 100% |***********************************************************************************************************************| 75822 00:00:00 ETA Configuring ipkg-opt Successfully terminated.


檢視使用空間
還有 22.1MB 的空間可以使用 yes
 

root@rt-n16:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 6.5M 6.5M 0 100% /
tmpfs 62.1M 152.0K 61.9M 0% /tmp
devfs 62.1M 0 62.1M 0% /dev
/dev/mtdblock3 24.3M 2.2M 22.1M 9% /opt
/dev/mtdblock3 24.3M 2.2M 22.1M 9% /jffs
/dev/mtdblock3 24.3M 2.2M 22.1M 9% /opt


更新
 

root@rt-n16:/# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
root@rt-n16:/# ipkg upgrade
Nothing to be done Successfully terminated.


檢視已安裝套件
 

root@rt-n16:/# ipkg 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.


經過上面幾個步驟,RT-N16 可以很快速的建立起 optware 環境,馬上與上千種套件接軌,有機會我們再介紹 optware 套件的應用,若您迫不及待,可以前往WL-500g 系列改機文件索引參考如何安裝設定套件。

底下將 optware 安裝於 JFFS 的優缺點,做個整理:
優點:
1.無須外接 USB 隨身碟,無須分割磁區,即可快速打造 optware 環境。
2.因 JFFS 使用 Flash 記憶體,可視為小容量隨身碟,關機後資料依然存在。

缺點:
1.日後若韌體有升級後,上述流程還要重做一次。
2.JFFS 容量寸土寸金,僅適合安裝常用小巧的工具套件,請斟酌使用。
3.因 JFFS 使用 Flash 記憶體,故不建議在上面執行大量存取磁碟的套件,以免折損 Flash 記憶體使用壽命。

參考:
http://ahui.us/index.php/2010/08/tomato … a-optware/
http://tomatousb.org/doc:optware

延伸閱讀:
WL-500g 系列改機文件索引

引用通告地址: 點擊獲取引用地址
評論: 37 | 引用: 0 | 閱讀: 8828 | 轉發
Rodolfo [ 2023-02-05 12:26 網址 | 回覆 | 編輯/刪除 ]
https://www.nikeairmaxs-270.us.com/
https://www.nikeair-max95.us.com/
https://www.nikewomensshoes.us.com/
https://www.jordan16.us/
https://www.nikeairjordan.us.org/
https://www.nikefree.us.org/
https://www.nikewholesalesuppliers.us.com/
https://www.nikesoutletstore.us.com/
https://www.jordans33.us/
https://www.nikeepicreactuptempo.us.org/
https://www.toddlerbabyinfantjordans.us/
https://www.officialpandorajewelry.us/
https://www.michaeljordan-shoes.us/
https://www.nikecanadashoesshop.ca/
https://www.foamposites.us.org/
https://www.jordanswholesale.us.org/
https://www.christianlouboutinshoess.us.com/
https://www.nikeshoesdeals.us.com/
https://www.jordans28.us/
https://www.pandora-jewelry-charms.us/
https://www.newjordans.u
William [ 2023-02-07 02:22 網址 | 回覆 | 編輯/刪除 ]
https://www.yeezy.us.org/
https://www.retro-jordans.us/
https://www.nikeoutletstoresonlineshopping.us.com/
https://www.airjordanshoess.us.com/
https://www.nike-airmax2018.us.com/
https://www.outletnikestore.us.com/
https://www.airjordan4s.us/
https://www.airjordanretro11.us.com/
https://www.retrosjordans.us/
https://www.pandorajewellery.us.com/
https://www.jordan11red.us.com/
https://www.yeezyonline.us.com/
https://www.jordans11.us.com/
https://www.jordansneakerss.us/
https://www.airmax270.us.org/
https://www.jordan11low.us.com/
https://www.jordanretro-11.us.com/
https://www.nikeshoesforwomens.us.com/
https://www.mensnikeshoes.us.com/
https://www.pandoraringssite.us/
https://www.airjordan1s.us.org/
https://www.ggdbs.us.c
Anthony [ 2023-02-07 07:13 網址 | 回覆 | 編輯/刪除 ]
https://www.pandorajewelrysblackfriday.us.com/
https://www.pumashoess.us.com/
https://www.balenciagashoess.us.com/
https://www.sneakersadidas.us.com/
https://www.pandoracharmsjewelrys.us/
https://www.balenciagasneakerssales.us.com/
https://www.pandoracharms-bracelets.us.com/
https://www.airjordan1.us.org/
https://www.pandoracharms-bracelets.us/
https://www.pandorajewelry-officialsites.us/
https://www.cheapmoncler.us.com/
https://www.diorjordan1.us.com/
https://www.pandorashops.us.com/
https://www.pandorajewelryshop.us.com/
https://www.adidasshoes-canada.ca/
https://www.nmd.us.com/
https://www.pandorabraceletsjewelry.us.com/
https://www.pandoracharmsstore.us.com/
https://www.pandorashop.us.com/
https://www.cheapshoesoutleto
Anthony [ 2023-02-07 11:17 網址 | 回覆 | 編輯/刪除 ]
https://www.nbastores.com.co/
https://www.baseball-jerseys.us.com/
https://www.nfljerseyscheap.com.co/
https://www.jerseyscheapwholesalefromchina.us.com/
https://www.jerseyswholesale.com.co/
https://www.nhljerseysforcheap.us.com/
https://www.jerseyswholesaleforcheap.us.com/
https://www.cheapbasketballjerseyswholesale.us.com/
https://www.hockeyjerseyswholesale.us.com/
https://www.cheapnfljerseyswholesale.com.co/
https://www.cheapjerseysfromchinawholesale.com.co/
https://www.mlbshops.com.co/
https://www.wholesalecheapjerseysshop.com.co/
https://www.hockeyjerseyscheap.us/
https://www.nfljerseysofficialshop.us/
https://www.jerseyscheap.com.co/
https://www.basketballapparel.us/
https://www.nflfanshop.com.co/
https://www.official
Rodolfo [ 2023-02-07 21:33 網址 | 回覆 | 編輯/刪除 ]
https://www.airjordans11retro.us/
https://www.pandoraa.us/
https://www.nikesneakerss.us.com/
https://www.diorjordans.us/
https://www.nikefoampositeacghyperdunk.us.com/
https://www.pandora-jewelrysite.us/
https://www.jordan15.us/
https://www.nikecortezshox.us.org/
https://www.canadashoesoutlet.ca/
https://www.pandorasjewelrycharms.us/
https://www.mlbjerseysshop.ca/
https://www.wholesaleshoescheap.us/
https://www.charmspandoras.us.com/
https://www.jordan11concordshoes.us/
https://www.nhljerseysstore.ca/
https://www.pandorajewelryblackfriday.us.com/
https://www.airmaxs.us.org/
https://www.newnikesshoes.us.org/
https://www.jordan29.us/
https://www.airjordan33.us/
https://www.jordans14.us/
https://www.nbastorecanada.ca/
http
Catalina [ 2023-02-09 07:06 網址 | 回覆 | 編輯/刪除 ]
https://www.golden-gooses.us.com/
https://www.runningshoesformenwomen.us/
https://www.pandorascharmsjewelry.us/
https://www.airjordan14.us.com/
https://www.nike-runningshoes.us/
https://www.menwomenshoes.us/
https://www.jordanshoesforkids.us/
https://www.valentinoshoessale.us.com/
https://www.adidasultra-boosts.us.com/
https://www.pandorajewelryofficialwebsite.us/
https://www.jordanretroshoes.us.org/
https://www.nikeair-max.us.org/
https://www.red-bottomheels.us/
https://www.michael-jordanshoes.us.com/
https://www.kevin-durantsshoes.us.com/
https://www.air-jordan10.us.com/
https://www.nike-basketballshoes.us.org/
https://www.airjordan1mid.us.com/
https://www.yeezysboosts.us.com/
https://www.outletstoreonlineshopping.us/
h
Webb [ 2023-02-09 08:18 網址 | 回覆 | 編輯/刪除 ]
https://www.adidass.us.com/
https://www.pandoras.uk.com/
https://www.nikeclearancestores.us.com/
https://www.trainerssale.uk.com/
https://www.yeezyshoesstore.ca/
https://www.pandoracharmsbracelets.us.com/
https://www.nikeshoesoutlets.us.com/
https://www.yeezy500boost.us.com/
https://www.nikesrunningshoes.us.com/
https://www.adidasoutletstores.us.com/
https://www.nike-outletfactory.us.com/
https://www.jewelrypandora.us.org/
https://www.nikesoutlets.us.com/
https://www.nikesstoreoutlet.us.com/
https://www.pandorajewelryuk.uk.com/
https://www.adidasstoreonline.us.com/
https://www.nikeoutletsonline.us.com/
https://www.adidassuperstars.us.com/
https://www.adidasshoesshop.us.com/
https://www.yeezyboost350v2.us.com/
https://www.
Katherine [ 2023-02-10 11:47 網址 | 回覆 | 編輯/刪除 ]
https://www.monclercoatfactory.us.com/
https://www.monclersaleoutlets.us.com/
https://www.jordanones.us/
https://www.yeezysshoes.ca/
https://www.airjordans1.us.com/
https://www.balenciagastore.us.com/
https://www.cheapjordanshoeswholesale.us/
https://www.pandorasbracelets.us.com/
https://www.officialpandorajewelry.ca/
https://www.wholesalejordanshoes.us.org/
https://www.pandorasrings.us.com/
https://www.airmax720.us.com/
https://www.adidasstoreoutlets.us.com/
https://www.ferragamosbelts.us.com/
https://www.airjordan1.us.org/
https://www.asicssneakers.us.com/
https://www.nike--shoes.ca/
https://www.jordanstore.com.co/
https://www.outletasics.us.com/
https://www.pandorasjewellery.us.com/
https://www.pandorasjewelrys.us.com/
Katina [ 2023-02-10 23:10 網址 | 回覆 | 編輯/刪除 ]
https://www.pandorasbracelets.us/
https://www.cheapshoeswholesalefreeshipping.us/
https://www.jordans34.us/
https://www.nikerunningshoesforwomen.us.com/
https://www.pandora-jewelry-charms.us/
https://www.wholesaleshoesclothing.us/
https://www.jordan15.us/
https://www.nikeshoesstores.us.com/
https://www.nikeairmaxs.us.org/
https://www.nikesneakerss.us.com/
https://www.huaraches.us.org/
https://www.nikesnew.us.com/
https://www.pandorajewelryoutlets.us.com/
https://www.cheapjordanshoessuppliers.us.org/
https://www.jordan2s.us/
https://www.nikeairhuaraches.us.com/
https://www.charmspandoras.us.com/
https://www.nikecortezshox.us.org/
https://www.nikesoutletfactory.us.com/
https://www.nflshoponline.ca/
https://www.nikezoomshoes
發表評論
暱 稱(*): 密 碼:
網 址: E - mail:
驗證碼(*): 驗證碼圖片 選 項:
頭 像:
內 容(*):