Page 1 of 1

cannot upgrade tp-link wa901nd

Posted: Tue Mar 19, 2013 11:17 am
by upcock
hello, i have runing AP tp-link wa901nd v1 with gargoyle version 1.5.7 and i can't upgrade it to any newer version via web interface. It just says, upgrading, please wait and does nothing. Resseting settings to default it's not a solution, because that AP is on a really remote area, and connecting to it by physical methods would be problematic. Does anyone knows solution? Maybe it's possible to upgrade via SSH using SCP?

Re: cannot upgrade tp-link wa901nd

Posted: Tue Mar 19, 2013 12:44 pm
by BashfulBladder
I had the same problem with another router: http://www.gargoyle-router.com/phpbb/vi ... f=5&t=3753

That time I had used Safari which didn't work.

When I flashed a few days ago, Safari worked the first time.

Try using a different browser, as its not a browser issue.
-----------
It is possible to upgrade via cli:

Code: Select all

scp /path/to/firmware/on/your/computer/firmware.bin root@192.168.1.1:/tmp
ssh into the router &

Code: Select all

sysupgrade -v /tmp/firmware.bin
See http://wiki.openwrt.org/doc/howto/generic.sysupgrade

Re: cannot upgrade tp-link wa901nd

Posted: Wed Mar 20, 2013 10:09 am
by upcock
Will the cli method wipe my settings?

Re: cannot upgrade tp-link wa901nd

Posted: Wed Mar 20, 2013 3:14 pm
by BashfulBladder
see sysupgrade --help or http://wiki.openwrt.org/doc/techref/sysupgrade

The default should do what you want, apparently the -c flag does more.
Or make a backup (via -b or roll your own) and then provide that path to -f (for those times when you have extra needs).

Just FYI, the Gargoyle script does:

Code: Select all

		#if attempting to preserve settings, don't pass -n
		if [ "$FORM_upgrade_preserve" = "on" ] ; then
			/sbin/sysupgrade    /tmp/up/upgrade  2>&1 | awk ' $0 ~ /eboot/ { print "<script type=\"text/javascript\">top.upgraded();</script></body></html>" ; } '
		else
			/sbin/sysupgrade -n /tmp/up/upgrade  2>&1 | awk ' $0 ~ /eboot/ { print "<script type=\"text/javascript\">top.upgraded();</script></body></html>" ; } '
		fi