Those are the old instructions, for Kong's builds, pre-BS builds. Look back in this thread to see how this is done for BS's newer builds. The commands are different now, but the idea is the same. Here's an example:
Used these commands to reset the boot partition number and reboot back into Linksys stock firmware:
ubootenv get boot_part
ubootenv set boot_part 1
ubootenv get boot_part
reboot
The first command gets the current boot partition (which was 2 for me). Second command sets the boot partition to 1. Third command verifies that the boot partition was reset to 1. Last one reboots into Linksys stock firmware on partition 1. Finally found this above, posted by BrainSlayer.
Hope this helps.
Cosmic_phil wrote:
This was cut and pasted from an earlier post.
There's a command that you can use by telneting into your router to find out what your current boot partiion is. I believe that it's something like "fw_printenv boot_part", but I'm not sure at this point.
Once you find that out, if you're that you have stock Linksys firmware in the other boot partition, you can switch the boot partition to that one. Like if your dd-wrt is using boot partition 1, then you would do this:
fw_setenv boot_part 2
reboot
which will boot from the stock Linksys firmware in boot partion 2.
Looks like internal nslookup utility doesn't query DNS server from the commandline. I have deliberately specified an invalid IP for DNS server and the query result is still definitely valid.
DD-WRT v3.0-r27805 std (09/11/15)
Those are the old instructions, for Kong's builds, pre-BS builds. Look back in this thread to see how this is done for BS's newer builds. The commands are different now, but the idea is the same. Here's an example:
Used these commands to reset the boot partition number and reboot back into Linksys stock firmware:
ubootenv get boot_part
ubootenv set boot_part 1
ubootenv get boot_part
reboot
The first command gets the current boot partition (which was 2 for me). Second command sets the boot partition to 1. Third command verifies that the boot partition was reset to 1. Last one reboots into Linksys stock firmware on partition 1. Finally found this above, posted by BrainSlayer.
Hope this helps.
Cosmic_phil wrote:
This was cut and pasted from an earlier post.
There's a command that you can use by telneting into your router to find out what your current boot partiion is. I believe that it's something like "fw_printenv boot_part", but I'm not sure at this point.
Once you find that out, if you're that you have stock Linksys firmware in the other boot partition, you can switch the boot partition to that one. Like if your dd-wrt is using boot partition 1, then you would do this:
fw_setenv boot_part 2
reboot
which will boot from the stock Linksys firmware in boot partion 2.
Sorry for being a novice at this. I went to http://192.168.2.1/sysinfo.cgi and it showed:
fw_printenv boot_part: boot_part=2
Do I need to change this to boot_part=1 before applying the DD-WRT firmware?
If so, how do I Telnet into the router?
Those are the old instructions, for Kong's builds, pre-BS builds. Look back in this thread to see how this is done for BS's newer builds. The commands are different now, but the idea is the same. Here's an example:
Used these commands to reset the boot partition number and reboot back into Linksys stock firmware:
ubootenv get boot_part
ubootenv set boot_part 1
ubootenv get boot_part
reboot
The first command gets the current boot partition (which was 2 for me). Second command sets the boot partition to 1. Third command verifies that the boot partition was reset to 1. Last one reboots into Linksys stock firmware on partition 1. Finally found this above, posted by BrainSlayer.
Hope this helps.
Cosmic_phil wrote:
This was cut and pasted from an earlier post.
There's a command that you can use by telneting into your router to find out what your current boot partiion is. I believe that it's something like "fw_printenv boot_part", but I'm not sure at this point.
Once you find that out, if you're that you have stock Linksys firmware in the other boot partition, you can switch the boot partition to that one. Like if your dd-wrt is using boot partition 1, then you would do this:
fw_setenv boot_part 2
reboot
which will boot from the stock Linksys firmware in boot partion 2.
Sorry for being a novice at this. I went to http://192.168.2.1/sysinfo.cgi and it showed:
fw_printenv boot_part: boot_part=2
Do I need to change this to boot_part=1 before applying the DD-WRT firmware?
If so, how do I Telnet into the router?
Current dd-wrt releases can be flashed no matter what partition is currently active. If you are on linksys firmware, just flash dd-wrt and you are good to go.
Sorry for being a novice at this. I went to http://192.168.2.1/sysinfo.cgi and it showed:
fw_printenv boot_part: boot_part=2
Do I need to change this to boot_part=1 before applying the DD-WRT firmware?
If so, how do I Telnet into the router?
Sorry, the example I gave above was that way simply because I had Linksys stock firmware in boot partition 1. If your Linksys stock firmware is in boot partition 2, that's fine. When you flash dd-wrt when running your stock Linksys firmware, the dd-wrt firmware will go into boot partition 1. So if you need or want to boot Linksys stock firmware, you'll just need to switch the boot partition back to 2, where the Linksys stock firmware is, and reboot.
To telnet into the router, just use a terminal emulator like putty (there are others, of course). Set it to telnet, and use the address to telnet to as the IP address of your router. For example, if your router's IP address was 192.168.1.1, then you would set the IP address to telnet into as 192.168.1.1. Simple. I suggest trying telnet before you actually need to, so that you have it set up, but that part's totally up to you *smile*.
Last edited by MrDoh on Fri Sep 25, 2015 21:07; edited 2 times in total
reboot and check again if sysinfo.cgi displays boot_part=1
I'm not sure what boot_part you have to be on before flashing dd-wrt _________________ WRT3200ACM openwrt 18.06.5
WRT3200ACM dd-wrt r41791
WRT54GL dd-wrt r21676
Joined: 04 Aug 2012 Posts: 612 Location: behind the screen
Posted: Fri Sep 25, 2015 21:22 Post subject:
MrDoh wrote:
partition 1. If your Linksys stock firmware is in boot partition 2, that's fine.
So you can be on either boot_part before flashing dd-wrt (both work)? _________________ WRT3200ACM openwrt 18.06.5
WRT3200ACM dd-wrt r41791
WRT54GL dd-wrt r21676
Sorry for being a novice at this. I went to http://192.168.2.1/sysinfo.cgi and it showed:
fw_printenv boot_part: boot_part=2
Do I need to change this to boot_part=1 before applying the DD-WRT firmware?
If so, how do I Telnet into the router?
Sorry, the example I gave above was that way simply because I had Linksys stock firmware in boot partition 1. If your Linksys stock firmware is in boot partition 2, that's fine. When you flash dd-wrt when running your stock Linksys firmware, the dd-wrt firmware will go into boot partition 1. So if you need or want to boot Linksys stock firmware, you'll just need to switch the boot partition back to 2, where the Linksys stock firmware is, and reboot.
To telnet into the router, just use a terminal emulator like putty (there are others, of course). Set it to telnet, and use the address to telnet to as the IP address of your router. For example, if your router's IP address was 192.168.1.1, then you would set the IP address to telnet into as 192.168.1.1. Simple. I suggest trying telnet before you actually need to, so that you have it set up, but that part's totally up to you *smile*.
As mentioned above, my router IP is 192.168.2.1. I am on Windows 7, and using the builtin telnet via command prompt, I typed "telnet 192.168.2.1" and got the response:
"Connecting To 192.168.2.1...Could not open connection to the host, on port 23: Connect failed"
What port do I need to use?