[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 | 閱讀: 8824 | 轉發
Anthony [ 2023-02-12 03:05 網址 | 回覆 | 編輯/刪除 ]
https://www.nhlstore.com.co/
https://www.footballstores.us.com/
https://www.wholesalecheapjerseysshop.com.co/
https://www.baseballjerseyscheapwholesale.us.com/
https://www.basketballjerseyswholesale.us/
https://www.officialbaseballjerseys.us.com/
https://jerseysforcheapwholesale.us.com/
https://www.cheap-nfljerseys.com.co/
https://www.footballjerseysforcheap.us.com/
https://www.cheapwholesalejerseys.com.co/
https://www.cheapnfljerseysfromchina.com.co/
https://www.footballjerseys.com.co/
https://www.nflfootballjerseys.com.co/
https://www.jerseyscheap.com.co/
https://www.nfljerseyscheap.com.co/
https://www.mlbjerseyswholesalecheap.us.com/
https://www.nflfootballjerseysnew.us.com/
https://www.jerseyscheapwholesalefromchina.us.c
Lauren [ 2023-02-12 06:17 網址 | 回覆 | 編輯/刪除 ]
https://www.nikeoutletstores.us.com/
https://www.yeezy500boost.us.com/
https://www.adidascom.us.com/
https://www.nikeoutletsonline.us.com/
https://www.nikeshoesshop.ca/
https://www.trainerssale.uk.com/
https://www.ultraboost.uk.com/
https://www.yeezyshop.us.com/
https://www.adidasyeezys.us.com/
https://www.outletadidasshoes.us.com/
https://www.adidassuperstars.us.com/
https://www.yeezyboost350v2.us.com/
https://www.ultra-boost.us.com/
https://www.nike-outletfactory.us.com/
https://www.nikecanada-onlineshopping.ca/
https://www.airforce1s.us.com/
https://www.pandorascharms.uk.com/
https://www.nike-onlinecanada.ca/
https://www.trainersstore.uk.com/
https://www.nikesoutlets.us.com/
https://www.adidasstoreonline.us.com/
https
Katina [ 2023-02-13 03:49 網址 | 回覆 | 編輯/刪除 ]
https://www.yeezyonline.us.com/
https://www.nikesoutletstoreonlineshopping.us.com/
https://www.nikeairmax98.us/
https://www.kyrieirving-shoes.us.org/
https://www.retrosjordans.us/
https://www.pandorajewelryofficialsite.us.com/
https://www.airjordan3s.us/
https://www.vanscom.us.com/
https://www.nikesfactory.us.com/
https://www.air-max90.us.com/
https://www.redbottomshoeslouboutin.us.com/
https://www.yeezys.com.co/
https://www.redbottomslouboutin.us.org/
https://www.ferragamos.us.org/
https://www.goldengoosesales.us.com/
https://www.jordanretro-11.us.com/
https://www.balenciagaofficial.us.com/
https://www.jordans-sneakers.us.com/
https://www.nikeshoes-cheap.us.com/
https://www.new-jordans.us.com/
https://www.goldengooseoutl
Darleen [ 2023-02-13 16:27 網址 | 回覆 | 編輯/刪除 ]
https://www.pandoras-charms.us.com/
https://www.ferragamosbelt.us.com/
https://www.pandorasjewelryofficialsite.us.com/
https://www.pandorashops.us.com/
https://www.pandora-outletcharms.us.com/
https://www.balenciagastores.us.com/
https://www.jordan1low.us.com/
https://www.monclerjacketsoutletonline.us.com/
https://www.cheapmoncler.com.co/
https://www.outletmonclerjackets.us.com/
https://www.pandorasrings.us.com/
https://www.pandoraoutlet-charms.us.com/
https://www.pandoracharmss.us.com/
https://www.charmspandoras.us/
https://www.pandoraoutlet-online.us.com/
https://www.cheapjordanshoeswholesale.us/
https://www.airjordan5.us.com/
https://www.monclercoatsjacketsoutlet.us.com/
https://www.pandorabraceletsclearance.us.com/
htt
Lisa [ 2023-02-13 22:15 網址 | 回覆 | 編輯/刪除 ]
https://www.nikeshoessale.us.org/
https://www.nikeoffwhite.us.org/
https://www.airjordanretro.us.org/
https://www.nike-outlets.us.com/
https://www.charmspandora.us.org/
https://www.jordan18.us/
https://www.michaeljordan-shoes.us/
https://www.huaraches.us.org/
https://www.jordan26.us/
https://www.jewelryspandora.us.com/
https://www.officialpandorarings.us/
https://www.newnikesneakers.us.org/
https://www.nikeair-force1.us.org/
https://www.nikecanadashoesshop.ca/
https://www.pandorajewelryshops.us.com/
https://www.pandorajewelrycharmscanada.ca/
https://www.christianslouboutin.us.org/
https://www.officialpandorajewelry.us/
https://www.airmax720.us.org/
https://www.jordan17.us/
https://www.nikeairforce1s.us.org/
https://www.d
Nicholas [ 2023-02-15 08:21 網址 | 回覆 | 編輯/刪除 ]
https://www.jordan7.us.com/
https://www.pandoranecklaces.us/
https://www.jordan-retro4.us.com/
https://www.nikehuaraches.us.com/
https://www.airjordan-retro11.us.com/
https://www.air-jordan8.us.com/
https://www.nikesneakersoutlet.us.org/
https://www.newshoes2019.us/
https://www.jewelrycharms.us/
https://www.nike-airmax98.us/
https://www.nikeoutletstoreonlines.us.com/
https://www.nike-outletstoreonlineshopping.us.com/
https://www.red-bottomheels.us/
https://www.moncleroutletuk.uk.com/
https://www.nikecortez.us.org/
https://www.pandorascharmsjewelry.us/
https://www.air-jordansretro.us.com/
https://www.nikerunning-shoes.us.com/
https://www.airjordan14.us.com/
https://www.nikeshoess.us.org/
https://www.nikecortezshox.us.com/
Katherine [ 2023-02-16 01:15 網址 | 回覆 | 編輯/刪除 ]
https://www.mlbjerseysforcheap.us.com/
https://www.nbashop.us.org/
https://www.cheapwholesalejerseys.com.co/
https://www.footballstore.us.com/
https://www.cheapfootballjerseysfromchina.us.com/
https://www.jerseysforcheapwholesale.us/
https://www.nflfanshop.com.co/
https://www.cheapnfljerseysfromchina.com.co/
https://www.basketballjerseyscheapwholesale.us.com/
https://www.nfljerseyscheap.com.co/
https://www.baseballjerseyswholesale.us/
https://www.mlbjerseyswholesalecheap.us.com/
https://www.footballproshop.us.com/
https://www.jerseyscheapwholesalefromchina.us.com/
https://www.cheapjerseysfromchinawholesale.com/
https://www.wholesalejerseysforcheap.com/
https://www.wholesalecheapjerseysfromchina.us/
https://www.wholesalecheap
Katina [ 2023-02-16 16:56 網址 | 回覆 | 編輯/刪除 ]
https://www.airforce1s.us.org/
https://www.ringspandora.us/
https://www.nikeshoesoutletstoreonlineshopping.us.com/
https://www.nikeairforce1s.us.org/
https://www.jordans12.us/
https://www.nikeshoesstores.us.com/
https://www.charmspandoras.us.com/
https://www.jordan24.us/
https://www.jordans14.us/
https://www.nikess.us.com/
https://www.pandorajewelrycz.us/
https://www.wholesaleadidas.us.com/
https://www.nikeshoessale.us.org/
https://www.newnikesneakers.us.org/
https://www.michaeljordan-shoes.us/
https://www.nikeoutletstoreonlines.us.org/
https://www.jordan-12.us.org/
https://www.christianslouboutin.us.org/
https://www.nflshoponline.ca/
https://www.christianlouboutinshoess.us.com/
https://www.jordan20.us/
https://www.cheap
Tim [ 2023-02-17 12:14 網址 | 回覆 | 編輯/刪除 ]
https://www.nikecanada-onlineshopping.ca/
https://www.ultraboost.uk.com/
https://www.nmdsadidas.us.com/
https://www.pandoras.uk.com/
https://www.adidassuperstars.us.com/
https://www.nikeclearancestores.us.com/
https://www.jewelrypandora.us.org/
https://pandorabracelets-charms.us.com/
https://www.adidasshoesshop.us.com/
https://www.pandoracharmsbracelet.us.com/
https://www.officialyeezywebsite.us.com/
https://www.nikesrunningshoes.us.com/
https://www.yeezysboost-350.us.com/
https://www.nikesneakersstore.us.com/
https://www.ultra-boost.us.com/
https://www.pandoracharmsbracelets.us.com/
https://www.yeezycanadastore.ca/
https://www.adidasyeezys.us.com/
https://www.nikeoutlet--store.us.com/
https://www.adidasoutletshoes.us.com/
Katina [ 2023-02-17 18:29 網址 | 回覆 | 編輯/刪除 ]
https://www.goldengooseshoess.us.com/
https://www.air-jordanssneakers.us/
https://www.pandoraringssite.us/
https://www.newjordan11.us/
https://www.airjordan1s.us.org/
https://www.jordan1universityblue.us.com/
https://www.monclervest.us.com/
https://www.yeezys-shoes.us.org/
https://www.adidasyeezysshoes.us.com/
https://www.christianslouboutin.uk.com/
https://www.fjallraven-kanken.us.com/
https://www.nikeairjordan.us.com/
https://www.goldensgoose.us.com/
https://www.ggdbsneakers.us.com/
https://www.newjordansshoes.us.com/
https://www.jordans-11.us/
https://www.jamesharden-shoes.us.org/
https://www.redbottomshoeslouboutin.us.com/
https://www.ferragamos.us.org/
https://www.pandoracanadajewelry.ca/
https://www.balenciagatriple
發表評論
暱 稱(*): 密 碼:
網 址: E - mail:
驗證碼(*): 驗證碼圖片 選 項:
頭 像:
內 容(*):