TPLink MR3420 v1.2 garg install & usb modem no-show

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

TPLink MR3420 v1.2 garg install & usb modem no-show

Post by nightcap »

Noob at router upgrading though well-chastened Linux (ab)user. ;)

For TPLink MR3420 v1.2 upgrading I read specific OpenWRT guidleines (maybe I should have just rushed straight in @ Gargoyle?) and followed this process:
1. Downloaded OpenWRT trunk as recommended:
openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin
2. Successfully installed via TP-Link UI updater
3. OpenWRT came without web interface, so used PuTTY to telnet to router to set password. Done.
Now I'm kinda stuck. Is there a simple, failsafe method to install Gargoyle on top? Or am I facing a brick? I've read Gargoyle 1.5.6 is stable with most 3G modems. Any constructive advice welcome. TIA.
Last edited by nightcap on Thu Jan 31, 2013 2:34 am, edited 3 times in total.
inject linux /reject M$

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

Re: TPLink MR3420 v1.2 advice please

Post by nightcap »

Oh dear. Just read the bad news here:
http://www.gargoyle-router.com/phpbb/vi ... f=8&t=3271

I assume this means I need to restore original TPLink firmware via putty. Any "how to" links please? Anyone achieve this successfully with linux recently? TIA.
inject linux /reject M$

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: TPLink MR3420 v1.2 advice please

Post by BashfulBladder »

install gargoyle-sysupgrade.bin via wget: http://wiki.openwrt.org/doc/howto/generic.sysupgrade

or

install LuCI web frontend: https://forum.openwrt.org/viewtopic.php?id=36777
opkg update
opkg install luci
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start

flash via LuCI
-----
After you flash gargoyle on the router, telnet is disabled.

ssh root@192.168.1.1
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

Re: TPLink MR3420 v1.2 advice please

Post by nightcap »

Thanks for suggestions. Read all links carefully. As net access is absent on MR3420 router, and having already downloaded gargoyle-sysupgrade.bin file to my PC, I guess this process might work?

Transferring image file to a temporary location
On your Linux PC run:

Code: Select all

cat [specified firmware].bin | pv -b | nc -l 3333
On the router run:

Code: Select all

nc 192.168.1.111 3333 > /tmp/[specified firmware].bin 
Write it to flash using sysupgrade:

Code: Select all

sysupgrade -v /tmp/[specified firmware].bin
Tried this without luck. Maybe I got a step or two wrong? Will not attempt Luci or any opkg process until reliability is reported. Trust this makes sense.
inject linux /reject M$

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: TPLink MR3420 v1.2 advice please

Post by BashfulBladder »

Can you pinpoint which part of this didn't work?
Is the file written to the router's memory?
Are the md5/md5sum of the firmware files identical?
Did sysupgrade report a failure?
Did sysupgrade flash the firmware & gargoyle didn't come up?

If you have another router, make sure they have different IPs, connect the MR3420 to the LAN ports of the one with net access & try the wget process.

Do you have ssh?

Code: Select all

$ ssh root@192.168.1.1
# cd /tmp
# scp /path/to/gargoyle-sysupgrade.bin root@192.168.1.1:/tmp
Last edited by BashfulBladder on Tue Jan 22, 2013 11:06 pm, edited 1 time in total.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

Re: TPLink MR3420 v1.2 advice please

Post by nightcap »

Once again thanks for assisting. Much appreciated.
BashfulBladder wrote:Can you pinpoint which part of this didn't work? Is the file written to the router's memory?
Not as far as I can tell.
BashfulBladder wrote:Are the md5/md5sum of the firmware files identical?
Do you mean downloaded gargoyle.bin md5 matches md5 checksum provided?
BashfulBladder wrote:Did sysupgrade report a failure?
Yes. Something like "no such file or folder".
BashfulBladder wrote:Did sysupgrade flash the firmware & gargoyle didn't come up?
Haven't reached that point it seems.
BashfulBladder wrote:If you have another router, make sure they have different IPs, connect the MR3420 to the LAN ports of the one with net access & try the wget process.
That seems a good strategy except my other (Asus) 3G internet router is also 192.168.1.1 and I lack the confidence to start messing about with either.
BashfulBladder wrote:Do you have ssh?

Code: Select all

$ ssh root@192.168.1.1
# cd /tmp
# scp /Users/rich/Desktop/gargoyle-sysupgrade.bin admin@192.168.1.1:/tmp/gargoyle-sysupgrade.bin
I seem to have SSH option in putty. Is that suitable?

I do have (distant physical) access to a friend's ADSL modem-router that is likely not 192.168.1.1. Will attempt wget solution over the next few days when I visit his house. Thanks again.
Last edited by nightcap on Wed Jan 23, 2013 8:38 am, edited 1 time in total.
inject linux /reject M$

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

Re: TPLink MR3420 v1.2 advice please

Post by nightcap »

Update. Tried SSH method you suggested. Seems to be working. Then command prompt requests admin password. No luck with several obvious known passwords. Must I reconfigure /etc/ssh/sshd_config file? Any other tips? TIA.
inject linux /reject M$

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: TPLink MR3420 v1.2 advice please

Post by BashfulBladder »

You have a file on your computer. You put a file on the router. How do you know they are identical & file transferred perfectly? You run a hash on the file on your computer & the file on the router.

On your pc, you run md5 /path/to/file
On your router, run md5sum /path/to/file

if the md5 hashes are not identical, the files are not identical.

When you telnet in & run the cat /path/to/gargoyle-sysupgrade.bin | nc -1 3333 AND simultaneously, on the router run nc 192.168.1.111 3333 > /tmp/gargoyle-sysupgrade.bin - are there errors?

Is the file there? ls /tmp

Run the md5cat on /tmp/gargoyle-sysupgrade.bin - does it match the md5 hash to the gargoyle.bin on your computer?

If it matches, you can do a sysupgrade.
----------------
As for the copy via ssh -sorry, I got it wrong. Try this:

Code: Select all

scp /path/to/gargoyle-sysupgrade.bin root@192.168.1.1:/tmp
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

User avatar
nightcap
Posts: 10
Joined: Mon Jan 21, 2013 5:32 am

Re: TPLink MR3420 v1.2 advice please

Post by nightcap »

Success! Using scp and putty:

Terminal

Code: Select all

cd /home/user/download/folder
scp gargoyle-sysupgrade.bin root@192.168.1.1:/tmp
Putty
Log in with SSH @ 192.168.1.1

Code: Select all

root
password
sysupgrade -v /tmp/gargoyle-sysupgrade.bin
Make sure to patiently wait for complete router system reboot. Check router LED status. Mine took no more than a minute to complete.

Now all I need to do is work out how to update Gargoyle password. Do I go in with telnet and change password that way?
inject linux /reject M$

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: TPLink MR3420 v1.2 advice please

Post by BashfulBladder »

Using a browser: 192.168.1.1 -> System -> Router Access (http://192.168.1.1/access.sh). Bottom: Change administrator password
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

Post Reply