2013年1月8日星期二

tomato固件升级Transmission

升级有风险 折腾需谨慎 刷机变砖 请勿骂娘

最近败了个中兴H218N 16M Flash  128M 内存的机 刷了个tomato固件



2012年12月12日时候注册了BT 论坛 www.cnhd.com


但是总不能够用电脑挂着下啊,用电脑挂太浪费了~~~再说有条12M的adsl放那里真浪费!



想用tomato路由的transmission下载发现transmission的版本太低,BT添加种子红字提示客户端版本太低,依赖思想太严重:网上搜索 办法很多但是都不顶用,都是适合外挂包的,类似我以前讲的somewood外挂路由,适合从固件直接升级的没有。。。
没有办法呢?只能够想办法 发现路由的有jffs设置,嘿 !机会来了!


结合折腾somewood的思路及方法:直接把transmission安装在JFFS里不就行了?

于是在网上看了看基础的升级方法 开始动手:
telnet进路由器(如何在路由器上开启telnet服务及在windows上开启telnet自行搜去) 
直接依次输入以下代码:(注意代码升级包需要正常访问互联网 你的路由系统必须能够正常访问外网)

mount -o bind /jffs/opt /opt

wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh

sh /tmp/optware-install.sh

/opt/bin/ipkg update

/opt/bin/ipkg install transmission

/opt/bin/ipkg install libevent

返回的结果如下:



完整代码如下:(蓝色的是要你输入进去的 黑色的是系统的反馈)
root@Router:/tmp/home/root# cd /
root@Router:/# LS
-sh: LS: not found
root@Router:/# ls
bin    cifs1  dev    home   lib    nas    proc   root   sys    usr    www
bkp    cifs2  etc    jffs   mnt    opt    rom    sbin   tmp    var
root@Router:/# cd jffs
root@Router:/jffs#
root@Router:/jffs# mount -o bind /jffs/opt /opt
root@Router:/jffs# wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.s
h -O - | tr -d '\r' > /tmp/optware-install.sh
Connecting to www.3iii.dk (193.202.110.52:80)
-                    100% |*******************************|  2895  --:--:-- ETA
root@Router:/jffs# sh /tmp/optware-install.sh
Checking system config ...
Using 202.105.100.1 as default gateway.
Using the following nameserver(s):
nameserver 127.0.0.1
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.161: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.161:80)
ipkg-opt_0.99.163-10 100% |*******************************| 75850  00:00:00 ETA
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Package
s.gz
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
Packages.gz          100% |*******************************|   119k 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.161: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-op
t_0.99.163-10_mipsel.ipk
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
ipkg-opt_0.99.163-10 100% |*******************************| 75850  --:--:-- ETA
Configuring ipkg-opt
Successfully terminated.
root@Router:/jffs# /opt/bin/ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Package
s.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@Router:/jffs# /opt/bin/ipkg install transmission
Installing transmission (2.73-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/transmi
ssion_2.73-1_mipsel.ipk
Installing openssl (0.9.7m-6) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/openssl
_0.9.7m-6_mipsel.ipk
Installing libcurl (7.24.0-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libcurl
_7.24.0-1_mipsel.ipk
Installing zlib (1.2.5-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/zlib_1.
2.5-1_mipsel.ipk
Installing libevent (2.0.20-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/libeven
t_2.0.20-1_mipsel.ipk
Configuring libcurl
Configuring libevent
Configuring openssl
Configuring transmission
Configuring zlib
Successfully terminated.
root@Router:/jffs# /opt/bin/ipkg install libevent
Package libevent (2.0.20-1) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.
root@Router:/jffs#

做到这里然后进路由的web界面USB BT下载改为如下的(对比前后两图 图中红圈地方要更改)





就是把内置的 改为外部  


那么就OK了!记得保存设置哟~!!!


看下效果 添加BT网站的种子文件 嘿嘿不红种了~~!!可以下载了!


此文到此结束 !

没有评论:

发表评论