找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 39651|回复: 59

HIWIFI路由器讨论

[复制链接]
发表于 2013-6-29 07:38 | 显示全部楼层 |阅读模式
刚入手一台HIWIFI路由器,连上了TTL,发现U-Boot无法中断进命令界面,Linux启动时按f+回车也不进failsafe模式。刚才开机时按reset键,U-Boot进入Recovery模式,试图用tftp下载recovery.bin。

HIWIFI的SOC也是AR9331,估计也是用OpenWRT的,OpenWRT有没有kernel+initrd的固件,我估计这个recovery.bin是这样的固件。

评分

参与人数 3恩山币 +5 收起 理由
222ba + 1 新概念炒作吧,建议做点实在的东西。
lcsy + 1 就是用的Openwrt,垃圾路由器,骗人玩意
jzmno1 + 3 不觉得这是骗小白的吗?openwrt可以实现所有功能。

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2013-6-29 07:40 | 显示全部楼层
补U-Boot启动信息:
  1. U-Boot 1.1.4 (Jun 20 2013 - 13:51:18)

  2. AP121 (ar9331) U-boot

  3. DRAM:  64 MB
  4. Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
  5. flash size 16777216, sector count = 256
  6. Flash: 16 MB
  7. Using default environment

  8. In:    serial
  9. Out:   serial
  10. Err:   serial
  11. Net:   ag7240_enet_initialize...
  12. No valid address in Flash. Using fixed address
  13. No valid address in Flash. Using fixed address
  14. ag7240 gmac: cfg1 0x5 cfg2 0x7114
  15. eth0: 00:de:ad:be:ef:32
  16. eth0 up
  17. ag7240 gmac: cfg1 0xf cfg2 0x7214
  18. eth1: 00:de:ad:be:ef:32
  19. athrs26_reg_init_lan
  20. ATHRS26: resetting s26
  21. ATHRS26: s26 reset done
  22. eth1 up
  23. eth0, eth1
  24. Autobooting in 2 seconds
  25. dup 1 speed 1000
  26. Using eth1 device
  27. TFTP from server 192.168.1.88; our IP address is 192.168.1.119
  28. Filename 'recovery.bin'.
  29. Load address: 0x81000000
  30. Loading: T T T
  31. Retry count exceeded; starting again
  32. dup 1 speed 100
  33. Using eth0 device
  34. TFTP from server 192.168.1.88; our IP address is 192.168.1.119
  35. Filename 'recovery.bin'.
  36. Load address: 0x81000000
  37. Loading: T T T
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-29 09:09 | 显示全部楼层
备份个编程器固件出来哦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-29 09:42 | 显示全部楼层
用编程器直接干!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-6-29 11:53 | 显示全部楼层
jacksonzh 发表于 2013-6-29 09:42
用编程器直接干!

昨天刚买了编程器,还在路上。不知道能不能不把Flash吹下来,直接搭线用编程器读。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-6-29 13:44 | 显示全部楼层
想办法进U-Boot交互界面了
  1. hornet> ?
  2. bootd   - boot default, i.e., run 'bootcmd'
  3. ?       - alias for 'help'
  4. boot    - boot default, i.e., run 'bootcmd'
  5. bootm   - boot application image from memory
  6. cp      - memory copy
  7. erase   - erase FLASH memory
  8. help    - print online help
  9. md      - memory display
  10. mm      - memory modify (auto-incrementing)
  11. mtest   - simple RAM test
  12. mw      - memory write (fill)
  13. nm      - memory modify (constant address)
  14. ping    - send ICMP ECHO_REQUEST to network host
  15. printenv- print environment variables
  16. progmac - Set ethernet MAC addresses
  17. reset   - Perform RESET of the CPU
  18. run     - run commands in an environment variable
  19. setenv  - set environment variables
  20. tftpboot- boot image via network using TFTP protocol
  21. version - print monitor version

  22. hornet> printenv
  23. bootargs=console=ttyS0,115200 root=31:01 rootfstype=squashfs init=/sbin/init mtdparts=spi0.0:64k(u-boot),64k(bdinfo),1280k(kernel),14848k(rootfs),64k(nvram),64k(art)
  24. bootcmd=bootm 0x9f020000
  25. bootdelay=2
  26. baudrate=115200
  27. ethaddr=0x00:0xde:0xad:0xbe:0xef:0x32
  28. stdin=serial
  29. stdout=serial
  30. stderr=serial
  31. serverip=192.168.1.88
  32. ipaddr=192.168.1.119
  33. ethact=eth1

  34. Environment size: 353/65532 bytes
  35. hornet>
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-29 14:03 | 显示全部楼层
嗯 关注进度
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-29 16:08 | 显示全部楼层
好期待你的编程器固件啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-29 16:15 | 显示全部楼层
那里面的app openwrt 也可以拿过来用啊!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-6-29 19:29 | 显示全部楼层
Flash芯片拆下来,焊在转接PCB上,然后在路由器上焊了个引出插座,方便以后刷机。


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

使用道具 举报

发表于 2013-6-30 02:23 | 显示全部楼层
carabob 发表于 2013-6-29 19:29
Flash芯片拆下来,焊在转接PCB上,然后在路由器上焊了个引出插座,方便以后刷机。

灰色和黑色那两根是USB么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-30 08:56 | 显示全部楼层
有点意思!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-6-30 10:58 | 显示全部楼层
固件改了一点点,能进shell看看了。
  1. /etc # cat openwrt_release
  2. DISTRIB_ID="OpenWrt"
  3. DISTRIB_RELEASE="Bleeding Edge"
  4. DISTRIB_REVISION="0.684.672s"
  5. DISTRIB_CODENAME="barrier_breaker"
  6. DISTRIB_TARGET="ar71xx/generic"
  7. DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 0.684.672s"

  8. / # ps
  9.   PID USER       VSZ STAT COMMAND
  10.     1 root      1508 S    init
  11.     2 root         0 SW   [kthreadd]
  12.     3 root         0 SW   [ksoftirqd/0]
  13.     4 root         0 SW   [kworker/0:0]
  14.     5 root         0 SW   [kworker/u:0]
  15.     6 root         0 SW<  [khelper]
  16.     7 root         0 SW   [kworker/u:1]
  17.    61 root         0 SW   [sync_supers]
  18.    63 root         0 SW   [bdi-default]
  19.    65 root         0 SW<  [kblockd]
  20.    94 root         0 SW   [kswapd0]
  21.   143 root         0 SW   [fsnotify_mark]
  22.   154 root         0 SW<  [ath79-spi]
  23.   165 root         0 SW   [mtdblock0]
  24.   170 root         0 SW   [mtdblock1]
  25.   175 root         0 SW   [mtdblock2]
  26.   180 root         0 SW   [mtdblock3]
  27.   185 root         0 SW   [mtdblock4]
  28.   190 root         0 SW   [mtdblock5]
  29.   195 root         0 SW   [mtdblock6]
  30.   200 root         0 SW   [mtdblock7]
  31.   243 root         0 SW   [kworker/0:1]
  32.   372 root         0 SW   [kworker/0:2]
  33.   423 root         0 SWN  [jffs2_gcd_mtd4]
  34.   425 root         0 SW   [flush-mtd-unmap]
  35.   438 root      1548 S    {rcS} /bin/sh /etc/init.d/rcS S boot
  36.   440 root      1548 S    {rcS} /bin/sh /etc/init.d/rcS S boot
  37.   441 root      1512 S    /bin/ash
  38.   443 root      1508 S    logger -s -p 6 -t sysinit
  39.   480 root         0 SW   [khubd]
  40.   569 root         0 SW   [scsi_eh_0]
  41.   570 root         0 SW   [usb-storage]
  42.   584 root         0 SW   [kworker/u:2]
  43.   594 root       868 S    /sbin/hotplug2 --override --persistent --set-rules-f
  44.   599 root      2196 S    hcshd
  45.   602 root       864 S    /sbin/ubusd
  46.   609 root      1520 S    /sbin/netifd
  47.   734 nobody    2532 S    /usr/sbin/haproxy -q -D -f /etc/haproxy.cfg -p /var/
  48.   877 root      2132 S    /usr/bin/fcgi-cgi
  49.   895 root      1520 S    udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dh
  50. 1376 nobody     944 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
  51. 1427 root      3768 S    nginx: master process /usr/sbin/nginx
  52. 1430 nobody    4652 S    nginx: worker process
  53. 2103 root      1124 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
  54. 2140 root         0 SW   [jbd2/sda-8]
  55. 2141 root         0 SW<  [ext4-dio-unwrit]
  56. 2151 root      1528 S    /usr/sbin/crond -c /etc/crontabs -l 5
  57. 2160 root      1504 S    /sbin/syslogd -O /tmp/data/sys_log3.log
  58. 2162 root      1504 S    /sbin/klogd
  59. 2174 root      4356 S    {syslog-ng} supervising syslog-ng
  60. 2175 root      4444 S    /usr/sbin/syslog-ng -R /tmp/data/syslog-ng.persist
  61. 2179 root         0 SW   [flush-8:0]
  62. 2210 nobody    2224 S    /usr/sbin/htpdate -4 -d -l -s -t -u nobody -D www.qq
  63. 2215 root      4460 S    /usr/lib/cmagent/cmagent
  64. 2219 root      1576 R    {inet_chk.sh} /bin/sh /usr/bin/inet_chk.sh
  65. 2227 root      7076 S    /usr/local/MCDownloader/bin/MCDownloader
  66. 2234 root      6116 S    /bin/p2pclient
  67. 2645 root      1764 S    {update} /usr/bin/lua /usr/lib/traffic_stats/update
复制代码

点评

是barrier breaker啊?oenwrt的trunk就这么直接拿着用了  发表于 2013-7-13 14:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-30 11:18 | 显示全部楼层
这个是基于OPENWRT的啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-6-30 12:04 | 显示全部楼层
本帖最后由 carabob 于 2013-6-30 12:38 编辑

安装的package列表:
  1. # opkg list-installed
  2. autossh - 1.4b-20130628.1
  3. autowantype - 1-1
  4. base-files - 118.20130518.1-0.684.672s
  5. busybox - 1.19.4-5
  6. census - 1.0.0-20130305.1
  7. cmagent - 0.33-0
  8. curl - 7.23.1-1
  9. dnsanalyzer - 0.1-2013061.1
  10. dnsmasq - 2.62-2013062.1
  11. dropbear - 2011.54-2
  12. e2fsprogs - 1.42.4-1
  13. ethtool - 3.4.1-1
  14. fcgi-cgi - 0.1.8-1
  15. firewall - 2-53
  16. glib2 - 2.26.1-3
  17. haproxy - 1.4.23-aqjh.20130620.1
  18. hctools - 2-1.1
  19. hotplug2 - 1.0-beta-4
  20. htpdate - 1.0.5-20130522-8d277baa24647bb28db1cdd73fd20bcffc85a1dc-1
  21. inet_chk - 1-1
  22. iptables - 1.4.10-4
  23. iptables-mod-conntrack-extra - 1.4.10-4
  24. iptables-mod-extra - 1.4.10-4
  25. iptables-mod-filter - 1.4.10-4
  26. iptables-mod-ipopt - 1.4.10-4
  27. iptables-mod-nat-extra - 1.4.10-4
  28. iw-hcwifi - 1.1-1
  29. jansson - 2.2.1-1
  30. jshn - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
  31. kernel - 3.3.8-1-b9afb2760559de79c6b7f0782a83e6c7
  32. kmod-crypto-aes - 3.3.8-1
  33. kmod-crypto-arc4 - 3.3.8-1
  34. kmod-crypto-core - 3.3.8-1
  35. kmod-fs-ext4 - 3.3.8-1
  36. kmod-gpio-button-hotplug - 3.3.8-1
  37. kmod-hcwifi - 3.3.8+1.1.1-1
  38. kmod-ifb - 3.3.8-1
  39. kmod-ipip - 3.3.8-1
  40. kmod-ipt-conntrack - 3.3.8-1
  41. kmod-ipt-conntrack-extra - 3.3.8-1
  42. kmod-ipt-core - 3.3.8-1
  43. kmod-ipt-extra - 3.3.8-1
  44. kmod-ipt-filter - 3.3.8-1
  45. kmod-ipt-ipopt - 3.3.8-1
  46. kmod-ipt-nat - 3.3.8-1
  47. kmod-ipt-nat-extra - 3.3.8-1
  48. kmod-ipt-nathelper - 3.3.8-1
  49. kmod-ipt-nathelper-extra - 3.3.8-1
  50. kmod-iptunnel4 - 3.3.8-1
  51. kmod-ipv6 - 3.3.8-1
  52. kmod-leds-gpio - 3.3.8-1
  53. kmod-ledtrig-default-on - 3.3.8-1
  54. kmod-ledtrig-netdev - 3.3.8-1
  55. kmod-ledtrig-timer - 3.3.8-1
  56. kmod-lib-crc-ccitt - 3.3.8-1
  57. kmod-lib-crc16 - 3.3.8-1
  58. kmod-lib-textsearch - 3.3.8-1
  59. kmod-loop - 3.3.8-1
  60. kmod-nls-base - 3.3.8-1
  61. kmod-nls-utf8 - 3.3.8-1
  62. kmod-ppp - 3.3.8-1
  63. kmod-pppoe - 3.3.8-1
  64. kmod-pppox - 3.3.8-1
  65. kmod-sched - 3.3.8-1
  66. kmod-sched-connmark - 3.3.8-1
  67. kmod-sched-core - 3.3.8-1
  68. kmod-scsi-core - 3.3.8-1
  69. kmod-sit - 3.3.8-1
  70. kmod-tun - 3.3.8-1
  71. kmod-usb-core - 3.3.8-1
  72. kmod-usb-storage - 3.3.8-1
  73. kmod-usb2 - 3.3.8-1
  74. kmod-wdt-ath79 - 3.3.8-1
  75. libauth - 59-0
  76. libbdinfo - 1-1
  77. libblkid - 2.21.2-1
  78. libblobmsg-json - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
  79. libc - 0.9.33.2-1
  80. libcom_err - 1.42.4-1
  81. libcurl - 7.23.1-1
  82. libdaemon - 0.14-2
  83. libdbi - 0.8.3-3
  84. libev - 4.11-1
  85. libevent2 - 2.0.19-1
  86. libevent2-openssl - 2.0.19-1
  87. libeventlog - 0.2.9-2
  88. libext2fs - 1.42.4-1
  89. libgcc - 4.6-linaro-1
  90. libhcwifi - 1.1-1
  91. libhcwifi-lua - 1.1-1
  92. libhiwifi-lua - 0.36-0
  93. libip4tc - 1.4.10-4
  94. libip6tc - 1.4.10-4
  95. libjson - 0.9-2
  96. libltdl - 2.4-1
  97. liblua - 5.1.5-1
  98. liblzo - 2.06-20130614.1
  99. libnfnetlink - 1.0.0-2
  100. libnl-tiny - 0.1-3
  101. libopenssl - 1.0.1c-1
  102. libpcap - 1.1.1-20130407.1
  103. libpcre - 8.11-2
  104. libpthread - 0.9.33.2-1
  105. librt - 0.9.33.2-1
  106. libspictl - 1-1
  107. libsqlite3 - 3071201-1
  108. libstdcpp - 4.6-linaro-1
  109. libtw - 0.0.36-0
  110. libtw-lua - 0.0.36-0
  111. libubox - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
  112. libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
  113. libubus-lua - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
  114. libuci - 2012-03-28.1-1
  115. libuci-lua - 2012-03-28.1-1
  116. libuuid - 2.21.2-1
  117. libwrap - 7.6-1
  118. libxtables - 1.4.10-4
  119. lsqlite3 - 7-2
  120. lua - 5.1.5-1
  121. luasec - 0.4-4f37552d6f0b9f416059a8245fcf237d1c585733-iridium77.20130419.1
  122. luasocket - 2.0.2-3
  123. mcdownloader - 0.0.65-1
  124. mentohust - 0.3.1-1
  125. miniupnpd - 1.8.20130426-20130521.1
  126. mtd - 20
  127. netifd - 2012-09-29-6653b861748719ab58e21a81e01d59d4d8afe10c-20130313.1
  128. network-fix - 1.1.0-1
  129. nginx - 1.4.1-aqjh.cloud.20130603.1
  130. nixio - 0.10.0
  131. obfsproxy - 0.1.4-20130326.1
  132. openssh-client - 6.1p1-20130609.1
  133. openvirtual** - 2.3.1-20130613.1
  134. opkg - 618-2-curl2
  135. p2pclient - 0.2.14-1
  136. ppp - 2.4.5-6
  137. ppp-mod-pppoe - 2.4.5-6
  138. redsocks - 0.4-a9cfd090119385a1ef973baf94342a2db20595b9.20130628.1
  139. spawn-fcgi - 1.6.3-1
  140. special-dial - 1-1
  141. swap-utils - 2.21.2-1
  142. swconfig - 10
  143. syslog-ng3 - 3.0.5-aqjh.20130309.1
  144. turbo-beta - 1.0.2-1
  145. twx - 1035
  146. uboot-envtools - 2012.04.01-1
  147. ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
  148. ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
  149. uci - 2012-03-28.1-1
  150. x3c8021x - 1-1
  151. zlib - 1.2.7-1
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 00:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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