找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 153868|回复: 119

小米路由刷tomato.DD-WRT,海蜘蛛成功!!!!

 火.. [复制链接]
发表于 2014-6-12 19:52 | 显示全部楼层 |阅读模式
刷机有风险!动手需谨慎
刷机包下载地址  ht  tp://url.cn/NPVpWs
百度网盘ht  tp://pan.baidu.com/s/1mgI9unY(重命名为rar格式)





没有这样的动手能力,没有编程器,建议不要第三方固件!
以下是刷机教程
以0.4.58版为例子



1.开启SSH(开启方法请见官方论坛)

2.通过Putty ssh登陆到小米路由
输入用户名密码后依次输入
nvram set boot_wait=on
nvram set wait_time=10
nvram commit



再输入
nvram show |grep wait
出现
boot_wait=on
wait_time=10
的信息,说明保存成功!恭喜你,开启了小米路由TFTP刷机后门
3.将电脑ip地址设置成192.168.1.100保存,并运行CMD输入 ping 192.168.1.1 -t的命令


4.打开“TFTP智能刷机1.62”选择路由IP填写192.168.1.1,并选择固件所在路径
5.路由重启或者拔掉电源重新插电




此时在路由重启过程中会出现ping 192.168.1.1的情况,
在第一个TTL=100信息出现的时候点击TFTP智能刷机1.62的更新固件按钮

6.等待第三方固件上传完毕,约5分钟后(请耐心等待),输入192.168.1.1访问新固件的小米路由器


7.登陆新的系统,默认用户名/密码均为admin
8.新系统的截图










9.刷了新系统后,千万不能在软件里面恢复出厂配置(请nvram),否则,无线将无法使用,有线使用正常,
我会继续研究解决第三方固件的无线驱动问题!也会考虑在合适的时候放出源代码
10.刷回小米
第一步使用TFTP智能刷机1.62工具刷“小米原厂固件”,等5分钟
第二步将完整版(40多M)的小米固件放入FAT32格式的U盘,
第三部按住复位键,通电
等10分钟,一切还原,小米还是小米

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

为什么显示的是R7000?不是小米啊  发表于 2014-7-13 11:07

评分

参与人数 5恩山币 +9 收起 理由
awp8008 + 3 tftp一步没法上传,之前都对。。
yong652077 + 1 楼主威武—我就想问问挖掘机技术哪家强?
q1221766 + 1 楼主威武—我就想问问挖掘机技术哪家强?
ricardo + 1 泥马,真给力,我要顶!
波鲁克 + 3 看样子山寨无处不在,明天俺也开始山寨!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2014-6-12 20:01 | 显示全部楼层
0522 发表于 2014-6-12 19:58
不错。不知道LZ那个外置EPROM啥意思?

小米路由是16M spi flash+sata硬盘的模式,目前第三方固件只能存在spi flash里面,刷挂了方便用编程器就活

点评

厉害  发表于 2014-7-23 08:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-12 20:27 | 显示全部楼层
yylwhy 发表于 2014-6-12 20:25
我看图上 DD 能显示温度?难道小米路由器有传感器吗?

BCM芯片支持的功能
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-12 21:37 | 显示全部楼层
xiaoguo 发表于 2014-6-12 21:09
很吊的样子。。。。路由是好路由,就是那外接FLASH焊的实在是……

没有办法,已经去取下多次了,残留了许多松香,还要继续折腾,所以这样飞线

点评

小米R1D路由器刷完 tomato后怎样才能无线中继 我想把WiFi信号转成有线给台式电脑用,刷完后不会设置,网上教程又太少,麻烦能帮下忙吗?  详情 回复 发表于 2016-5-10 17:14
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-14 09:19 | 显示全部楼层
本帖最后由 黄鹤楼 于 2014-6-14 09:28 编辑
fkpwolf 发表于 2014-6-14 08:42
刷挂了,LZ赶紧来救啊

这个很奇怪,和LZ的不一样,我要用tftpd界面才能上传固件,你那个程序一直失败。 ...

路由通电时不停的按Ctrl+c,进入cfe控制台,在cfe控制台输入nvran erase 然后进去192.168.1.1进行刷机,祝你成功

点评

这个是到web的刷机界面么? 还有nvran erase是做啥用途的? 想问清楚下,因为这大概是最后一搏了,LZ莫怪  详情 回复 发表于 2014-6-14 09:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-14 09:24 | 显示全部楼层
是的路由的mini刷机页面,纠正一下,是nvram erase

点评

一样,点upload后。http://192.168.1.1/cgi-bin/f2.htm 网页无法显示  详情 回复 发表于 2014-6-14 09:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-14 09:48 | 显示全部楼层
本帖最后由 黄鹤楼 于 2014-6-14 10:00 编辑

刷机包里面的三个固件都测试了吗?点了升级后网卡指示灯是否狂闪,最好使用ie浏览器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-16 20:34 | 显示全部楼层
fkpwolf 发表于 2014-6-15 10:11
反复试了几下,发现其实前面我的刷机方式(tftp, vmlinuz)并没有刷机,只是从tftp网络启动而已。但是之后 ...

难道是因为小米路由硬件版本的问题导致刷机不成的?不知你的tftp 上传成功没有,能否提供一个TFTP全过程的TTL信息
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-16 20:44 | 显示全部楼层
本帖最后由 黄鹤楼 于 2014-6-16 21:08 编辑
fkpwolf 发表于 2014-6-14 09:40
一样,点upload后。http://192.168.1.1/cgi-bin/f2.htm 网页无法显示

你的TTL启动信息里面有
  1. Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
复制代码


这行定义,我的小米路由第一次刷机也是利用的这行定义

通过这行定义的刷机方法
1.使用有线连接设备的LAN口,并将电脑IP改为192.168.1.2,子网掩码255.255.255.0
2. 将固件重命名为vmlinuz与tftpd32.exe放在同一个文件夹下,与  运行tftpd32.exe,并确保软件已经加载自己的IP
3.路由器重新启动会自动刷机


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-17 08:37 | 显示全部楼层
fkpwolf 发表于 2014-6-16 22:41
看不到无线SSID,难道是我吧nvram清空的原因?

DD我暂时没有研究,目前正在着力搞定海蜘蛛的固件
你看一下TTL信息里面,会出现eth1和eth2报错,是因为R7000和小米的硬件定义不一致导致的,所以无线没有启动,需要自己改nvram
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-17 08:41 | 显示全部楼层
海蜘蛛固件,清空nvram之后,手中加入如下代码,无线就可以跑起来,但是2.4G与5G是反的,正在调试


  1. 无线驱动识别关键代码
  2. 原始代码
  3. nvram set sromrev=11
  4. nvram set pci/2/1/pcieingress_war=15
  5. nvram set pci/1/1/pcieingress_war=15
  6. nvram set pci/2/1/devid=0x43a9
  7. nvram set pci/1/1/devid=0x43b3
  8. nvram set pci/1/1/sromrev=11
  9. nvram set pci/2/1/sromrev=8


  10. nvram set pci/1/1/mcsbw805glpo=0xaa842222
  11. nvram set pci/1/1/sb20in80and160lr5gmpo=0
  12. nvram set pci/1/1/aa5g=7
  13. nvram set pci/1/1/sar5g=15
  14. nvram set pci/1/1/mcsbw805ghpo=0x85542000
  15. nvram set pci/1/1/rawtempsense=0x1ff
  16. nvram set pci/1/1/mcsbw1605gmpo=0
  17. nvram set pci/1/1/tworangetssi5g=0
  18. nvram set pci/1/1/sb20in40lrpo=0
  19. nvram set pci/1/1/sb40and80lr5gmpo=0
  20. nvram set pci/1/1/mcsbw405glpo=0xa8842222
  21. nvram set pci/1/1/rxgains5ghelnagaina0=2
  22. nvram set pci/1/1/rxgains5ghelnagaina1=2
  23. nvram set pci/1/1/rxgains5ghelnagaina2=3
  24. nvram set pci/1/1/gainctrlsph=0
  25. nvram set pci/1/1/papdcap5g=0
  26. nvram set pci/1/1/sb20in80and160hr5gmpo=0
  27. nvram set pci/1/1/mcsbw405ghpo=0x85542000
  28. nvram set pci/1/1/tempcorrx=0x3f
  29. nvram set pci/1/1/tssiposslope5g=1
  30. nvram set pci/1/1/mcslr5gmpo=0
  31. nvram set pci/1/1/rxchain=7
  32. nvram set pci/1/1/sb40and80hr5gmpo=0
  33. nvram set pci/1/1/maxp5ga0=0x5E,0x5E,0x5E,0x5E
  34. nvram set pci/1/1/maxp5ga1=0x5E,0x5E,0x5E,0x5E
  35. nvram set pci/1/1/maxp5ga2=0x5E,0x5E,0x5E,0x5E
  36. nvram set pci/1/1/sb20in80and160lr5glpo=0
  37. nvram set pci/1/1/pa5ga0=0xFF90,0x1E37,0xFCB8,0xFF38,0x189B,0xFD00,0xff33,0x1a66,0xfcc4,0xFF2F,0x1748,0xFD21
  38. nvram set pci/1/1/pa5ga1=0xFF1B,0x18A2,0xFCB6,0xFF34,0x183F,0xFD12,0xff37,0x1aa1,0xfcc0,0xFF2F,0x1889,0xFCFB
  39. nvram set pci/1/1/boardflags=0x30000000
  40. nvram set pci/1/1/pa5ga2=0xff1d,0x1653,0xfd33,0xff38,0x1a2a,0xfcce,0xff35,0x1a93,0xfcc1,0xff3a,0x1abd,0xfcc0
  41. nvram set pci/1/1/tempoffset=255
  42. nvram set pci/1/1/mcsbw1605glpo=0
  43. nvram set pci/1/1/sb20in80and160lr5ghpo=0
  44. nvram set pci/1/1/boardvendor=0x14e4
  45. nvram set pci/1/1/mcsbw1605ghpo=0
  46. nvram set pci/1/1/sb40and80lr5glpo=0
  47. nvram set pci/1/1/subband5gver=0x4
  48. nvram set pci/1/1/measpower=0x7f
  49. nvram set pci/1/1/dot11agduplrpo=0
  50. nvram set pci/1/1/sb40and80lr5ghpo=0
  51. nvram set pci/1/1/venid=0x14e4
  52. nvram set pci/1/1/sb20in80and160hr5glpo=0
  53. nvram set pci/1/1/sb20in40hrpo=0
  54. nvram set pci/1/1/mcsbw205gmpo=0x88642222
  55. nvram set pci/1/1/mcslr5glpo=0
  56. nvram set pci/1/1/sb20in80and160hr5ghpo=0
  57. nvram set pci/1/1/tempsense_slope=0xff
  58. nvram set pci/1/1/rxgains5gmtrelnabypa0=1
  59. nvram set pci/1/1/rxgains5gmtrelnabypa1=1
  60. nvram set pci/1/1/rxgains5gmtrelnabypa2=1
  61. nvram set pci/1/1/epagain5g=0
  62. nvram set pci/1/1/sb40and80hr5glpo=0
  63. nvram set pci/1/1/mcslr5ghpo=0
  64. nvram set pci/1/1/rxgains5ghtrelnabypa0=1
  65. nvram set pci/1/1/rxgains5ghtrelnabypa1=1
  66. nvram set pci/1/1/rxgains5ghtrelnabypa2=1
  67. nvram set pci/1/1/boardflags2=0x300002
  68. nvram set pci/1/1/sb40and80hr5ghpo=0
  69. nvram set pci/1/1/boardflags3=0x0
  70. nvram set pci/1/1/aga0=01
  71. nvram set pci/1/1/aga1=01
  72. nvram set pci/1/1/aga2=133
  73. nvram set pci/1/1/measpower1=0x7f
  74. nvram set pci/1/1/measpower2=0x7f
  75. nvram set pci/1/1/rxgains5gtrelnabypa0=1
  76. nvram set pci/1/1/rxgains5gtrelnabypa1=1
  77. nvram set pci/1/1/rxgains5gtrelnabypa2=1
  78. nvram set pci/1/1/txchain=7
  79. nvram set pci/1/1/pdgain5g=4
  80. nvram set pci/1/1/antswitch=0
  81. nvram set pci/1/1/temps_hysteresis=15
  82. nvram set pci/1/1/mcsbw205glpo=0x88642222
  83. nvram set pci/1/1/temps_period=15
  84. nvram set pci/1/1/dot11agduphrpo=0
  85. nvram set pci/1/1/pdoffset80ma0=0
  86. nvram set pci/1/1/mcsbw805gmpo=0xaa842222
  87. nvram set pci/1/1/pdoffset80ma1=0
  88. nvram set pci/1/1/pdoffset80ma2=0
  89. nvram set pci/1/1/mcsbw205ghpo=0x55540000
  90. nvram set pci/1/1/rxgains5gmtrisoa0=5
  91. nvram set pci/1/1/rxgains5gmtrisoa1=4
  92. nvram set pci/1/1/rxgains5gmtrisoa2=4
  93. nvram set pci/1/1/phycal_tempdelta=255
  94. nvram set pci/1/1/xtalfreq=0x40000
  95. nvram set pci/1/1/rxgains5gelnagaina0=1
  96. nvram set pci/1/1/rxgains5gelnagaina1=1
  97. nvram set pci/1/1/rxgains5gelnagaina2=1
  98. nvram set pci/1/1/femctrl=3
  99. nvram set pci/1/1/ccode=CN
  100. nvram set pci/1/1/rxgains5gtrisoa0=7
  101. nvram set pci/1/1/rxgains5gtrisoa1=6
  102. nvram set pci/1/1/pdoffset40ma0=0x1111
  103. nvram set pci/1/1/rxgains5gtrisoa2=5
  104. nvram set pci/1/1/pdoffset40ma1=0x1111
  105. nvram set pci/1/1/pdoffset40ma2=0x1111
  106. nvram set pci/1/1/mcsbw405gmpo=0xa8842222
  107. nvram set pci/1/1/rxgains5ghtrisoa0=5
  108. nvram set pci/1/1/rxgains5ghtrisoa1=4
  109. nvram set pci/1/1/rxgains5ghtrisoa2=4
  110. nvram set pci/1/1/regrev=35
  111. nvram set pci/1/1/tempsense_option=0x3
  112. nvram set pci/1/1/tempthresh=255
  113. nvram set pci/1/1/macaddr=10:48:b1:38:c8:b7
  114. nvram set pci/1/1/rxgains5gmelnagaina0=2
  115. nvram set pci/1/1/rxgains5gmelnagaina1=2
  116. nvram set pci/1/1/rxgains5gmelnagaina2=3




  117. nvram set pci/2/1/mcs2gpo0=0x8888
  118. nvram set pci/2/1/mcs2gpo1=0x8888
  119. nvram set pci/2/1/mcs2gpo2=0x8888
  120. nvram set pci/2/1/leddc=65535
  121. nvram set pci/2/1/mcs2gpo3=0xddb8
  122. nvram set pci/2/1/mcs2gpo4=0x8888
  123. nvram set pci/2/1/mcs2gpo5=0xa988
  124. nvram set pci/2/1/bwduppo=0
  125. nvram set pci/2/1/txchain=3
  126. nvram set pci/2/1/stbcpo=0
  127. nvram set pci/2/1/mcs2gpo6=0x8888
  128. nvram set pci/2/1/mcs2gpo7=0xddc8
  129. nvram set pci/2/1/phycal_tempdelta=0
  130. nvram set pci/2/1/rssismf2g=0
  131. nvram set pci/2/1/ccode=CN
  132. nvram set pci/2/1/boardflags=0x80001000
  133. nvram set pci/2/1/tempoffset=0
  134. nvram set pci/2/1/pa2gw2a0=0xf95d
  135. nvram set pci/2/1/pa2gw2a1=0xf94f
  136. nvram set pci/2/1/tempsense_option=0x0
  137. nvram set pci/2/1/tempcorrx=0x0
  138. nvram set pci/2/1/pdetrange2g=3
  139. nvram set pci/2/1/macaddr=10:48:b1:bb:e9:2d
  140. nvram set pci/2/1/cck2gpo=0x8880
  141. nvram set pci/2/1/cddpo=0
  142. nvram set pci/2/1/pa2gw1a0=0x1c37
  143. nvram set pci/2/1/pa2gw1a1=0x1c5c
  144. nvram set pci/2/1/measpower1=0x0
  145. nvram set pci/2/1/measpower2=0x0
  146. nvram set pci/2/1/bw40po=0
  147. nvram set pci/2/1/temps_period=0
  148. nvram set pci/2/1/antswctl2g=0
  149. nvram set pci/2/1/measpower=0x0
  150. nvram set pci/2/1/opo=68
  151. nvram set pci/2/1/bxa2g=0
  152. nvram set pci/2/1/freqoffset_corr=0x0
  153. nvram set pci/2/1/ledbh0=255
  154. nvram set pci/2/1/ledbh1=255
  155. nvram set pci/2/1/ledbh2=255
  156. nvram set pci/2/1/rxchain=3
  157. nvram set pci/2/1/ledbh3=131
  158. nvram set pci/2/1/tssipos2g=1
  159. nvram set pci/2/1/hw_iqcal_en=0x0
  160. nvram set pci/2/1/rxpo2g=0
  161. nvram set pci/2/1/pa2gw0a0=0xfe77
  162. nvram set pci/2/1/pa2gw0a1=0xfe76
  163. nvram set pci/2/1/elna2g=2
  164. nvram set pci/2/1/tempsense_slope=0x0
  165. nvram set pci/2/1/antswitch=0
  166. nvram set pci/2/1/rawtempsense=0x0
  167. nvram set pci/2/1/tempthresh=120
  168. nvram set pci/2/1/extpagain2g=3
  169. nvram set pci/2/1/triso2g=4
  170. nvram set pci/2/1/rssismc2g=0
  171. nvram set pci/2/1/itt2ga1=32
  172. nvram set pci/2/1/boardrev=0x1301
  173. nvram set pci/2/1/aa2g=3
  174. nvram set pci/2/1/ag0=2
  175. nvram set pci/2/1/rssisav2g=0
  176. nvram set pci/2/1/ag1=2
  177. nvram set pci/2/1/iqcal_swp_dis=0x0
  178. nvram set pci/2/1/maxp2ga0=0x2072
  179. nvram set pci/2/1/maxp2ga1=0x2072
  180. nvram set pci/2/1/boardflags2=0x0800
  181. nvram set pci/2/1/regrev=28
  182. nvram set pci/2/1/temps_hysteresis=0
  183. nvram set pci/2/1/ofdm2gpo=0xaa888888
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-6-17 11:42 | 显示全部楼层
fkpwolf 发表于 2014-6-17 10:40
谢谢。我看了下kernel version,

这个是DD-WRT官方内核么,LZ是直接修改了R7000的固件?有没有办法自己 ...

目前没有编译DD-WRT,固件是在DD网站上下载的

点评

楼主,刷了你打包的DD-WRT固件,却收不到无线信号,难道是固件里无线驱动不对?  详情 回复 发表于 2014-6-27 23:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-18 20:48

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表