ASUS RT-G32

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:38, 30 April 2010 (edit)
Glenn (Talk | contribs)
(+cat)
← Previous diff
Current revision (15:00, 2 April 2018) (edit) (undo)
Ian5142 (Talk | contribs)
(Added link to Where do I download firmware.)
 
(21 intermediate revisions not shown.)
Line 1: Line 1:
-== '''Flashing DD-WRT on the ASUS RT-G32: Step-By-Step Instructions''' ==+= Introduction =
-by --[[User:Tilex|Tilex]] 01:35, 20 January 2010 (CET)+This is a step by step guide to flashing dd-wrt onto an ASUS RT-G32.
 +Hardware: ASUS RT-G32 (this is not the Rev B version!)
-=== '''Quick Info''' ===+dd-wrt version: DD-WRT v24-sp2 (11/21/10) std (SVN revision 15778)
-router flashed: brand new ASUS RT-G32 (obtained in January 2010. came with asus firmware v3.0.1.7)+OS used to flash: Windows 7
-dd-wrt build flashed: v24-sp2 (12/28/09) std (SVN revision 13525)+= Preparation =
 +* Download [http://support.asus.com/download/download.aspx?model=RT-G32&os=17&SLanguage=en-us ASUS firmware]. I used RT-G32_V3.0.2.1_RU09.bin
 +* Download the [http://support.asus.com/download/download.aspx?model=RT-G32&os=17&SLanguage=en-us ASUS Firmware Restoration tool]. I used version 1.0.12.0
 +* Network settings needed for ASUS flashing tool.
 +** IP: 192.168.1.254
 +** Subnet Mask: 255.255.255.0
 +** Gateway 192.168.1.1
 +** DNS can be left blank.
 +** Set these in Control Panel -> Network Connections -> Local Area Connection -> Properties -> TCP/IP -> Properties on Windows XP.
 +* Download asus-to-dd-wrt.bin. [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/11-21-10-r15778/Asus_RTG32/asus-to-dd-wrt.bin Build 15778] has been very stable for me for over a year.
 +* You should be connected to the router with a network cable on port 4.
-OS used to flash: Windows 7 x64+= Try web Asus Software Update =
 +* If you are fresh out of the box this step is for you. This has worked for some but not others. It is easier than the other method so try it first.
 +* If you have old ddwrt firmware go to [http://www.dd-wrt.com/wiki/index.php/ASUS_RT-G32#Uninstall_old_ddwrt_firmware uninstall old ddwrt firmware].
 +# Browse to the Asus web interface at 192.168.1.1
 +# Select Software Upgrade
 +# Browse to the asus-to-dd-wrt.bin file.
 +# Let it flash and reboot. You now have DD-WRT.
 +If it doesn't let you flash the file you can skip on to the [http://www.dd-wrt.com/wiki/index.php/ASUS_RT-G32#Install_dd-wrt_using_ASUS_Firmware_Restoration_utility install dd-wrt using the restore tool].
-=== '''Preparation''' ===+If you have old ddwrt firmware or other issues the move throw the steps in order (some steps may still tell you to skip ahead if you meet certain conditions).
-* Start off with a fresh RT-G32. Reset it to factory defaults.+
-* Set your ethernet card up to use a static ip. Use 192.168.1.166, gateway 192.168.1.1, no dns server.+
-* You'll need to run a TFTP server. I used [http://tftpd32.jounin.net/tftpd32_download.html Tftpd32].+
-* You'll also need a telnet client. I used [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html putty].+
-* Download [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/12-28-09-r13525/Asus_RTG32/linux.bin linux.bin] from [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FBrainSlayer-V24-preSP2%2F12-28-09-r13525%2FAsus_RTG32/ here].+
-* place linux.bin in the root of your TFTP directory.+
 += Uninstall old ddwrt firmware =
-=== '''Connecting to RedBoot''' ===+== If you already have stock ASUS firmware on your G32 skip this step! ==
 +You can move on to the [http://www.dd-wrt.com/wiki/index.php/ASUS_RT-G32#Stock_ASUS_Firmware_Install next step] if you already have stock asus firmware installed OR if you have installed ddwrt using this guide.
-In order to flash the router, you'll need to access RedBoot on the router via telnet.+This uninstall section is only meant to help undo changes from the old flashing method that was used before Dec 13 2010. You ONLY have to do this step if you have a ddwrt install from before that date.
 +== Requirements for this step ==
 +* A TFTP server. I used [http://tftpd32.jounin.net/tftpd32_download.html Tftpd32]
 +* A telnet client. I used [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY]
 +* A special config file: [http://web.archive.org/web/20100719092611/http://vladmgn.ru/wp-content/uploads/2010/02/config.txt config.txt]. There are links to mirrors of this file at the bottom of this guide.
-Here are the settings I used for putty:+In this step we will get back to stock ASUS firmware and factory settings. This is important as the newer ddwrt firmware can't be installed on the G32 without starting from a good state.
 +This step is only needed if you had installed ddwrt on the RT-G32 with the old guide. You might also need to do this if your router is non responsive from some mishap.
-host name: 192.168.1.1+In order to flash the router, you'll need to access RedBoot on the router via telnet. You also need to have a tftp server running.
-port: 9000+Putty settings for telnet (best to save these since it might take more than one try to connect):
 +* Host Name: 192.168.1.1
 +* Port: 9000
 +* Connection Type: telnet
 +* close window on exit: never
-connection type: telnet 
-close window on exit: never+== Uninstall old DDWRT ==
 +# Start the TFTP server.<br />Make sure you place the config file you downloaded earlier in its serving directory.<br />I'll refer to this file by the name: config<br />If you downloaded config.txt then you'll need to use config.txt wherever I use config below.
 +# Connect:
 +## Plug your ethernet cable in to port 4 on the router.
 +## Then plug in the power to the router, wait 2-3 seconds (until you have valid network connection, windows should tell you).
 +## Click "Open" in putty to start your telnet session.<br />This may take you a few tries to get it to connect.
 +## This is what the telnet screen shows on connection<br />== Executing boot script in 1.920 seconds - enter ^C to abort<br /><br />^C<br /><br />RedBoot>
 +# Enter these commands into Redboot (my comments are in parentheses):
 +## fis init
 +## y
 +## ip_address -l 192.168.1.1/24 -h 192.168.1.254
 +## load -r -b %{FREEMEMLO} config
 +## fis create -l 0x00010000 -f 0xBFFD0000 -e 0x00000000 -r 0xBFFD0000 config
 +## fconfig (press enter twice)
 +## fis load -l vmlinux.bin.l7 (you don't have this file but its part of the plan)
 +## exec -c "root=/dev/mtdblock1 of rootfs=squashfs" (press enter 12 times)
 +## y (to the only y or n question)
 +## reset
 +# Close putty and tftpd.<br />If you forget to close them you might get socket errors later when you try to use the ASUS Firmware utility.
-Plug your ethernet cable in to port 4 on the router. Then plug in the power to the router, wait 3 seconds, then click "Open" in putty to start your telnet session. This may take you a few tries to get it to connect. On a successful connection, putty should display something like this:+== Install ASUS firmware using ASUS Firmware Restoration utility ==
 +In this step we install a stock firmware using the ASUS Firmware Restoration utility. We do this so in a future step we'll be able to use the ASUS Firmware Restoration utility to install newer versions of ddwrt since for whatever reason the web flash part of the ddwrt doesn't work for the G32.
 +# Start the ASUS Firmware Restoration utility.
 +# Browse to the RT-G32_V3.0.2.1_RU09.bin (or whatever stock firmware version you downloaded).
 +# Unplug the router.
 +# Press and hold the reset button.
 +# Plug the router back in while still holding the reset button.
 +# In 2 to 3 seconds (as soon as you have a valid network connection) press the "Upload" button.
 +# Release the reset button around 3% complete or so.
 +# The router will reboot after installing the firmware.
 +# After reboot browse to 192.168.1.1 -> administration and reset the router to factory defaults.
-== Executing boot script in 1.920 seconds - enter ^C to abort+= Install dd-wrt using ASUS Firmware Restoration utility =
 +== This is the method to install future upgrades of dd-wrt ==
 +With this new flashing method G32 users are finally able to get newer builds of dd-wrt consistently despite the web interface not allowing upgrades. Using the ASUS tool it's still pretty easy.
-^C+After going through this guide this is the only step you'll need to install new versions of ddwrt. So after having ddwrt on the G32 and you see a newer build you would like to install you just need to do this last step of this guide.
-RedBoot>+Firmware files can be found here: [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware?]]
 +== Installation ==
 +# Start the ASUS Firmware Restoration utility.
 +# Browse to the asus-to-dd-wrt.bin.
 +# Unplug the router.
 +# Press and hold the reset button.
 +# Plug the router back in while still holding the reset button.
 +# In 2 to 3 seconds (as soon as you have a valid network connection) press the "Upload" button.
 +# Release the reset button around 3% complete or so.
 +# The router will reboot after installing the firmware.
 +# After reboot browse to 192.168.1.1 -> administration and reset the router to factory defaults. (you should only have to do this coming from ASUS firmware).
 +# Clear your browser cache. If you can browse to dd-wrt web interface and see the updated version but are getting issues with apply.cgi not working you need to clear cookies and cache. After clearing it everything should be working smoothly.
-=== '''Flashing From RedBoot''' ===+= Additional Configuration =
 +== Loop back issues ==
 +If you are having issues connecting to a domain you host from the LAN but no trouble connecting from a computer at some one else's house you might be having loop back issues.
 +# Browse to the ddwrt web interface at 192.168.1.1
 +# Open the Administration -> Commands tab
 +# In the Command Shell -> Commands textbox place this script:<br />insmod ipt_mark<br />insmod xt_mark<br /><br />iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001<br />iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE
 +# Click the Save Firewall button
 +# The router will reboot. The problem should now be fixed.
-now enter these commands into your telnet client exactly: [my comments are in square brackets]+See [http://svn.dd-wrt.com:8000/ticket/1868 ticket 1868] for more details on loop back issues.
 += Links =
 +* Beta DD-WRT [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads/others/eko/BrainSlayer-V24-preSP2/ firmware versions]. Just select whatever date or build number you want and then look for the Asus_RTG32 folder in that directory e.g. 2011-> 12-20-11-r18024 -> Asus_RTG32.
 +** [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/11-21-10-r15778/Asus_RTG32/asus-to-dd-wrt.bin Beta version 15778] I have used for over a year without issue.
-ip_address -l 192.168.1.1/24 -h 192.168.1.166 [press enter]+* [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63618 DD-WRT Forum: ASUS RT-G32 Support]
-fis init [press enter]+* Links to the config file used for recovery
 +** Wayback machine: [http://web.archive.org/web/20100719092611/http://vladmgn.ru/wp-content/uploads/2010/02/config.txt config.txt]
 +** Mirror: [http://klehm.net/dd-wrt/asus-rt-g32/config.txt config.txt]
 +** Mirror: [http://www.dd-wrt.com/phpBB2/download.php?id=20957 config.txt] (have to be logged in)
 +** Original source of the config file but is now defunct: http://vladmgn.ru/?p=24
-y [press enter]+Thanks to Tylex, Scythe, and many many others for researching how to flash ddwrt on the RT-G32.
- +
-load -r -b 0x80041000 linux.bin [press enter]+
- +
-fis create linux [press enter. there won't be any console output until it's done running... took just under 4 minutes for me.]+
- +
-fconfig [press enter twice]+
- +
-fis load -l linux [press enter]+
- +
-exec [press enter exactly 12 times]+
- +
-y [press enter. it will take about 5 seconds to respond.]+
- +
-reset [press enter]+
- +
- +
- +
-At this point the router will reboot. Wait at least 1 minute and 25 seconds and then you should be able to point your browser to http://192.168.1.1/ and access the dd-wrt control panel. (note: it always seems to take about 1 minute and 25 seconds for the router to boot up. In other words, every time you apply power or restart the router, it will take about 1 minute and 25 seconds for the dd-wrt control panel to be accessable.)+
- +
- +
-Once you're in the dd-wrt control panel, goto Administration/Factory Defaults, click "Yes" and "Apply Settings".+
- +
- +
- +
-All done!+
- +
- +
- +
-[http://i47.tinypic.com/2ewjx4z.jpg RT-G32 Router Information Screenshot]+
- +
-[http://i48.tinypic.com/5cjbbo.jpg RT-G32 System Information Screenshot]+
- +
- +
-=== '''Other Links of Interest''' ===+
- +
-[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63618 DD-WRT Forum: ASUS RT-G32 Support]+
- +
-[http://support.asus.com.tw/download/download.aspx?product=11&model=RT-G32&SLanguage=en-us ASUS RT-G32 Factory Firmware]+
- +
-[http://vladmgn.ru/?p=24 ASUS RT-G32 Back to Firmware]+
- +
---[[User:Tilex|Tilex]] 01:35, 20 January 2010 (CET)+
[[Category:Asus guides]] [[Category:Asus guides]]

Current revision

Contents

[edit] Introduction

This is a step by step guide to flashing dd-wrt onto an ASUS RT-G32.

Hardware: ASUS RT-G32 (this is not the Rev B version!)

dd-wrt version: DD-WRT v24-sp2 (11/21/10) std (SVN revision 15778)

OS used to flash: Windows 7

[edit] Preparation

  • Download ASUS firmware. I used RT-G32_V3.0.2.1_RU09.bin
  • Download the ASUS Firmware Restoration tool. I used version 1.0.12.0
  • Network settings needed for ASUS flashing tool.
    • IP: 192.168.1.254
    • Subnet Mask: 255.255.255.0
    • Gateway 192.168.1.1
    • DNS can be left blank.
    • Set these in Control Panel -> Network Connections -> Local Area Connection -> Properties -> TCP/IP -> Properties on Windows XP.
  • Download asus-to-dd-wrt.bin. Build 15778 has been very stable for me for over a year.
  • You should be connected to the router with a network cable on port 4.

[edit] Try web Asus Software Update

  • If you are fresh out of the box this step is for you. This has worked for some but not others. It is easier than the other method so try it first.
  • If you have old ddwrt firmware go to uninstall old ddwrt firmware.
  1. Browse to the Asus web interface at 192.168.1.1
  2. Select Software Upgrade
  3. Browse to the asus-to-dd-wrt.bin file.
  4. Let it flash and reboot. You now have DD-WRT.

If it doesn't let you flash the file you can skip on to the install dd-wrt using the restore tool.

If you have old ddwrt firmware or other issues the move throw the steps in order (some steps may still tell you to skip ahead if you meet certain conditions).

[edit] Uninstall old ddwrt firmware

[edit] If you already have stock ASUS firmware on your G32 skip this step!

You can move on to the next step if you already have stock asus firmware installed OR if you have installed ddwrt using this guide.

This uninstall section is only meant to help undo changes from the old flashing method that was used before Dec 13 2010. You ONLY have to do this step if you have a ddwrt install from before that date.

[edit] Requirements for this step

  • A TFTP server. I used Tftpd32
  • A telnet client. I used PuTTY
  • A special config file: config.txt. There are links to mirrors of this file at the bottom of this guide.

In this step we will get back to stock ASUS firmware and factory settings. This is important as the newer ddwrt firmware can't be installed on the G32 without starting from a good state.

This step is only needed if you had installed ddwrt on the RT-G32 with the old guide. You might also need to do this if your router is non responsive from some mishap.

In order to flash the router, you'll need to access RedBoot on the router via telnet. You also need to have a tftp server running.

Putty settings for telnet (best to save these since it might take more than one try to connect):

  • Host Name: 192.168.1.1
  • Port: 9000
  • Connection Type: telnet
  • close window on exit: never


[edit] Uninstall old DDWRT

  1. Start the TFTP server.
    Make sure you place the config file you downloaded earlier in its serving directory.
    I'll refer to this file by the name: config
    If you downloaded config.txt then you'll need to use config.txt wherever I use config below.
  2. Connect:
    1. Plug your ethernet cable in to port 4 on the router.
    2. Then plug in the power to the router, wait 2-3 seconds (until you have valid network connection, windows should tell you).
    3. Click "Open" in putty to start your telnet session.
      This may take you a few tries to get it to connect.
    4. This is what the telnet screen shows on connection
      == Executing boot script in 1.920 seconds - enter ^C to abort

      ^C

      RedBoot>
  3. Enter these commands into Redboot (my comments are in parentheses):
    1. fis init
    2. y
    3. ip_address -l 192.168.1.1/24 -h 192.168.1.254
    4. load -r -b %{FREEMEMLO} config
    5. fis create -l 0x00010000 -f 0xBFFD0000 -e 0x00000000 -r 0xBFFD0000 config
    6. fconfig (press enter twice)
    7. fis load -l vmlinux.bin.l7 (you don't have this file but its part of the plan)
    8. exec -c "root=/dev/mtdblock1 of rootfs=squashfs" (press enter 12 times)
    9. y (to the only y or n question)
    10. reset
  4. Close putty and tftpd.
    If you forget to close them you might get socket errors later when you try to use the ASUS Firmware utility.


[edit] Install ASUS firmware using ASUS Firmware Restoration utility

In this step we install a stock firmware using the ASUS Firmware Restoration utility. We do this so in a future step we'll be able to use the ASUS Firmware Restoration utility to install newer versions of ddwrt since for whatever reason the web flash part of the ddwrt doesn't work for the G32.

  1. Start the ASUS Firmware Restoration utility.
  2. Browse to the RT-G32_V3.0.2.1_RU09.bin (or whatever stock firmware version you downloaded).
  3. Unplug the router.
  4. Press and hold the reset button.
  5. Plug the router back in while still holding the reset button.
  6. In 2 to 3 seconds (as soon as you have a valid network connection) press the "Upload" button.
  7. Release the reset button around 3% complete or so.
  8. The router will reboot after installing the firmware.
  9. After reboot browse to 192.168.1.1 -> administration and reset the router to factory defaults.

[edit] Install dd-wrt using ASUS Firmware Restoration utility

[edit] This is the method to install future upgrades of dd-wrt

With this new flashing method G32 users are finally able to get newer builds of dd-wrt consistently despite the web interface not allowing upgrades. Using the ASUS tool it's still pretty easy.

After going through this guide this is the only step you'll need to install new versions of ddwrt. So after having ddwrt on the G32 and you see a newer build you would like to install you just need to do this last step of this guide.

Firmware files can be found here: Where do I download firmware?

[edit] Installation

  1. Start the ASUS Firmware Restoration utility.
  2. Browse to the asus-to-dd-wrt.bin.
  3. Unplug the router.
  4. Press and hold the reset button.
  5. Plug the router back in while still holding the reset button.
  6. In 2 to 3 seconds (as soon as you have a valid network connection) press the "Upload" button.
  7. Release the reset button around 3% complete or so.
  8. The router will reboot after installing the firmware.
  9. After reboot browse to 192.168.1.1 -> administration and reset the router to factory defaults. (you should only have to do this coming from ASUS firmware).
  10. Clear your browser cache. If you can browse to dd-wrt web interface and see the updated version but are getting issues with apply.cgi not working you need to clear cookies and cache. After clearing it everything should be working smoothly.

[edit] Additional Configuration

[edit] Loop back issues

If you are having issues connecting to a domain you host from the LAN but no trouble connecting from a computer at some one else's house you might be having loop back issues.

  1. Browse to the ddwrt web interface at 192.168.1.1
  2. Open the Administration -> Commands tab
  3. In the Command Shell -> Commands textbox place this script:
    insmod ipt_mark
    insmod xt_mark

    iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001
    iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE
  4. Click the Save Firewall button
  5. The router will reboot. The problem should now be fixed.

See ticket 1868 for more details on loop back issues.

[edit] Links

  • Beta DD-WRT firmware versions. Just select whatever date or build number you want and then look for the Asus_RTG32 folder in that directory e.g. 2011-> 12-20-11-r18024 -> Asus_RTG32.

Thanks to Tylex, Scythe, and many many others for researching how to flash ddwrt on the RT-G32.