Install dd-wrt on linksys router

Admin

hi
Staff member
Joined
Jan 14, 2015
Messages
137
Points
28
Credits
112,477
Username Style
1. Restore firmware to 1.1.40.160989, disable disable automatic updates


2. Flash the default stripped down version of DD-WRT (linksys-ea6400-numinit-super-hacky-smaller-version.bin)

3. ping 192.168.1.1 until <1ms

3. a. navigate to 192.168.1.1

4. Once the flash completes Log into DD-WRT. Create a User/Password (Suggestion: User = “root” and Password = “admin”; these are just temporary)



---NOTE: You will need the following information if you EVER want to revert back to stock!---

5. Make/save a backup of your stock CFE by browsing to: http://192.168.1.1/backup/cfe.bin
Save the resulting file to your computer.


6. Enable Telnet (enabled by default in the Super Hacky firmware) and SSHd on the router (“Services” tab).



6. Use PuTTY to Telnet (or SSH, using "root" and "admin" for user and password, respectively) to the router and run the following command:

telnet 192.168.1.1

nvram get uuid_key

Copy or write down this UUID_key (it will go in the Xvortex CFE).




7. Back up the entire nvram to a text file on the router using the following command in PuTTY (you will retrieve this file and transfer it to your computer in a later step):
Code:

cd /tmp/root

nvram show >> nvram_dump.txt

DO NOT POWER OFF ROTUER YET



8. Modify New CFE with unique device parameters.

a. Open CFEEdit.exe (included with CFE packages zip file linked above).
b. Click File-> Open CFE… and select the binary file.(you saved this file in step 5)
c. Go to the Advanced Mode tab, then modify accordingly as described in the following steps

login into 192.168.1.1 router gui,
record the specific MAC addresses that should be placed in the CFE binary.
(Info found in Status Sys-Info Tab)


Router ->
Lan Mac -> A7:B7:13: 34:K9:32

Router Wireless Interface -->
wl0 -> A7:B7:13: 34:K9:32

Router Wireless Interface -->
wl1 -> A7:B7:13: 34:K9:34

Update the MAC information in the CFE file.


eth0macaddr = LAN MAC (stays the same)
wl0 = wireless MAC wl0 + 2
wl0 = wireless MAC wl1 + 4

example:

wl0 = A7:B7:13: 34:K9:32 + 2 = A7:B7:13: 34:K9:36
wl1 = A7:B7:13: 34:K9:34 + 4 = A7:B7:13: 34:K9:38


Hex-Sequence.png


(in my case i only had to change 3 things)
et0macaddr=
0:macaddr=
1:macaddr=



9. Turn the unit around and the following parameters come from the UUID step above and the bottom of the unit near(underneath the serial code sticker).
“secret_code” is the WPS Pin. Edit the following parameters in the CFE:

default_passphrase=xxxxxxxxxx
default_ssid=Linksysxxxxx
uuid_key=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
secret_code=xxxxxxxx




10. In CFEEdit.exe, select File -> Save As and save the updated CFE for use in the next step.


NOTE: If you encounter an "Insufficient memory in FLSH segment!" error message at this point, you must delete some extra variables or parameters in the CFE. It is recommended that you delete these parameters one or two at a time until the file size is reduced to the point that it will save.

The following parameters may be safely deleted from the CFE without any apparent effect on router performance (and in fact are not present in the chinese version of the CFE):


1:rxgains5gelnagaina2=3
1:rxgains5ghelnagaina1=2
1:rxgains5ghelnagaina2=3
1:rxgains5ghtrelnabypa1=1
1:rxgains5ghtrelnabypa2=1
1:rxgains5ghtrisoa1=4
1:rxgains5ghtrisoa2=4
1:rxgains5gmelnagaina1=2
1:rxgains5gmelnagaina2=3
1:rxgains5gmtrelnabypa1=1
1:rxgains5gmtrelnabypa2=1
1:rxgains5gmtrisoa1=4
1:rxgains5gmtrisoa2=4




11. Enable SSHd on the Services tab of the DD-WRT GUI if you haven’t already.




12. Use WinSCP (use the 192.168.1.1 ip address, and "root" "admin" for username and password) If message click UPDATE
and navigate to the "/tmp/root" folder on the router.


13. Transfer (drag & drop from the right side of the WinSCP window to the left side) the "nvram_dump.txt" file from the router to your computer.


14. Use WinSCP to transfer (drag & drop from the left side of the WinSCP window to the right side) the modified CFE to the router in /tmp/root



15. Use PuTTY to Telnet or SSH to the router and run the following commands, replacing <directory> and <filename> with the appropriate info:
Code:

telnet 192.168.1.1

login

mtd unlock /dev/mtd0

cd /tmp/root

mtd –f write <filename.bin> mtd0



16. Once done, unplug the router. Hold the WPS button while plugging it in and continue to hold for about 30 to 60 seconds (that’s probably an necessarily long time, but no sense in rushing things here).




If your router reboots to the factory Linksys firmware:


re-flash hacky small build by powering off the router and quickly navigating to 192.168.1.1 and there will be a secret menu where you can flash


- set user and pass root admin

-re-flash again the hacky small build via the adminstration-> upgrade firmware tab



17. Enable SSHd on the Services tab of the DD-WRT GUI if you haven’t already.




18. Transfer (drag & drop from the left side of the WinSCP window to the right side) the desired DD-WRT firmware .bin to the router. Take note of the folder to which you transfer the file; the "/tmp/root" folder works great for this step, and you should already be there.




19. Use PuTTY to Telnet or SSH to the router and flash the new firmware. Run the following commands, one line at a time, replacing <directory> and <filename> with the appropriate info:
Code:

telnet 192.168.1.1

cd <directory>

mtd -f write <filename> linux2

(Wait for it to write)

mtd -f write <filename> linux

(Wait for it to write)

erase nvram

reboot


Note that you may encounter an error message similar to “Could not unlock MTD device: linux2” or “[e]Erasing mtd failed: linux2” when running this command. This is normal; it actually does work.



20. Disable Telnet Services Tab
21. Disable Wireless , Wireless Tab

DONE



Upgrading

1. Enable SSHd and Telnet on the Services tab of the DD-WRT GUI

2. upgrade via Administration Tab -> upgrade firmware

3. wait about 30 minutes, then reboot if flash didn't revert to old

4. Disable SSHd and Telnet on the Services tab of the DD-WRT GUI


Double check

1. turn off the ttraff daemon using the radio buttons at the bottom of the "Services" tab

2. Administration--> Management--> Web Access--> Info Site Password Protection "Enabled"
Block sys-info from outside world

DONE
 
Last edited:
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet. Forum-List.com