Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Both sides previous revision Попередня ревізія Наступна ревізія | Попередня ревізія | ||
tl-wa901nd [2014/10/28 21:54] wombat |
tl-wa901nd [2014/10/28 22:04] (поточний) wombat [Подключение к компьютеру] |
||
---|---|---|---|
Рядок 1: | Рядок 1: | ||
====== Восстановление нерабочей прошивки TP-Link TL-WA901ND ====== | ====== Восстановление нерабочей прошивки TP-Link TL-WA901ND ====== | ||
+ | |||
+ | ===== Подключение к компьютеру ===== | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | http://wiki.openwrt.nanl.de/toh/tp-link/tl-wa901nd | ||
+ | ===== Необходимые программы ===== | ||
+ | |||
+ | В ос Debian GNU/Linux потребовалось установить следующие пакеты: | ||
sudo apt-get install minicom lrzsz | sudo apt-get install minicom lrzsz | ||
- | Запускаем minicom. Видим: | + | ===== Процесс востановления ===== |
+ | |||
+ | |||
+ | |||
+ | Запускаем ''minicom''. Видим: | ||
<code> | <code> | ||
Рядок 278: | Рядок 291: | ||
---- | ---- | ||
+ | После подключения кабеля видим: | ||
- | + | <code> | |
- | root@OpenWrt:/# | + | |
- | + | ||
- | + | ||
[ 108.970000] eth0: link up (100Mbps/Full duplex) | [ 108.970000] eth0: link up (100Mbps/Full duplex) | ||
[ 108.970000] br-lan: port 1(eth0) entered forwarding state | [ 108.970000] br-lan: port 1(eth0) entered forwarding state | ||
Рядок 290: | Рядок 300: | ||
[ 108.990000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready | [ 108.990000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready | ||
[ 110.980000] br-lan: port 1(eth0) entered forwarding state | [ 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' | ||
Рядок 495: | Рядок 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 | ||