Guest User

WNDR3700v5 OpenWRT flash process

a guest
Apr 17th, 2015
686
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [upgrade_flash.c::read_to_file():162] enter , CONTENT_LENGTH = <1224268>
  2. [upgrade_flash.c::read_to_file():168] Read first buffer size = <8192>
  3. [upgrade_flash.c::read_to_file():193] boundary is <-----------------------------220742251031145>
  4. [upgrade_flash.c::read_to_file():233] length is <1224092> len is <1024>
  5. [upgrade_flash.c::read_to_file():242] image length is <1223843>
  6. [libupgrade.c::check_checksum():101] checksum of /tmp/fw.img is <0x00>
  7. Checksum check pass!
  8. PID check pass!
  9. [libupgrade.c::is_downgrade():53] New Version: 1.1.3.37 Current Version: 1.0.0.17
  10. Is NOT downgrade!
  11. [upgrade_flash.c::upgrade_main():316] close fd 0/1/2!!!
  12. [upgrade_flash.c::upgrade_main():325] re-open fd 0/1/2!!!
  13. killall: multi_pb_app: no process killed
  14. [rc debug]/usr/bin/rc upnp stop
  15. [rc.c::rc_action():803] rc_action before add upnp - stop
  16. rc action <upnp @ stop> before file_lock.
  17. rc action <upnp @ stop lock = 5> after file_lock.
  18. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
  19. rc action < unlock = 5> after file_lock.
  20. [rc.c::rc_action():811] rc_action after add upnp - stop
  21. unlink running file </var/run/rc.upnp.run>
  22. [rc.c::rc_action():803] rc_action before add upnp - stop
  23. rc action <upnp @ stop> before file_lock.
  24. rc action <upnp @ stop lock = 5> after file_lock.
  25. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
  26. rc action < unlock = 5> after file_lock.
  27. [rc.c::rc_action():811] rc_action after add upnp - stop
  28. unlink running file </var/run/rc.upnp.run>
  29. [rc.c::rc_action():803] rc_action before add upnp - stop
  30. rc action <upnp @ stop> before file_lock.
  31. rc action <upnp @ stop lock = 5> after file_lock.
  32. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
  33. rc action < unlock = 5> after file_lock.
  34. [rc.c::rc_action():811] rc_action after add upnp - stop
  35. [rc.c::rc_stop():745] Calling Stop function of upnp
  36. [SYSTEM]/usr/bin/killall miniupnpd
  37. unlink running file </var/run/rc.upnp.run>
  38. [rc debug]/usr/bin/rc fbwifi stop
  39. [rc.c::rc_action():803] rc_action before add fbwifi - stop
  40. rc action <fbwifi @ stop> before file_lock.
  41. rc action <fbwifi @ stop lock = 5> after file_lock.
  42. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.fbwifi.run
  43. rc action < unlock = 5> after file_lock.
  44. [rc.c::rc_action():811] rc_action after add fbwifi - stop
  45. unlink running file </var/run/rc.fbwifi.run>
  46. [rc.c::rc_action():803] rc_action before add fbwifi - stop
  47. rc action <fbwifi @ stop> before file_lock.
  48. rc action <fbwifi @ stop lock = 5> after file_lock.
  49. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.fbwifi.run
  50. rc action < unlock = 5> after file_lock.
  51. [rc.c::rc_action():811] rc_action after add fbwifi - stop
  52. [rc.c::rc_stop():745] Calling Stop function of fbwifi
  53. [SYSTEM]killall -9 fbwifi
  54. [SYSTEM]/usr/sbin/iptables -t filter -D HTTP -i br0 -j CLIENT_TO_INTERNET
  55. [SYSTEM]/usr/sbin/iptables -t filter -F CLIENT_TO_INTERNET
  56. [SYSTEM]/usr/sbin/iptables -t filter -X CLIENT_TO_INTERNET
  57. [SYSTEM]/usr/sbin/iptables -t mangle -D PREROUTING -i br0 -j CLIENT_TO_INTERNET
  58. [SYSTEM]/usr/sbin/iptables -t mangle -D POSTROUTING -o br0 -j INTERNET_TO_CLIENT
  59. [SYSTEM]/usr/sbin/iptables -t mangle -F CLIENT_TO_INTERNET
  60. [SYSTEM]/usr/sbin/iptables -t mangle -X CLIENT_TO_INTERNET
  61. [SYSTEM]/usr/sbin/iptables -t mangle -F INTERNET_TO_CLIENT
  62. [SYSTEM]/usr/sbin/iptables -t mangle -X INTERNET_TO_CLIENT
  63. [SYSTEM]/bin/rmmod ipt_fbwifi_mark
  64. [SYSTEM]/bin/rmmod ipt_fbwifi_redirect
  65. [SYSTEM]/bin/echo fb_port=0 > /proc/wifi_isolation
  66. unlink running file </var/run/rc.fbwifi.run>
  67. [rc debug]/usr/sbin/rc wan stop
  68. [SYSTEM]/usr/bin/killall netgear_ntp
  69. [SYSTEM]/usr/bin/killall -SIGUSR2 miniupnpd
  70. [SYSTEM]/bin/echo 0 > /proc/sys/net/ipv4/conf/br0/forwarding
  71. [SYSTEM]/usr/sbin/iptables -t nat -F POSTROUTING
  72. [SYSTEM]/usr/sbin/iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE
  73. [SYSTEM]/bin/echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
  74. [SYSTEM]/usr/sbin/iptables -D PRE_BASIC -t nat -i eth3 -d ! (null) -j DROP
  75. [SYSTEM]/bin/echo "#!/bin/sh" > /etc/ppp/ip-down
  76. [SYSTEM]/usr/bin/killall pppd
  77. [SYSTEM]/usr/bin/killall openl2tpd
  78. [SYSTEM]/usr/bin/killall udhcpc
  79. [dhcpc.c::release_requested():161] Received SIGUSR2, state=0,sig=0
  80. [SYSTEM]/usr/bin/killall pppoe-relay
  81. [dhcpc.c::terminate():206] Received SIGTERM
  82. [SYSTEM]/sbin/ifconfig eth3 0.0.0.0 >/dev/null 2>&1
  83. [rc debug]/usr/sbin/rc ripd stop
  84. [rc.c::rc_action():803] rc_action before add ripd - stop
  85. rc action <ripd @ stop> before file_lock.
  86. rc action <ripd @ stop lock = 5> after file_lock.
  87. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.ripd.run
  88. rc action < unlock = 5> after file_lock.
  89. [rc.c::rc_action():811] rc_action after add ripd - stop
  90. [rc.c::rc_stop():745] Calling Stop function of ripd
  91. unlink running file </var/run/rc.ripd.run>
  92. [rc debug]/usr/sbin/rc vpn stop
  93. [rc.c::rc_action():803] rc_action before add vpn - stop
  94. rc action <vpn @ stop> before file_lock.
  95. rc action <vpn @ stop lock = 5> after file_lock.
  96. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.vpn.run
  97. rc action < unlock = 5> after file_lock.
  98. [rc.c::rc_action():811] rc_action after add vpn - stop
  99. unlink running file </var/run/rc.vpn.run>
  100. [rc.c::rc_action():803] rc_action before add vpn - stop
  101. rc action <vpn @ stop> before file_lock.
  102. rc action <vpn @ stop lock = 5> after file_lock.
  103. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.vpn.run
  104. rc action < unlock = 5> after file_lock.
  105. [rc.c::rc_action():811] rc_action after add vpn - stop
  106. unlink running file </var/run/rc.vpn.run>
  107. [rc.c::rc_action():803] rc_action before add vpn - stop
  108. rc action <vpn @ stop> before file_lock.
  109. rc action <vpn @ stop lock = 5> after file_lock.
  110. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.vpn.run
  111. rc action < unlock = 5> after file_lock.
  112. [rc.c::rc_action():811] rc_action after add vpn - stop
  113. unlink running file </var/run/rc.vpn.run>
  114. [rc debug]/usr/sbin/rc sd umount
  115. do unplug
  116. [SYSTEM]/etc/mtk/mt7621_smp.sh wifi
  117. [SYSTEM]/bin/rm /etc/samba/secrets.tdb
  118. rm: cannot remove '/etc/samba/secrets.tdb': No such file or directory
  119. [SYSTEM]/usr/bin/killall -9 smbd >/dev/null 2>&1
  120. [SYSTEM]/usr/bin/killall -9 nmbd >/dev/null 2>&1
  121. [SYSTEM]/usr/bin/killall -9 bftpd >/dev/null 2>&1
  122. [SYSTEM]/usr/sbin/killall -9 hd-idle
  123. killall: hd-idle: no process killed
  124. [SYSTEM]/usr/bin/killall -9 bftpd >/dev/null 2>&1
  125. [SYSTEM]/usr/sbin/killall -9 hd-idle
  126. killall: hd-idle: no process killed
  127. [rc debug]/usr/sbin/rc usb_service stop
  128. ap_name=usb_service action=stop
  129. [rc.c::rc_action():803] rc_action before add usb_service - stop
  130. rc action <usb_service @ stop> before file_lock.
  131. rc action <usb_service @ stop lock = 5> after file_lock.
  132. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.usb_service.run
  133. rc action < unlock = 5> after file_lock.
  134. [rc.c::rc_action():811] rc_action after add usb_service - stop
  135. unlink running file </var/run/rc.usb_service.run>
  136. [rc.c::rc_action():803] rc_action before add usb_service - stop
  137. rc action <usb_service @ stop> before file_lock.
  138. rc action <usb_service @ stop lock = 5> after file_lock.
  139. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.usb_service.run
  140. rc action < unlock = 5> after file_lock.
  141. [rc.c::rc_action():811] rc_action after add usb_service - stop
  142. unlink running file </var/run/rc.usb_service.run>
  143. can't find this application
  144. [rc.c::rc_action():803] rc_action before add usb_service - stop
  145. rc action <usb_service @ stop> before file_lock.
  146. rc action <usb_service @ stop lock = 5> after file_lock.
  147. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.usb_service.run
  148. rc action < unlock = 5> after file_lock.
  149. [rc.c::rc_action():811] rc_action after add usb_service - stop
  150. [rc.c::rc_stop():745] Calling Stop function of usb_service
  151. [SYSTEM]/etc/mtk/mt7621_smp.sh wifi
  152. [SYSTEM]/bin/rm /etc/samba/secrets.tdb
  153. rm: cannot remove '/etc/samba/secrets.tdb': No such file or directory
  154. [SYSTEM]/usr/bin/killall -9 smbd >/dev/null 2>&1
  155. [SYSTEM]/usr/bin/killall -9 nmbd >/dev/null 2>&1
  156. [SYSTEM]/usr/bin/killall -9 bftpd >/dev/null 2>&1
  157. [SYSTEM]/usr/sbin/killall -9 hd-idle
  158. killall: hd-idle: no process killed
  159. unlink running file </var/run/rc.usb_service.run>
  160. [rc debug]/usr/sbin/rc potcounter stop
  161. [rc.c::rc_action():803] rc_action before add potcounter - stop
  162. rc action <potcounter @ stop> before file_lock.
  163. rc action <potcounter @ stop lock = 5> after file_lock.
  164. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.potcounter.run
  165. rc action < unlock = 5> after file_lock.
  166. [rc.c::rc_action():811] rc_action after add potcounter - stop
  167. [rc.c::rc_stop():745] Calling Stop function of potcounter
  168. unlink running file </var/run/rc.potcounter.run>
  169. [rc debug]/usr/sbin/rc debug_mode stop
  170. [rc.c::rc_action():803] rc_action before add debug_mode - stop
  171. rc action <debug_mode @ stop> before file_lock.
  172. rc action <debug_mode @ stop lock = 5> after file_lock.
  173. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.debug_mode.run
  174. rc action < unlock = 5> after file_lock.
  175. [rc.c::rc_action():811] rc_action after add debug_mode - stop
  176. [rc.c::rc_stop():745] Calling Stop function of debug_mode
  177. unlink running file </var/run/rc.debug_mode.run>
  178. [rc debug]/usr/sbin/rc lltd stop
  179. [rc.c::rc_action():803] rc_action before add lltd - stop
  180. rc action <lltd @ stop> before file_lock.
  181. rc action <lltd @ stop lock = 5> after file_lock.
  182. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.lltd.run
  183. rc action < unlock = 5> after file_lock.
  184. [rc.c::rc_action():811] rc_action after add lltd - stop
  185. [rc.c::rc_stop():745] Calling Stop function of lltd
  186. unlink running file </var/run/rc.lltd.run>
  187. [rc debug]/usr/sbin/rc dnrd stop
  188. [rc.c::rc_action():803] rc_action before add dnrd - stop
  189. rc action <dnrd @ stop> before file_lock.
  190. rc action <dnrd @ stop lock = 5> after file_lock.
  191. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.dnrd.run
  192. rc action < unlock = 5> after file_lock.
  193. [rc.c::rc_action():811] rc_action after add dnrd - stop
  194. [rc.c::rc_stop():745] Calling Stop function of dnrd
  195. [SYSTEM]iptables -t nat -D PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to 192.168.1.1:80
  196. [SYSTEM]iptables -t nat -D PREROUTING -i br0 -p udp --dport 53 -m dnshj -j DNAT --to 192.168.1.1
  197. [SYSTEM]iptables -t nat -D PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1
  198. [SYSTEM]killall -9 dnrd
  199. unlink running file </var/run/rc.dnrd.run>
  200. [rc debug]/usr/sbin/rc dhcpd stop
  201. [rc.c::rc_action():803] rc_action before add dhcpd - stop
  202. rc action <dhcpd @ stop> before file_lock.
  203. rc action <dhcpd @ stop lock = 5> after file_lock.
  204. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.dhcpd.run
  205. rc action < unlock = 5> after file_lock.
  206. [rc.c::rc_action():811] rc_action after add dhcpd - stop
  207. [rc.c::rc_stop():745] Calling Stop function of dhcpd
  208. [dhcpd.c::udhcpd_killed():77] Received SIGTERM
  209. unlink running file </var/run/rc.dhcpd.run>
  210. [rc debug]/usr/sbin/rc syslogd stop
  211. [rc.c::rc_action():803] rc_action before add syslogd - stop
  212. rc action <syslogd @ stop> before file_lock.
  213. rc action <syslogd @ stop lock = 5> after file_lock.
  214. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.syslogd.run
  215. rc action < unlock = 5> after file_lock.
  216. [rc.c::rc_action():811] rc_action after add syslogd - stop
  217. [rc.c::rc_stop():745] Calling Stop function of syslogd
  218. unlink running file </var/run/rc.syslogd.run>
  219. [rc debug]/usr/sbin/rc igmp stop
  220. [rc.c::rc_action():803] rc_action before add igmp - stop
  221. rc action <igmp @ stop> before file_lock.
  222. rc action <igmp @ stop lock = 5> after file_lock.
  223. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.igmp.run
  224. rc action < unlock = 5> after file_lock.
  225. [rc.c::rc_action():811] rc_action after add igmp - stop
  226. unlink running file </var/run/rc.igmp.run>
  227. [rc.c::rc_action():803] rc_action before add igmp - stop
  228. rc action <igmp @ stop> before file_lock.
  229. rc action <igmp @ stop lock = 5> after file_lock.
  230. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.igmp.run
  231. rc action < unlock = 5> after file_lock.
  232. [rc.c::rc_action():811] rc_action after add igmp - stop
  233. unlink running file </var/run/rc.igmp.run>
  234. [rc.c::rc_action():803] rc_action before add igmp - stop
  235. rc action <igmp @ stop> before file_lock.
  236. rc action <igmp @ stop lock = 5> after file_lock.
  237. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.igmp.run
  238. rc action < unlock = 5> after file_lock.
  239. [rc.c::rc_action():811] rc_action after add igmp - stop
  240. [rc.c::rc_stop():745] Calling Stop function of igmp
  241. [SYSTEM]/bin/echo igmp_snooping 0 > /proc/sw_ar8327
  242. [SYSTEM]/bin/echo ssdp_flooding 0 > /proc/sw_ar8327
  243. [SYSTEM]/bin/echo write.g 0x060c 0x8000 0x0001 > /proc/sw_ar8327
  244. unlink running file </var/run/rc.igmp.run>
  245. [rc debug]/usr/sbin/rc wlan stop
  246. [rc.c::rc_action():803] rc_action before add wlan - stop
  247. rc action <wlan @ stop> before file_lock.
  248. rc action <wlan @ stop lock = 5> after file_lock.
  249. [SYSTEM]/bin/cp /proc/uptime /var/run/rc.wlan.run
  250. rc action < unlock = 5> after file_lock.
  251. [rc.c::rc_action():811] rc_action after add wlan - stop
  252. [rc.c::rc_stop():745] Calling Stop function of wlan
  253. [SYSTEM]/usr/bin/killall rt2860apd
  254. [SYSTEM]/usr/bin/killall rtinicapd
  255. [SYSTEM]/sbin/ifconfig wds0 down
  256. [SYSTEM]/sbin/brctl delif br0 wds0
  257. [SYSTEM]/sbin/ifconfig wdsi0 down
  258. [SYSTEM]/sbin/brctl delif br0 wdsi0
  259. [SYSTEM]/sbin/ifconfig wds1 down
  260. [SYSTEM]/sbin/brctl delif br0 wds1
  261. [SYSTEM]/sbin/ifconfig wdsi1 down
  262. [SYSTEM]/sbin/brctl delif br0 wdsi1
  263. [SYSTEM]/sbin/ifconfig wds2 down
  264. [SYSTEM]/sbin/brctl delif br0 wds2
  265. [SYSTEM]/sbin/ifconfig wdsi2 down
  266. [SYSTEM]/sbin/brctl delif br0 wdsi2
  267. [SYSTEM]/sbin/ifconfig wds3 down
  268. [SYSTEM]/sbin/brctl delif br0 wds3
  269. [SYSTEM]/sbin/ifconfig wdsi3 down
  270. [SYSTEM]/sbin/brctl delif br0 wdsi3
  271. [SYSTEM]/sbin/ifconfig ra1 down
  272. [SYSTEM]/sbin/ifconfig rai1 down
  273. [SYSTEM]/sbin/ifconfig ra2 down
  274. [SYSTEM]/sbin/ifconfig rai2 down
  275. [SYSTEM]/sbin/ifconfig ra3 down
  276. [SYSTEM]/sbin/ifconfig rai3 down
  277. [SYSTEM]/sbin/ifconfig ra0 down
  278. [SYSTEM]/sbin/iwpriv rai0 set RadioOn=1
  279. [SYSTEM]/sbin/ifconfig rai0 down
  280. Can't find DB for id==41
  281. Can't find DB for id==42
  282. unlink running file </var/run/rc.wlan.run>
  283. [rc debug]/usr/sbin/rc wan stop
  284. [SYSTEM]/usr/bin/killall netgear_ntp
  285. [SYSTEM]/usr/bin/killall -SIGUSR2 miniupnpd
  286. [SYSTEM]/bin/echo 0 > /proc/sys/net/ipv4/conf/br0/forwarding
  287. [SYSTEM]/usr/sbin/iptables -t nat -F POSTROUTING
  288. [SYSTEM]/usr/sbin/iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE
  289. [SYSTEM]/bin/echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
  290. [SYSTEM]/usr/sbin/iptables -D PRE_BASIC -t nat -i eth3 -d ! (null) -j DROP
  291. [SYSTEM]/bin/echo "#!/bin/sh" > /etc/ppp/ip-down
  292. [SYSTEM]/usr/bin/killall pppd
  293. [SYSTEM]/usr/bin/killall openl2tpd
  294. [SYSTEM]/usr/bin/killall udhcpc
  295. [SYSTEM]/usr/bin/killall pppoe-relay
  296. [SYSTEM]/sbin/ifconfig eth3 0.0.0.0 >/dev/null 2>&1
  297. NOTIFY
  298. eth3: ===> VirtualIF_close
  299. NOTIFY
  300. NOTIFY
  301. br0: port 1(eth2) entering forwarding state
  302. NOTIFY
  303. total used free shared buffers
  304. Mem: 122812 29856 92956 0 2600
  305. Swap: 0 0 0
  306. Total: 122812 29856 92956
  307. Upgrading module insert successfully.
  308. Upgrading /tmp/fw.img, MTD count is 3
  309. MTD /dev/mtdblock2 offset 0x00050000 size 0x00280000
  310. MTD /dev/mtdblock3 offset 0x002D0000 size 0x00BA0000
  311. MTD /dev/mtdblock4 offset 0x00E70000 size 0x00020000
  312. Prepare to open fd
  313. Open fd sucess
  314. Mark upgrade starting!
  315. write_fw_to_mtd...
  316. unzip<1196>, <43489>
  317. unzip<1200>, <504b0304><504b0304>, <8><8>
  318. Write FLASH: [0x00050000 ==> 0x00057FFF]
  319. Write FLASH: [0x00058000 ==> 0x0005FFFF]
  320. Write FLASH: [0x00060000 ==> 0x00067FFF]
  321. Write FLASH: [0x00068000 ==> 0x0006FFFF]
  322. Write FLASH: [0x00070000 ==> 0x00077FFF]
  323. Write FLASH: [0x00078000 ==> 0x0007FFFF]
  324. Write FLASH: [0x00080000 ==> 0x00087FFF]
  325. Write FLASH: [0x00088000 ==> 0x0008FFFF]
  326. Write FLASH: [0x00090000 ==> 0x00097FFF]
  327. Write FLASH: [0x00098000 ==> 0x0009FFFF]
  328. Write FLASH: [0x000A0000 ==> 0x000A7FFF]
  329. Write FLASH: [0x000A8000 ==> 0x000AFFFF]
  330. Write FLASH: [0x000B0000 ==> 0x000B7FFF]
  331. Write FLASH: [0x000B8000 ==> 0x000BFFFF]
  332. Write FLASH: [0x000C0000 ==> 0x000C7FFF]
  333. Write FLASH: [0x000C8000 ==> 0x000CFFFF]
  334. Write FLASH: [0x000D0000 ==> 0x000D7FFF]
  335. Write FLASH: [0x000D8000 ==> 0x000DFFFF]
  336. Write FLASH: [0x000E0000 ==> 0x000E7FFF]
  337. Write FLASH: [0x000E8000 ==> 0x000EFFFF]
  338. Write FLASH: [0x000F0000 ==> 0x000F7FFF]
  339. Write FLASH: [0x000F8000 ==> 0x000FFFFF]
  340. Write FLASH: [0x00100000 ==> 0x00107FFF]
  341. Write FLASH: [0x00108000 ==> 0x0010FFFF]
  342. Write FLASH: [0x00110000 ==> 0x00117FFF]
  343. Write FLASH: [0x00118000 ==> 0x0011FFFF]
  344. Write FLASH: [0x00120000 ==> 0x00127FFF]
  345. Write FLASH: [0x00128000 ==> 0x0012FFFF]
  346. Write FLASH: [0x00130000 ==> 0x00137FFF]
  347. Write FLASH: [0x00138000 ==> 0x0013FFFF]
  348. Write FLASH: [0x00140000 ==> 0x00147FFF]
  349. Write FLASH: [0x00148000 ==> 0x0014FFFF]
  350. Write FLASH: [0x00150000 ==> 0x00157FFF]
  351. Write FLASH: [0x00158000 ==> 0x0015FFFF]
  352. Write FLASH: [0x00160000 ==> 0x00167FFF]
  353. Write FLASH: [0x00168000 ==> 0x0016FFFF]
  354. Write FLASH: [0x00170000 ==> 0x00177FFF]
  355. Write FLASH: [0x00178000 ==> 0x0017FFFF]
  356. Write FLASH: [0x00180000 ==> 0x00187FFF]
  357. Write FLASH: [0x00188000 ==> 0x0018FFFF]
  358. Write FLASH: [0x00190000 ==> 0x00197FFF]
  359. Write FLASH: [0x00198000 ==> 0x0019FFFF]
  360. Write FLASH: [0x001A0000 ==> 0x001A7FFF]
  361. Write FLASH: [0x001A8000 ==> 0x001AFFFF]
  362. Write FLASH: [0x001B0000 ==> 0x001B7FFF]
  363. Write FLASH: [0x001B8000 ==> 0x001BFFFF]
  364. Write FLASH: [0x001C0000 ==> 0x001C7FFF]
  365. Write FLASH: [0x001C8000 ==> 0x001CFFFF]
  366. Write FLASH: [0x001D0000 ==> 0x001D7FFF]
  367. Write FLASH: [0x001D8000 ==> 0x001DFFFF]
  368. Write FLASH: [0x001E0000 ==> 0x001E7FFF]
  369. Write FLASH: [0x001E8000 ==> 0x001EFFFF]
  370. Write FLASH: [0x001F0000 ==> 0x001F7FFF]
  371. Write FLASH: [0x001F8000 ==> 0x001FFFFF]
  372. Write FLASH: [0x00200000 ==> 0x00207FFF]
  373. Write FLASH: [0x00208000 ==> 0x0020FFFF]
  374. inflate wp=80
  375. Write FLASH: [0x00210000 ==> 0x0021004F]
  376. total write 0x00210050 Bytes ( 2.0 MB ).
  377. Upgrade fw sucess, prepare close fd
  378. Mark upgrade finished!
  379. Call reboot function
  380.  
  381. ===================================================================
  382. MT7621 stage1 code 13:14:00 (ASIC)
  383. CPU=50000000 HZ BUS=16666666 HZ
  384. ==================================================================
  385. Change MPLL source from XTAL to CR...
  386. do MEMPLL setting..
  387. MEMPLL Config : 0x11100000
  388. 3PLL mode + External loopback
  389. === XTAL-40Mhz === DDR-1200Mhz ===
  390. PLL4 FB_DL: 0x10, 1/0 = 746/278 41000000
  391. PLL2 FB_DL: 0x16, 1/0 = 592/432 59000000
  392. PLL3 FB_DL: 0x16, 1/0 = 753/271 59000000
  393. do DDR setting..[00320000]
  394. Apply DDR3 Setting...(use customer AC)
  395. 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120
  396. --------------------------------------------------------------------------------
  397. 0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  398. 0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  399. 0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  400. 0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  401. 0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  402. 0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  403. 0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  404. 0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  405. 0008:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  406. 0009:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  407. 000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  408. 000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  409. 000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  410. 000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
  411. 000E:| 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1
  412. 000F:| 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0
  413. 0010:| 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
  414. 0011:| 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
  415. 0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  416. 0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  417. 0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  418. 0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  419. 0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  420. 0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  421. 0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  422. 0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  423. 001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  424. 001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  425. 001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  426. 001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  427. 001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  428. 001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  429. rank 0 coarse = 15
  430. rank 0 fine = 72
  431. B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
  432. opt_dle value:9
  433. DRAMC_R0DELDLY[018]=00001E1F
  434. ==================================================================
  435. RX DQS perbit delay software calibration
  436. ==================================================================
  437. 1.0-15 bit dq delay value
  438. ==================================================================
  439. bit| 0 1 2 3 4 5 6 7 8 9
  440. --------------------------------------
  441. 0 | 13 9 13 13 13 11 14 9 6 10
  442. 10 | 8 12 10 14 8 13
  443. --------------------------------------
  444.  
  445. ==================================================================
  446. 2.dqs window
  447. x=pass dqs delay value (min~max)center
  448. y=0-7bit DQ of every group
  449. input delay:DQS0 =31 DQS1 = 30
  450. ==================================================================
  451. bit DQS0 bit DQS1
  452. 0 (1~60)30 8 (2~56)29
  453. 1 (1~57)29 9 (1~56)28
  454. 2 (1~58)29 10 (1~58)29
  455. 3 (2~58)30 11 (1~55)28
  456. 4 (0~58)29 12 (1~58)29
  457. 5 (2~61)31 13 (1~58)29
  458. 6 (1~59)30 14 (1~60)30
  459. 7 (1~61)31 15 (1~59)30
  460. ==================================================================
  461. 3.dq delay value last
  462. ==================================================================
  463. bit| 0 1 2 3 4 5 6 7 8 9
  464. --------------------------------------
  465. 0 | 14 11 15 14 15 11 15 9 7 12
  466. 10 | 9 14 11 15 8 13
  467. ==================================================================
  468. ==================================================================
  469. TX perbyte calibration
  470. ==================================================================
  471. DQS loop = 15, cmp_err_1 = ffff0800
  472. dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
  473. DQS loop = 14, cmp_err_1 = ffff0000
  474. dqs_perbyte_dly.last_dqsdly_pass[1]=14, finish count=2
  475. DQ loop=15, cmp_err_1 = ffff01aa
  476. DQ loop=14, cmp_err_1 = ffff0180
  477. DQ loop=13, cmp_err_1 = ffff0000
  478. dqs_perbyte_dly.last_dqdly_pass[0]=13, finish count=1
  479. dqs_perbyte_dly.last_dqdly_pass[1]=13, finish count=2
  480. byte:0, (DQS,DQ)=(9,8)
  481. byte:1, (DQS,DQ)=(8,8)
  482. 20,data:89
  483. [EMI] DRAMC calibration passed
  484.  
  485. ===================================================================
  486. MT7621 stage1 code done
  487. CPU=50000000 HZ BUS=16666666 HZ
  488. ===================================================================
  489.  
  490.  
  491. U-Boot 1.1.3 (Nov 17 2014 - 08:29:53)
  492.  
  493. Board: Ralink APSoC DRAM: 128 MB
  494. relocate_code Pointer at: 87fb4000
  495.  
  496. Config XHCI 40M PLL
  497. ******************************
  498. Software System Reset Occurred
  499. ******************************
  500. flash manufacture id: c2, device id 20 18
  501. find flash: MX25L12805D
  502. *** Warning - bad CRC, using default environment
  503.  
  504. ============================================
  505. Ralink UBoot Version: 4.2.1.0
  506. --------------------------------------------
  507. ASIC MT7621AS (MAC to MT7530 Mode)
  508. DRAM_CONF_FROM: Auto-Detection
  509. DRAM_TYPE: DDR3
  510. DRAM bus: 16 bit
  511. Xtal Mode=3 OCP Ratio=1/3
  512. Flash component: SPI Flash
  513. Date:Nov 17 2014 Time:08:29:53
  514. ============================================
  515. icache: sets:256, ways:4, linesz:32 ,total:32768
  516. dcache: sets:256, ways:4, linesz:32 ,total:32768
  517.  
  518. ##### The CPU freq = 880 MHZ ####
  519. estimate memory size =128 Mbytes
  520.  
  521. Reset switch ...
  522. #Reset_MT7530
  523. set LAN/WAN LLLLW
  524. Example expects ABI version 2
  525. Actual U-Boot ABI version 2
  526.  
  527. ******************************************
  528. Uboot StandAlone Entry
  529. ******************************************
  530. 0, cmd
  531. 1, 0x0000000D
  532. cmd : 0x0000000D
  533.  
  534.  
  535. Press Ctrl+C to Enter the Main loop...
  536. Example expects ABI version 2
  537. Actual U-Boot ABI version 2
  538.  
  539. ******************************************
  540. Uboot StandAlone Entry
  541. ******************************************
  542. 0, cmd
  543. 1, 0x0000000F
  544. cmd : 0x0000000F
  545. Enter NMRP_main
  546. Flash Sector Number : 256.
  547.  
  548. NetTxPacket = 0x87FE4300
  549.  
  550. KSEG1ADDR(NetTxPacket) = 0xA7FE4300
  551.  
  552. NetLoop,call eth_halt !
  553.  
  554. NetLoop,call eth_init !
  555. Trying Eth0 (10/100-M)
  556.  
  557. Waitting for RX_DMA_BUSY status Start... done
  558.  
  559.  
  560. ETH_STATE_ACTIVE!!
  561. NMRP_FLASH_SIZE_buffer --> a1000000.
  562. NMRP:LISTENING
  563. ### No NMRP Server found ###
  564. Example expects ABI version 2
  565. Actual U-Boot ABI version 2
  566.  
  567. ******************************************
  568. Uboot StandAlone Entry
  569. ******************************************
  570. 0, boot
  571. Flash Sector Number : 256.
  572.  
  573. ***************************************************
  574. Sercomm Boot Version 1.13.0
  575.  
  576. ***************************************************
  577. Entering Firmware : Everything is OK.
  578.  
  579. flash base: 0xbfc00000, kernel addr :0xbfc50000, bootloader size: 0x30000, config size 0x10000, fac size : 0x10000
  580. kernel addr :0xbfc50000
  581.  
  582. System Boot system code via Flash.
  583. ## Booting image at bfc50000 ...
  584. Bad Magic Number,8D96751C
  585. Example expects ABI version 2
  586. Actual U-Boot ABI version 2
  587.  
  588. ******************************************
  589. Uboot StandAlone Entry
  590. ******************************************
  591. 0, cmd
  592. 1, 0x00000010
  593. cmd : 0x00000010
  594. Welcome to TFTP Recovery mode!
  595. Flash Sector Number : 256.
  596.  
  597. KSEG1ADDR(NetTxPacket) = 0xA7FE4300
  598.  
  599. NetLoop,call eth_halt !
  600.  
  601. NetLoop,call eth_init !
  602. Trying Eth0 (10/100-M)
  603.  
  604. ETH_STATE_ACTIVE!!
  605. Our ETH MAC:
  606.  
  607. xx xx xx xx xx xx
  608. Enter TFTP_REC_wait4pkt
RAW Paste Data