Нотатки: TP Link MP 3420 відновлення. OpenWrt 19.07.5.
[OpenWrt Wiki] TP-Link TL-MR3420 & TL-MR3220
Нотую для себе, деякі послідовності.
Так як за своєї помилки прибив роутер, то мені і відновлювати.
Так як мені потрібен функціонал якого не має в рідній прошивці, такі як VLAN, MultiAP … То компілюю OpenWrt для цього роутера з останньою версією. Але флеш пам’ять цього пристрою всього 4МБ і 32МБ оперативної пам’яті, тому використовую зовнішній USB диск, як розширений простір (ext_root). А у подальшому можливо буде заміна флеш на 8МБ.
Flash via tftp
Using a serial line.
Download the factory update firmware: openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin
Connect your pc via serial interface.
Set up tftp server with IP 192.168.1.100 (for MR3420/MR3220 versions v2.x).
Rename the firmware to code.bin and move to tftp folder.
Power on the router, and type tpl if “Autoboot in ..” occurs (type fast!)
If it works you now should see something similar: wasp>

Як з Arduino IDE монітор послі. порту відіслати швидко: tpl
Now you should type the following:
wasp> erase 0x9f020000 +0x3c0000
wasp> tftpboot 0x81000000 code.bin
wasp> cp.b 0x81000000 0x9f020000 0x3c0000
wasp> bootm 0x9f020000
Резервування ART
by ssh
cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "u-boot"
mtd1: 00130948 00010000 "kernel"
mtd2: 0029f6b8 00010000 "rootfs"
mtd3: 00090000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 003d0000 00010000 "firmware"
cat /dev/mtd4 > /tmp/mtd4.bin
cat /dev/mtd0 > /tmp/mtd0.bin
cat /proc/mtd > /tmp/mtd.txt
scp root@192.168.1.1:/tmp/mtd4.bin mtd4.bin
scp root@192.168.1.1:/tmp/mtd0.bin mtd0.bin
scp root@192.168.1.1:/tmp/mtd.txt mtd.txt
Компіляція OpenWrt під себе
Потрібна тільки підтримка USB носія в мінімуму.
block-mount, mod-scsi-core,kmod-usb-storage,kmod-fs-ext4
Вимикаю IPv6, PPP.
Для роботи файлу “підкачки”:
Global build settings -> Kernel build options -> [*] Support for paging of anonymous memory (swap)
config.buildinfo:
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_tiny=y
CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-mr3420-v2=y
# CONFIG_BUSYBOX_DEFAULT_FEATURE_IPV6 is not set
# CONFIG_IPV6 is not set
# CONFIG_KERNEL_IPV6 is not set
CONFIG_KERNEL_SWAP=y
CONFIG_PACKAGE_block-mount=y
CONFIG_PACKAGE_dhcpcd=y
CONFIG_PACKAGE_kmod-crypto-crc32c=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-fs-ext4=y
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-pktgen=y
# CONFIG_PACKAGE_kmod-ppp is not set
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-usb-storage=y
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_kmod-nf-ipt6=y
CONFIG_PACKAGE_libip6tc=y
Результати компіляції для OpenWrt 19.07.5, TPLINK 3420 v2, USB-NET-WiFi, без LuCI, PPP
Перенос на зовнішню флешку
[OpenWrt Wiki] Extroot configuration
root@OpenWrt:/# block info
/dev/mtdblock2: UUID="bb763bac-bbe93eb7-97a66a65-09b971cb" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/mtdblock3: MOUNT="/overlay" TYPE="jffs2"
/dev/sda1: UUID="c761172e-8b1c-497e-b46c-9b52eb87ea5f" VERSION="1.0" TYPE="ext4"
Налаштування як WiFi клієнта
vi /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ar934x_wmac'
option htmode 'HT20'
option disabled '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'wwan'
option mode 'sta'
option ssid 'FRRO'
option encryption 'psk2'
option key 'TEST123123'
ESC:wq
wifi
ifconfig wlan0
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 64:70:XX:XX:XX:6A
inet addr:192.168.200.151 Bcast:192.168.200.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:761 errors:0 dropped:0 overruns:0 frame:0
TX packets:415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:844914 (825.1 KiB) TX bytes:41728 (40.7 KiB)
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.200.1 0.0.0.0 UG 308 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 203 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 205 0 0 br-lan
169.254.0.0 0.0.0.0 255.255.0.0 U 206 0 0 eth1.1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.200.0 0.0.0.0 255.255.255.0 U 308 0 0 wlan0AAA
opkg list-installed
base-files - 204.2-r11257-5090152ae3
block-mount - 2020-05-12-84269037-1
busybox - 1.30.1-6
dhcpcd - 7.2.2-1
dnsmasq - 2.80-16.1
dropbear - 2019.78-2
firewall - 2019-11-22-8174814a-3
fstools - 2020-05-12-84269037-1
fwtool - 2
getrandom - 2019-06-16-4df34a4d-3
hostapd-common - 2019-08-08-ca8c2bd2-4
iptables - 1.8.3-1
iw - 5.0.1-1
iwinfo - 2019-10-16-07315b6f-1
jshn - 2020-05-25-66195aee-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.209-1-d0c1b016441fd1a2cf6372a196f21470
kmod-ath - 4.14.209+4.19.137-1-2
kmod-ath9k - 4.14.209+4.19.137-1-2
kmod-ath9k-common - 4.14.209+4.19.137-1-2
kmod-cfg80211 - 4.14.209+4.19.137-1-2
kmod-crypto-crc32c - 4.14.209-1
kmod-crypto-hash - 4.14.209-1
kmod-fs-ext4 - 4.14.209-1
kmod-gpio-button-hotplug - 4.14.209-3
kmod-ipt-conntrack - 4.14.209-1
kmod-ipt-core - 4.14.209-1
kmod-ipt-nat - 4.14.209-1
kmod-ipt-offload - 4.14.209-1
kmod-lib-crc16 - 4.14.209-1
kmod-mac80211 - 4.14.209+4.19.137-1-2
kmod-nf-conntrack - 4.14.209-1
kmod-nf-flow - 4.14.209-1
kmod-nf-ipt - 4.14.209-1
kmod-nf-ipt6 - 4.14.209-1
kmod-nf-nat - 4.14.209-1
kmod-nf-reject - 4.14.209-1
kmod-nls-base - 4.14.209-1
kmod-pktgen - 4.14.209-1
kmod-scsi-core - 4.14.209-1
kmod-usb-core - 4.14.209-1
kmod-usb-ehci - 4.14.209-1
kmod-usb-ledtrig-usbport - 4.14.209-1
kmod-usb-storage - 4.14.209-1
kmod-usb2 - 4.14.209-1
libblobmsg-json - 2020-05-25-66195aee-1
libc - 1.1.24-2
libgcc1 - 7.5.0-2
libip4tc2 - 1.8.3-1
libip6tc2 - 1.8.3-1
libiwinfo20181126 - 2019-10-16-07315b6f-1
libjson-c2 - 0.12.1-3.1
libjson-script - 2020-05-25-66195aee-1
libnl-tiny - 0.1-5
libpthread - 1.1.24-2
libubox20191228 - 2020-05-25-66195aee-1
libubus20191227 - 2019-12-27-041c9d1c-1
libuci20130104 - 2019-09-01-415f9e48-4
libuclient20160123 - 2020-06-17-51e16ebf-1
libxtables12 - 1.8.3-1
logd - 2019-06-16-4df34a4d-3
mtd - 24
netifd - 2019-08-05-5e02f944-1
openwrt-keyring - 2019-07-25-8080ef34-1
opkg - 2020-05-07-f2166a89-1
procd - 2020-03-07-09b9bd82-1
swconfig - 12
uboot-envtools - 2018.03-3.1
ubox - 2019-06-16-4df34a4d-3
ubus - 2019-12-27-041c9d1c-1
ubusd - 2019-12-27-041c9d1c-1
uci - 2019-09-01-415f9e48-4
uclient-fetch - 2020-06-17-51e16ebf-1
urandom-seed - 1.0-1
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2019.06.03-1
wpad-mini - 2019-08-08-ca8c2bd2-4
#### Додавання Web інтерфейсу LuCI
opkg update
opkg install luci
Configuring liblucihttp0.
Configuring cgi-io.
Configuring luci-app-opkg.
Configuring rpcd.
Configuring liblua5.1.5.
Configuring luci-lib-ip.
Configuring libubus-lua.
Configuring libiwinfo-lua.
Configuring lua.
Configuring luci-lib-nixio.
Configuring luci-lib-jsonc.
Configuring liblucihttp-lua.
Configuring rpcd-mod-file.
Configuring rpcd-mod-luci.
Configuring luci-base.
Configuring luci-mod-system.
Configuring luci-theme-bootstrap.
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring luci-proto-ppp.
Configuring rpcd-mod-iwinfo.
Configuring luci-mod-network.
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring uhttpd.
Configuring rpcd-mod-rrdns.
Configuring luci.
Підключення до LuCI
open http://192.168.1.1

luci tl-mp-3420 OpenWrt 19.07.5
Покращення роботи
Прочитавши ці рекомендації, додав конденсатор до живлення USB.

Додавання 100мкф х 16В до USB живлення







