How to Flash OpenWRT to DD-WRT

By Dave Wilson

Run the Wget and Mtd command line utilities included with OpenWRT to install DD-WRT router firmware on an OpenWRT router. Check the DD-WRT site to find the most current, stable firmware version compatible with your router hardware in preparation for the install. Access the OpenWRT router command console through SSH to install DD-WRT, and perform the DD-WRT installation via command line, which requires fewer steps and less complexity.

Things You'll Need

  • Windows 7 computer with the PuTTY program installed
  • URL of the DD-WRT image you want to flash
  • IP address of the OpenWRT router
  • SSH authentication credentials for the OpenWRT router
  • Ethernet network patch cable

Step 1

Plug one end of the Ethernet network patch cable into the network interface socket on the Windows 7 computer. Connect the other end of the Ethernet patch cable into an OpenWRT router LAN port.

Step 2

Click the Windows “Start” button and type “ncpa.cpl” into the “Search” box and press “Enter.” The “Network Connections” window will display.

Step 3

Right-click on the “Local Area Connection” that displays a “Connected” status and click “Properties.” Click the “Networking” tab.

Step 4

Click the “Internet Protocol Version 4 (TCP/IPv4)” item and then “Properties.” Click the “Obtain an IP address automatically” and the “Obtain DNS server address automatically” radio buttons. Click the “OK” button.

Step 5

Click “OK” in the “Local Area Connection Properties” window. Reboot the Windows 7 computer.

Step 6

Click the Windows “Start” button and type “cmd” in the “Search” box. Right-click the command line icon that appears and click “Run as Administrator.”

Step 7

Type “ipconfig /all” at the command prompt and tap “Enter.” Note the gateway IP address listed in the command line output.

Step 8

Click the task bar “Start” button and type “putty.exe” into the “Search” box. Press the “Enter” key.

Step 9

Type the gateway IP address noted earlier into the “Host Name (or IP address)” field and click “Open.”

Step 10

Enter the OpenWRT SSH user name and password when prompted and press “Enter.”

Step 11

Type “cd /tmp” at the command prompt and tap “Enter.” Write “wget http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.your_firmware.bin” on the command line. Replace the “http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.your_firmware.bin” with the URL of the firmware you want to install and press “Enter.”

Step 12

Type “mtd -r write /tmp/your_firmware.bin linux” at the command line. Replace “your_firmware.bin” with the name of the firmware you are installing and press “Enter.”

Step 13

Wait 5 minutes. Reboot the router.