How to flash R7000 router using telnet?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 16:24    Post subject: How to flash R7000 router using telnet? Reply with quote
How to flash R7000 router using telnet?
Cannot flash forward or previous firmware with web browser
due to R28444 firmware.
If someone can help with exact step by step procedure specifically for the r7000 router.

Many thanks.
Sponsor
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Mon Dec 21, 2015 17:50    Post subject: Reply with quote
try flashing back to factory stock firmware and then flash back to whatever desired verion you want.

worked for me. hopefully it works for you.
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 17:58    Post subject: Reply with quote
already tried flashing back to stock firmware. Gives same browser error. Also Reset router and cleared browser cache to no avail. Seems like the only solution maybe telnet or ssh.

Thanks anyway.
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Mon Dec 21, 2015 18:34    Post subject: Reply with quote
So I'm trying a serial recovery on this router and I cannot upgrade to either factory stock or another version of dd-wrt.

Brb...
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 18:49    Post subject: Reply with quote
the problem is caused by build 28444, which has a bug in the webflashing code, as described in http://svn.dd-wrt.com/ticket/4988#comment:13

Thanks for your help, Gameman Advanced Kid
zip
DD-WRT User


Joined: 29 Sep 2006
Posts: 93

PostPosted: Mon Dec 21, 2015 18:56    Post subject: Reply with quote
I had the same problem. Check out the following thread on how to get past that issue.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=287997

Note what is written in red in the very first comment by Kryptex which has 2 solutions and then read down the thread for other solutions. I used Bernadoe's solution which is on the first page (I have different ip range though) and it worked.

_________________
-----------------------------------
Netgear R7000
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 18:56    Post subject: Reply with quote
The method prescribed to me was telnet or ssh into the router but, I have some chicken feathers where my spine should be
With regards to bricking the router.
zip
DD-WRT User


Joined: 29 Sep 2006
Posts: 93

PostPosted: Mon Dec 21, 2015 19:05    Post subject: Reply with quote
I was nervous myself. Don't have the serial kit to debrick (probably need to get one). I knew ssh was working and checked it again to make sure. Since WinSCP is ssh (more accurately scp/sftp) and I had already set it up with my R7000, it was easy to get the firmware into /tmp. After it not working because I did not cd to /tmp, it worked when I did. I did get the errors jaythree mentioned on page 2

jaythree wrote:
Router: Netgear R7000
Status: Working
Reset: No
Errors: No

Updated from r28444 via the command-line. There were some weird error messages but everything seems to be working:

# mtd -r write netgear-r7000-webflash.bin linux
Unlocking linux ...
Could not unlock MTD device: linux
linux: Not supported
Writing from netgear-r7000-webflash.bin to linux ... [w]




but just waited and after maybe 2 minutes, it worked.

_________________
-----------------------------------
Netgear R7000
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 19:11    Post subject: Reply with quote
Do I need to go all the way back to DD-WRT version 24160?

I followed that method
used telnet on my pc but does not communicate with router.
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Mon Dec 21, 2015 19:12    Post subject: Reply with quote
if your going to use the tftp method, i suggest this

http://www.draytek.com/index.php?lang=en&Itemid=586#

i tried using tftp2 and it kept failing.

hope things work out for OP...
zip
DD-WRT User


Joined: 29 Sep 2006
Posts: 93

PostPosted: Mon Dec 21, 2015 19:19    Post subject: Reply with quote
I went up to version 28493 which is the latest as of now. It is working fine on my R7000.
_________________
-----------------------------------
Netgear R7000
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 19:26    Post subject: Reply with quote
Is this the method you used, zip?

Bernadoe
DD-WRT Novice

Reply with quote
On WinSCP:
1 Select New Site;
2 File protocol: SCP;
3 Hostname: 192.168.1.1 (or your router IP);
4 Username: root
5 Password: your admin pass
6 Drag downloaded firmware from Download folder and drop in /tmp
zip
DD-WRT User


Joined: 29 Sep 2006
Posts: 93

PostPosted: Mon Dec 21, 2015 19:39    Post subject: Reply with quote
Yes, but you also have to do what is below it...


Quote:
On WinSCP:
1 Select New Site;
2 File protocol: SCP; Note: my profile for the router is SFTP, but SCP should work too
3 Hostname: 192.168.1.1 (or your router IP);
4 Username: root
5 Password: your admin pass
6 Drag downloaded firmware from Download folder and drop in /tmp

On putty;
1 Login on 192.168.1.1 (user root and pass);
2 Type:
cd /tmp (Enter)
mtd -r write xxxxx.bin linux (Enter) (Sure, replace xxxx with your firmware filename...)



If your router IP is not 192.168.1.1, you have to change to whatever it is.


Remember that you may see what jaythree and I did


Quote:
There were some weird error messages but everything seems to be working:

# mtd -r write netgear-r7000-webflash.bin linux
Unlocking linux ...
Could not unlock MTD device: linux
linux: Not supported

Writing from netgear-r7000-webflash.bin to linux ... [w]


but it should work. The part where it says it is writing (Writing from netgear-r7000-webflash.bin to linux ... [w]) where the [w] means it is writing will take some time. Just wait and be patient with it and wait for the lights on the router to return to normal on the automatic reboot.

I need to add one important note:

I do not use a username/password with ssh. I only use private keys and my putty is already setup to use a key to login to the router so I did not have to worry about the user/pass stuff. Therefore, I do not know exactly how that works, but I assume what Bernadoe says works since he had success.

_________________
-----------------------------------
Netgear R7000
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 20:03    Post subject: Reply with quote
Thanks to everyone.
zip, I will try your method first.
Hopefully it goes down smoother than banana daiquiris.

Zip you're a Mensch.
chakka
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 12

PostPosted: Mon Dec 21, 2015 20:36    Post subject: Reply with quote
In putty is says;
Couldn't open image file: netgear-r7000-webflash.bin!
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum