Sivu 1/1

OpenWRT

Lähetetty: 18.10.2017 klo 14.23
Kirjoittaja khaosaming
OpenWRT on reitittimiin ja verkkolaitteisiin tarkoitettu avoin upotettu (embedded) Linux-jakelu, joka korvaa laitteen oman alkuperäisen laiteohjelmiston (yleensä nekin Linux-pohjaisia).

https://www.openwrt.org/

Päivitin reitittimeni TP-Link TL-MR3020:n firmiksen OpenWRT Chaos Calmer 15.05.1 -versiolla.

Ohjeet: https://wiki.openwrt.org/toh/tp-link/tl-mr3020

Flashaus on helppo tehdä TP-Linkin omasta WebUI:sta (selainkäyttöliittymä).

--Ensin paketti Install URL (factory.bin) ja sitten toinen Upgrade URL(sysupgrade.bin).

Alkuperäisen firmiksen voi palauttaa (minkä teinkin, koska en saanut heti mokkulaa toimimaan).

--Ohjeet: https://wiki.openwrt.org/toh/tp-link/tl-mr3020

Tehdasfirmiksessä on 'boot', joten paketti pitää lyhentää dd:llä.''
With the TL-MR3020 router, there is a catch: the stock firmware is obtained from the OEM: http://www.tplink.com/en/support/downlo ... =TL-MR3020

in case the file name of this firmware file does not contain the word "boot" in it, you can simply revert back to original firmware
in case the file name of this firmware file does contain the word "boot" in it, you need to cut off parts of the image file before flashing it:

An example of an image file with the word "boot" in it is mr3020nv1_en_3_17_2_up_boot(140408).bin.

Cut the first 0x20200 (that is 131,584 = 257*512) Bytes from original firmware:

Koodi: Valitse kaikki

dd if="mr3020nv1_en_3_17_2_up_boot(150921).bin" of="tplink.bin" skip=257 bs=512
Ohjeessa on virhe (tulee "syntax error ' unexpected"); vaaditaan lainaukset if/of.

OpenWRT konfiguroidaan asennuksen jälkeen (first login) Telnetillä, SSH:lla tai selaimella (LuCI). Telnetiä pitää käyttää ENNEN kuin salasana on asetettu. OpenWRT:n osoite on 192.168.1.1

Koodi: Valitse kaikki

telnet
open 192.168.1.1 23
Kun rootin salasana on tehty, pääsee purkkiin ssh:lla.

Koodi: Valitse kaikki

ssh root@192.168.1.1
https://wiki.openwrt.org/doc/howto/basic.config

https://wiki.openwrt.org/doc/walkthrough_login

Niin, ja softaa voi asentaa OpenWRT:n omalla pakettimanagerilla 'opkg install paketti'; päivitys 'opkg update'. Tai graafisesti LuCIssa (OpenWRT:n selaimella käytettävä hallintaliittymä).

https://wiki.openwrt.org/doc/techref/opkg

Alkuperäinen TP-Linkin firmware löytyy täältä:

http://www.tp-link.fi/support/download/ ... 1#Firmware

Huomautus! OpenWRT:n firmwaren tiedostonimi on liian pitkä; nimi on lyhennettävä, jotta pääsee flashaamaan (muuten jatkuvasti "please choose file to upgrade").

https://forum.openwrt.org/extern.php?ac ... 9&type=rss
Just tried to flash a TL-MR3020 v1.9 via the origial TP_link "Flash Upgrade" web UI … and when clicking the "Upgrade" button it always complained:

"Please choose a file to upgrade"

Turns out that the latest 15.05.1 image … has a name which is too long.
So renaming

openwrt-15.05.1-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

into

openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

and then trying the upgrade with that renamed file resolved the issue.

So there actually seems to be a file name length limit in the TP-Link web UI code.
2017-10-18-090008_1600x900_scrot.png