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
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?
@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
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.
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
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
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!
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
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!