PLEASE help - R6250 WILL NOT upgrade DDWRT!

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Sat Aug 20, 2016 4:08    Post subject: Reply with quote
Xeon2k8 wrote:
I wish I could bookmark posts, yours would be the first one lol I always forget these steps

Open an SSH or Telnet session and copy and paste the following:
Code:

echo -e "On WinSCP:\n
1 Select New Site; \n
2 File protocol: SCP;\n
3 Hostname: your router IP; Default port is 22, but may vary depending on custom configs\n
4 Username: root \n
5 Password: your admin pass\n
6 Drag downloaded firmware from Download folder and drop in /tmp \n
\n
On PuTTY;\n
1 SSH or telnet to your router's IP address.\n
2 Login using root user and admin password; \n
3 Type: \n
cd /tmp (Enter)\n
mtd -r write xxxxx.bin linux (Enter) (Replace xxxxx with your firmware filename...)\n" >> /opt/FlashFromCLI.txt

There, it's saved.

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
Sponsor
Xeon2k8
DD-WRT Guru


Joined: 11 Feb 2016
Posts: 1288

PostPosted: Sat Aug 20, 2016 11:23    Post subject: Reply with quote
Hahaha thanks man, that's a good option too Smile
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 14:38    Post subject: Reply with quote
ok i am struggling

i like the idea of drag and drop with scp


but it does not connect on 22 - on router is is set to 23.

but no login

SCP, 192.168.1.1 just hangs


on putty, i can connect, but i do not understand how it copies the file to tmp dir?

this command .... 3 Type: \n
cd /tmp (Enter)\n
mtd -r write xxxxx.bin linux (Enter) (Replace xxxxx with your firmware filename...)\n" >> /opt/FlashFromCLI.txt

how exactly does it work, lets say the filename is dd-wrt.K3_R6250.chk on my pc thank you?
Xeon2k8
DD-WRT Guru


Joined: 11 Feb 2016
Posts: 1288

PostPosted: Mon Aug 22, 2016 14:51    Post subject: Reply with quote
@bovy, nono you messed up the messages, use this post:
HalfBit wrote:
bovy wrote:
Nice one thanks, have got the kong 29300-6 just need to find a telnet guide and give it a go, bit nervous first time doing over telnet Wink

There's also the first step to figure out how to get the file onto the router (either attached USB or HDD, or SCP to transfer the file).

On WinSCP:
1 Select New Site;
2 File protocol: SCP;
3 Hostname: your router IP; Default port is 22, but may vary depending on custom configs
4 Username: root
5 Password: your admin pass
6 Drag downloaded firmware from Download folder and drop in /tmp

On PuTTY;
1 SSH or telnet to your router's IP address.
2 Login using root user and admin password;
3 Type:
cd /tmp (Enter)
mtd -r write xxxxx.bin linux (Enter) (Replace xxxxx with your firmware filename...)


The "On WinSCP" steps are needed to do the "On PuTTy" steps, they're not independent.

If SCP is not working for you try to:
1 Telnet into router
2 Login
3 Type:
cd /tmp (Enter)
wget ftp://ftp.dd-wrt.com/betas/2016/03-02-2016-r29193/netgear-r6250/netgear-r6250-webflash.bin (Enter)
mtd -r write netgear-r6250-webflash.bin linux (Enter)

Not really sure if wget works on ddwrt, I can't check it out since I haven't got a ddwrt router anymore. But I think it works from what I have read in these forums.
That should download the 29193 Brainslayer firmware. Change the link to whatever firmware you want and next line too since filename would be different.

EDIT: fixed mtd write command


Last edited by Xeon2k8 on Thu May 11, 2017 11:12; edited 2 times in total
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 15:10    Post subject: Reply with quote
right, so

got it downloaded as per step 1


step 2

failed again with the mtd command?


see below!

:/tmp# mtd -r write netgear-r6250-webflash.bin
Usage: mtd [<options> ...] <command> [<arguments> ...] <device>

The device is in the format of mtdX (eg: mtd4) or its label.
mtd recognizes these commands:
unlock unlock the device
resetbc reset bootcounter for WRT1900AC/WRT1200AC/WRT1900ACv2
erase erase all data on device
write <imagefile>|- write <imagefile> (use - for stdin) to device
Following options are available:
-q quiet mode (once: no [w] on writing,
twice: no status messages)
-r reboot after successful command
-f force write without trx checks
-e <device> erase <device> before executing the command

Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
mtd -r write linux.trx linux
Xeon2k8
DD-WRT Guru


Joined: 11 Feb 2016
Posts: 1288

PostPosted: Mon Aug 22, 2016 15:13    Post subject: Reply with quote
Yeah f..ck sorry my bad:

mtd -r write netgear-r6250-webflash.bin linux (enter)

There.

Edit. Actually you should have concluded from the error and a bit reading on these posts.


Last edited by Xeon2k8 on Mon Aug 22, 2016 15:17; edited 1 time in total
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 15:13    Post subject: Reply with quote
do i not just do this?

step 3: Write the firmware to flash.

write dd-wrt.v2x_generic.bin linux
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 15:21    Post subject: Reply with quote
dont know whats going on

i got this message I dont know if it is flashing or not


Unlocking linux ...
Could not unlock MTD device: linux
linux: Not supported
Writing from netgear-r6250-webflash.bin to linux ... [w] [[w] [w]

no lights flashing...?
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 15:26    Post subject: Reply with quote
im using command from the guide, write -netgear-r6250-webflash.bin lunux
seems to have flashed ok now...about to reboot watch space!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Mon Aug 22, 2016 15:27    Post subject: Reply with quote
It is writing Smile
Ignore the error and be patient
The error is "normal"

bovy wrote:
dont know whats going on

i got this message I dont know if it is flashing or not


Unlocking linux ...
Could not unlock MTD device: linux
linux: Not supported
Writing from netgear-r6250-webflash.bin to linux ... [w] [[w] [w]

no lights flashing...?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
bovy
DD-WRT Novice


Joined: 19 Aug 2016
Posts: 12

PostPosted: Mon Aug 22, 2016 15:31    Post subject: Reply with quote
Firmware: DD-WRT v3.0-r29193 (03/02/16)

is installed woohoo Wink

thank you for all your help.


Now to see if it fixes the wierd issues I had with this ddwrt

- specifically the problem I had was then using openvpn and the policy based routing was active and connected, it would not hand out any new IP addresses to wireless clients ..and some other odd things! Smile
Xeon2k8
DD-WRT Guru


Joined: 11 Feb 2016
Posts: 1288

PostPosted: Mon Aug 22, 2016 15:32    Post subject: Reply with quote
Yeah from what I'm reading the error is normal, is some debugging thing.

mtd stops some services among other things, while doing write only writes the firmware.
Xeon2k8
DD-WRT Guru


Joined: 11 Feb 2016
Posts: 1288

PostPosted: Mon Aug 22, 2016 15:34    Post subject: Reply with quote
Remember to run erase nvram too and don't load ddwrt config from file, do it manually.

bovy wrote:
Firmware: DD-WRT v3.0-r29193 (03/02/16)

is installed woohoo Wink

thank you for all your help.


Now to see if it fixes the wierd issues I had with this ddwrt

- specifically the problem I had was then using openvpn and the policy based routing was active and connected, it would not hand out any new IP addresses to wireless clients ..and some other odd things! Smile
Goto page Previous  1, 2 Display posts from previous:    Page 2 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