Користувальницькі налаштування

Налаштування сайту


tl-wa901nd

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Наступна ревізія
Попередня ревізія
tl-wa901nd [2014/10/26 14:28] – створено wombattl-wa901nd [2014/10/28 20:04] (поточний) – [Подключение к компьютеру] wombat
Рядок 1: Рядок 1:
 +====== Восстановление нерабочей прошивки TP-Link TL-WA901ND ======
  
 +===== Подключение к компьютеру =====
  
-sudo apt-get install  lrzsz+FIXME
  
 +http://wiki.openwrt.nanl.de/toh/tp-link/tl-wa901nd
 +===== Необходимые программы =====
  
 +В ос Debian GNU/Linux потребовалось установить следующие пакеты:
  
 +  sudo apt-get install minicom lrzsz
 +
 +
 +===== Процесс востановления =====
 +
 +
 +
 +Запускаем ''minicom''. Видим:
 +
 +<code>
 Welcome to minicom 2.6.1 Welcome to minicom 2.6.1
  
Рядок 12: Рядок 27:
  
 Press CTRL-A Z for help on special keys Press CTRL-A Z for help on special keys
 +</code>
  
 +После включения устройства появляется следующее:
  
 +<code>
 U-Boot 1.1.4 (Jul 15 2010 - 12:16:03)                                           U-Boot 1.1.4 (Jul 15 2010 - 12:16:03)                                          
                                                                                                                                                                
Рядок 35: Рядок 52:
 eth0 up                                                                         eth0 up                                                                        
 eth0                                                                            eth0                                                                           
-Autobooting in 1 secondsar7100>                                                 +Autobooting in 1 seconds 
-ar7100> loady                                                              +</code>
-## Ready for binary (ymodem) download to 0x81000000 at 115200 bps...            +
-Cm - CRC mode, 30722(SOH)/0(STX)/0(CAN) packets, 5 retries +
-## Total Size      = 0x003c0000 = 3932160 Bytes +
-ar7100+
  
 +Вводим команду
  
 +  tpl
  
 +Появляется приглашение командной строки:
  
 +<code>
 +ar7100>                                                
 +ar7100> loady                                                             
 +## Ready for binary (ymodem) download to 0x81000000 at 115200 bps...
 +</code>
  
 +Нажимаем ''CTRL+A Z'' и переходим в пункт загрузки файла ( FIXME )
  
 +Выбираем файл для загрузки FIXME
 +и протокол отправки (ymodem)
  
 +После этого видим
  
 +<code>
 +Cm - CRC mode, 30722(SOH)/0(STX)/0(CAN) packets, 5 retries
 +## Total Size      = 0x003c0000 = 3932160 Bytes
 +ar7100> 
 +</code>
 +
 +Далее задаём команды записи загруженной в устройство прошивки в нужную область памяти:
 +
 +<code>
 ar7100> erase 0xbf020000 +0x3c0000 ar7100> erase 0xbf020000 +0x3c0000
  
Рядок 54: Рядок 88:
   61   61
 Erased 60 sectors Erased 60 sectors
-ar7100>  
- 
- 
- 
- 
 ar7100> cp.b 0x81000000 0xbf020000 0x3c0000 ar7100> cp.b 0x81000000 0xbf020000 0x3c0000
 Copy to Flash... write addr: bf020000 Copy to Flash... write addr: bf020000
 done done
 ar7100> ar7100>
 +</code>
  
 +Перезагружаем устройство:
  
 +<code>
 ar7100> reset ar7100> reset
  
Рядок 232: Рядок 263:
 [   25.260000] jffs2: notice: (862) jffs2_build_xattr_subsystem: complete build. [   25.260000] jffs2: notice: (862) jffs2_build_xattr_subsystem: complete build.
 procd: - init complete - procd: - init complete -
 +</code>
  
 +Жмём на клавиатуре ''ENTER''. Получаем консоль администратора:
  
- +<code>
- +
- +
-[  108.970000] eth0: link up (100Mbps/Full duplex) +
-[  108.970000] br-lan: port 1(eth0) entered forwarding state +
-[  108.980000] br-lan: port 1(eth0) entered forwarding state +
-[  108.980000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready +
-[  108.990000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready +
-[  110.980000] br-lan: port 1(eth0) entered forwarding state +
- +
- +
 BusyBox v1.22.1 (2014-10-26 01:54:05 UTC) built-in shell (ash) BusyBox v1.22.1 (2014-10-26 01:54:05 UTC) built-in shell (ash)
 Enter 'help' for a list of built-in commands. Enter 'help' for a list of built-in commands.
Рядок 264: Рядок 286:
  -----------------------------------------------------  -----------------------------------------------------
 root@OpenWrt:/#  root@OpenWrt:/# 
-root@OpenWrt:/+</code> 
  
 +----
  
 +После подключения кабеля видим:
 +
 +<code>
 +[  108.970000] eth0: link up (100Mbps/Full duplex)
 +[  108.970000] br-lan: port 1(eth0) entered forwarding state
 +[  108.980000] br-lan: port 1(eth0) entered forwarding state
 +[  108.980000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 +[  108.990000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
 +[  110.980000] br-lan: port 1(eth0) entered forwarding state
 +</code>
 +
 +Можем установить пароль администратора прямо из этой консоли:
 +
 +<code>
 root@OpenWrt:/# passwd root@OpenWrt:/# passwd
 Changing password for root Changing password for root
 New password:  New password: 
-Bad password: too weak 
 Retype password:  Retype password: 
 Password for root changed by root Password for root changed by root
 root@OpenWrt:/# root@OpenWrt:/#
 +</code>
  
 +Если требуется установить на сетевой интерфейс IP-адрес, отличный от адреса по умолчанию (192.168.1.1), следует отредактировать следующий файл, указав в нём нужный адрес (в данном примере - 192.168.1.111):
  
- +<file "/etc/config/network">
- +
-  352.970000] eth0: link down +
-[  352.970000] br-lan: port 1(eth0) entered disabled state +
-[  470.970000] eth0: link up (100Mbps/Full duplex) +
-[  470.970000] br-lan: port 1(eth0) entered forwarding state +
-[  470.980000] br-lan: port 1(eth0) entered forwarding state +
-[  472.980000] br-lan: port 1(eth0) entered forwarding state +
- +
-root@OpenWrt:/#  +
-root@OpenWrt:/# ifconfig  +
-br-lan    Link encap:Ethernet  HWaddr F4:EC:38:B3:23:56   +
-          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0 +
-          inet6 addr: fe80::f6ec:38ff:feb3:2356/64 Scope:Link +
-          inet6 addr: fd69:a24c:834e::1/60 Scope:Global +
-          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 +
-          RX packets:178 errors:0 dropped:0 overruns:0 frame:0 +
-          TX packets:153 errors:0 dropped:0 overruns:0 carrier:0 +
-          collisions:0 txqueuelen:0  +
-          RX bytes:20119 (19.6 KiB)  TX bytes:20112 (19.6 KiB) +
- +
-eth0      Link encap:Ethernet  HWaddr F4:EC:38:B3:23:56   +
-          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 +
-          RX packets:197 errors:0 dropped:0 overruns:0 frame:0 +
-          TX packets:144 errors:0 dropped:0 overruns:0 carrier:0 +
-          collisions:0 txqueuelen:1000  +
-          RX bytes:24141 (23.5 KiB)  TX bytes:18978 (18.5 KiB) +
-          Interrupt:4  +
- +
-lo        Link encap:Local Loopback   +
-          inet addr:127.0.0.1  Mask:255.0.0.0 +
-          inet6 addr: ::1/128 Scope:Host +
-          UP LOOPBACK RUNNING  MTU:65536  Metric:1 +
-          RX packets:3888 errors:0 dropped:0 overruns:0 frame:0 +
-          TX packets:3888 errors:0 dropped:0 overruns:0 carrier:0 +
-          collisions:0 txqueuelen:0  +
-          RX bytes:265056 (258.8 KiB)  TX bytes:265056 (258.8 KiB) +
- +
-root@OpenWrt:/# ifconfig br-lan 192.168.1.111 +
-root@OpenWrt:/# ifconfig  +
-br-lan    Link encap:Ethernet  HWaddr F4:EC:38:B3:23:56   +
-          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0 +
-          inet6 addr: fe80::f6ec:38ff:feb3:2356/64 Scope:Link +
-          inet6 addr: fd69:a24c:834e::1/60 Scope:Global +
-          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 +
-          RX packets:178 errors:0 dropped:0 overruns:0 frame:0 +
-          TX packets:153 errors:0 dropped:0 overruns:0 carrier:0 +
-          collisions:0 txqueuelen:0  +
-          RX bytes:20119 (19.6 KiB)  TX bytes:20112 (19.6 KiB) +
- +
-eth0      Link encap:Ethernet  HWaddr F4:EC:38:B3:23:56   +
-          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 +
-          RX packets:198 errors:0 dropped:0 overruns:0 frame:0 +
-search lan +
-nameserver  195.138.80.56 +
-nameserver  195.138.80.33 +
-nameserver 127.0.0.1 +
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-root@OpenWrt:/# ping ya.ru +
-PING ya.ru (93.158.134.3): 56 data bytes +
-64 bytes from 93.158.134.3: seq=0 ttl=55 time=32.451 ms +
-^C +
---- ya.ru ping statistics --- +
-1 packets transmitted, 1 packets received, 0% packet loss +
-round-trip min/avg/max = 32.451/32.451/32.451 ms +
- +
- +
- +
- +
- +
- +
-root@OpenWrt:/# opkg update +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/P. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_base. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/P. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_luci. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/manage. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_management. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packag. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_packages. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/routin. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_routing. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/teleph. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony. +
-root@OpenWrt:/# opkg update +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/P. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_base. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/P. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_luci. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/manage. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_management. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packag. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_packages. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/routin. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_routing. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/teleph. +
-Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony. +
-root@OpenWrt:/# opkg install luci +
-Installing luci (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing uhttpd (2014-08-25-dabd7dea6445aaa0e5b8d9add1872fa7393b3a85) to root. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/u. +
-Installing uhttpd-mod-ubus (2014-08-25-dabd7dea6445aaa0e5b8d9add1872fa7393b3a85. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/u. +
-Installing luci-mod-admin-full (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing luci-base (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing lua (5.1.5-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/l. +
-Installing liblua (5.1.5-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/l. +
-Installing libuci-lua (2014-04-11.1-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/l. +
-Installing libubus-lua (2014-09-17-4c4f35cf2230d70b9ddd87638ca911e8a563f2f3) to. +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/l. +
-Installing luci-theme-bootstrap (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing luci-app-firewall (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing luci-proto-ppp (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Installing libiwinfo-lua (51) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/l. +
-Installing luci-lib-nixio (git-14.294.77948-ecb0c2f-1) to root... +
-Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/luci/l. +
-Configuring liblua. +
-Configuring libuci-lua. +
-Configuring libubus-lua. +
-Configuring libiwinfo-lua. +
-Configuring luci-theme-bootstrap. +
-Configuring luci-app-firewall. +
-Configuring lua. +
-Configuring luci-proto-ppp. +
-Configuring luci-base. +
-Configuring luci-mod-admin-full. +
-Configuring uhttpd. +
-ln: /etc/rc.d/S50uhttpd: No space left on device +
-Configuring uhttpd-mod-ubus. +
-Collected errors: +
- * wfopen: /lib/upgrade/luci-add-conffiles.sh: No space left on device. +
- * pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-lib-nixio.list:+
- * opkg_install_pkg: Failed to extract data files for luci-lib-nixio. Package d! +
- * opkg_install_cmd: Cannot install package luci. +
- * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status:+
-root@OpenWrt:/# +
- +
- +
- +
- +
- +
-    /etc/config/network +
-    /etc/config/wireless +
- +
-root@OpenWrt:/# cat /etc/config/network +
  
 config interface 'loopback' config interface 'loopback'
Рядок 469: Рядок 335:
         option delegate '0'         option delegate '0'
  
 +</file>
  
 +после чего перезапустить сеть:
  
 +  /etc/init.d/network reload
  
-/etc/init.d/uhttpd enable +В конце полезно разрешить автозапуск веб-интерфейса и запустить его сразу:
-/etc/init.d/uhttpd start +
  
 +  /etc/init.d/uhttpd enable
 +  /etc/init.d/uhttpd start
  
  
tl-wa901nd.1414333733.txt.bz2 · Востаннє змінено: повз wombat