Asus WL-520GU

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:24, 11 July 2009 (edit)
Kkoechel (Talk | contribs)
m (Using TFTP on Windows)
← Previous diff
Current revision (03:15, 30 March 2012) (edit) (undo)
Gatorback (Talk | contribs)
(Making the most out of your router)
 
(63 intermediate revisions not shown.)
Line 1: Line 1:
__TOC__ __TOC__
 +
 +For initial flash use same procedure as [[All Asus WL-500xx series routers]]. also see: [http://wl520gu.googlepages.com/ wl520gu.googlepages.com]
 +
 +'''Don't flash with any K26 builds, currently it just wont work'''
 +
 +
== Introduction == == Introduction ==
-The [http://www.asus.com/products.aspx?l1=12&l2=43&l3=0&l4=0&model=1671&modelmenu=1|Asus WL-520GU] WRT is supported as of DD-WRT v.24 RC7. USB (e.g. external [[USB storage|storage]] or [[USB printer sharing|printer]]) support currently require manual work (as of DD-WRT v24 Final Release you ''may'' be able to use the web-GUI to enable USB support).+The [http://www.asus.com/products.aspx?l1=12&l2=43&l3=0&l4=0&model=1671&modelmenu=1|Asus WL-520GU] WRT has been supported as of DD-WRT v.24 RC7. USB (e.g. external [[USB storage|storage]] or [[USB printer sharing|printer]]). As of DD-WRT v24 Final Release you are able to use the web-GUI to enable, setup and configure USB support. You MUST use builds that are tagged '''mini-usb''' or '''mini-usb-ftp''' to do this. Due to the lack of the units flash size (4MB) these builds ''may'' not offer the same Web GUI features of the standard builds. Some memory hungry features like [[Kai Console Gaming|Xbox-KAID]] have been removed in order to provide sufficient space for the USB drivers/modules and FTP functions.
 + 
 + 
 + 
 + 
 + 
 + 
 +It is also worthy to note that the USB 2.0 aspect of this router is very temperamental. If you bought this router in hopes of using USB 2.0, then you may experience problems with certain applications; albeit those mainly include resource intensive Optware programs like Bittorrent transmission.
 + 
 +The only remedy for this (as of now) is to use the USB 1.1 drivers instead.
 + 
 +===Clock Timing Bug===
 +See [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=231599#231599 this thread] about a clock timing bug that affects this model.
== Prerequisites == == Prerequisites ==
Line 7: Line 25:
# [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-520GU ASUS Firmware Restoration Utility] # [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-520GU ASUS Firmware Restoration Utility]
#* Installed as part of the "ASUS WL-520gU wireless router utility program" and is available under "Utilities" #* Installed as part of the "ASUS WL-520gU wireless router utility program" and is available under "Utilities"
-# DD-WRT v.24 RC7+ (not VINT builds)+# DD-WRT v.24 TNG (not VINT builds) Link: [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko/]
-#* [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Frelease+candidates%2FDD-WRT+v24+RC7%2FBroadcom%2FAsus%2FWL520GU/ v.24 RC7]+
#* Build suggestions (see [[What is DD-WRT?#File_Versions|File Versions]] for more information on selecting a version): #* Build suggestions (see [[What is DD-WRT?#File_Versions|File Versions]] for more information on selecting a version):
-#** dd-wrt.v24_mini_asus.trx or dd-wrt.v24_mini_generic.bin (RECOMMENDED -- mini or macro versions required if you want to manually add USB support, or need additional JFFS storage space) +#** dd-wrt.v24_mini_asus.trx (For intial flash) REQUIRED
 +#** dd-wrt.v24_mini_generic.bin (Recommended if you want to manually add USB support, or need additional JFFS storage space)
#** dd-wrt.v24_generic_nokaid.bin (if you want standard features but don't require X-Box [[Kai Console Gaming]]) #** dd-wrt.v24_generic_nokaid.bin (if you want standard features but don't require X-Box [[Kai Console Gaming]])
#** dd-wrt.v24_std_generic.bin #** dd-wrt.v24_std_generic.bin
- Note: The mini_asus.trx build is supposed to be designed to be uploaded as a firmware upgrade through+#** mini_usb.bin (Built in USB support)
- the ASUS stock firmware's web interface. The stock ASUS firmware rejected this build in the author's+#** mini_usb_ftp.bin (Built in USB and FTP support)
- attempt to do this.+
 +Note: The mini_asus.trx build is supposed to be designed to be uploaded as a firmware upgrade through the ASUS stock firmware's web interface. The stock ASUS firmware rejected this build in the author's
 +attempt to do this. For Windows use the Firmware Restoration utility provided with your router to do the initial mini-asus.trx flash. For Vista users, Administrative permissions are required. For Windows 7 users, changing the main executables (.exe) file to Windows XP sp2 compatibility mode is required. For 64bit versions of Windows, make sure the installation path is set to Program Files (x86).
 + 
-== Installation == 
-# Download a compatible version of DD-WRT 
-# Reset the WL-520GU to its defaults (see [[#Reseting Defaults|Resetting Defaults]] below) 
-# Put the WL-520GU in hardware restoration mode (hold down the reset button while powering on the WL-520GU and wait until the power light steadily blinks green). 
-# Upload the DD-WRT firmware with the [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-520GU Asus Firmware Restoration Utility] or TFTP. 
- Note: See the [[#Asus Firmware Restoration Utility|Firmware Restoration Utility]] section for tips on using this utility. 
== Upgrading Firmware == == Upgrading Firmware ==
Line 28: Line 43:
-== Resetting Defaults ==+ 
 +==New Wiki Install Material==
 + 
 +There is a lot of info in this wiki that is seriously out of date. Some people find the Asus Firmware Upgrade Utility to be a complete pain in the arse to download and install, and is useless for Apple and Linux OS users. However, it does come on the disk with a new Asus router and can be used instead of the tftp.exe program if you wish. See [[#Asus Firmware Restoration Utility| Firmware Restoration Utility]] for the simple Windows OS users.
 + 
 +TFTP Method:
 + 
 +# Read the Peacock Announcement, found here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486
 +# Download this program to flash from Windows: http://www.dd-wrt.com/dd-wrtv2/downloads/others/tornado/Windows-TFTP/tftp.exe If you need to flash with Linux, you can use this file: ftp://dd-wrt.com/others/tornado/Linux_Linksys_Tftp/linksys-tftp.tar.bz2, or [advanced users] can use the tftp utility available through most package managers.
 +# Download this file for initial flashing: ftp://dd-wrt.com/others/eko/V24_TNG/svn12548/dd-wrt.v24-12548_NEWD_mini_asus.trx Also download this file for LATER flashing: ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom/dd-wrt.v24_usb_generic.bin OTRW (Ext2) issue: [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=676804#676804]
 +# Do a proper HARD reset on the router in accordance with note 1 of the peacock. That will be a 30-30-30 reset, followed by a power cycle. '''Do not confuse the Red 'EZ Setup' button with the RECESSED reset button.'''
 +# Do a second 30-30-30 reset, but do not power cycle it at the end. This puts the router into restoration mode. Plug a cable in the LAN port of the router, and the ethernet port of your computer. Make sure antivirus and wireless are off in the computer, and nothing else is connected to the computer or the router.
 +# Set your computer to a static IP address of 192.168.1.7 with a subnet mask of 255.255.255.0.
 +# Start the tftp.exe and follow the instructions in note 11 of the peacock announcement. Set the server to 192.168.1.1, leave the password blank, set retries to 20, and choose the dd-wrt.v24-12548_NEWD_mini_asus.trx file you downloaded earlier. Hit upgrade, and the file should upgrade immediately.
 +# Wait. Set a timer for '''FIVE FULL EARTH''' minutes. If you screw this up you could damage your router. WAIT!
 +# The LAN port will remain lit after the upgrade, but no other lights will light. There is no sign that your firmware has flashed, so you HAVE TO TIME IT.
 +# Once the time is up, power cycle the router.
 +# Navigate to 192.168.1.1 and refresh until the router webgui shows up
 +# Type a username and password in the opening page.
 +# Power cycle the router
 +# When you can log back in to the webgui at 192.168.1.1, do ANOTHER hard reset on the router (30-30-30 followed by a power cycle)
 +# Login to the router and enter a username and password. The router can be used at this point.
 +# Download this file if you have not already: ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom/dd-wrt.v24_usb_generic.bin. OTRW (Ext2) issue: [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=676804#676804]
 +# Under the Administration > Firmware Upgrade tab, choose "Reset to default configuration", and pick the dd-wrt.v24_usb_generic.bin file to upgrade the firmware.
 +# Hit "Upgrade" and '''wait five full earth minutes'''.
 +## If uploading via the web does not work for you (it did not for me), you can upload your file with tftp again. I uploaded the dd-wrt.v24_voip_generic.bin this was successfully. I did have to increase the timeout for the voip file for it to work.
 +# Type a username and password in the opening page.
 +# Power cycle the router
 +# When you can log back in to the webgui at 192.168.1.1, do ANOTHER hard reset on the router (30-30-30 followed by a power cycle)
 +# Login to the router and enter a username and password.
 +# Configure your router
 +# Set your computer back to auto IP and autoDNS
 + 
 +==Resetting Defaults==
 + 
There are several ways the WL-520GU's NVRAM can be reset. There are several ways the WL-520GU's NVRAM can be reset.
# Using the Administration -> Factory Defaults web interface. # Using the Administration -> Factory Defaults web interface.
# Selecting the option to reset to Default Settings when upgrading the firmware through the Administration -> Firmware Upgrade web interface. # Selecting the option to reset to Default Settings when upgrading the firmware through the Administration -> Firmware Upgrade web interface.
# Pressing the reset button while booting (see the [[#Reset Button|Reset Button section]] below for ASUS reset button quirks). # Pressing the reset button while booting (see the [[#Reset Button|Reset Button section]] below for ASUS reset button quirks).
-# Use the [http://wl500g.dyndns.org/wl500g-clear-nvram.trx wl500g-clear-nvram.trx] file and [http://wl500g.dyndns.org/wl500g-recover.trx wl500g-recover.trx] utilities.+# Using telnet enter '''erase nvram''' command
-# Last resort when the unit won't boot due to a bad setting -- see this [http://wl500g.info/showthread.php?t=1606 forum post].+#[http://www.dd-wrt.com/phpBB2/download.php?id=11746 Download this file pack] which includes the necessary tools required for the procedure and unrar it. The File pack contains both '''wl500g-clear-nvram.trx''' and the '''wl500g-recover.trx''' utilities.
 + 
 +If using the #5 procedure, do the following:
 + 
 +#Using the Firmware Restoration utility or TFTP, first put the device into restore mode by pressing and holding the '''black''' reset button WHILE plugging the power in. The power LED should continuously flash.
 +#Set your network adapter to a static IP of 192.168.1.10 and subnet mask of 255.255.255.0
 +#Upload '''wl500g-clear-nvram.trx''' and wait for the transfer to complete. Unplug the power.
 +#Put the device into restore mode once again by pressing and holding the '''black''' reset button WHILE plugging the power in.
 +#Upload '''wl500g-recover.trx''' and wait for the transfer to complete, then unplug.
 +#Put the device into restore mode once again by pressing and holding the '''black''' reset button WHILE plugging the power in.
 +#Upload the either the stock firmware (which is found on the Asus website) or upload[http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/09-08-09-r12874/broadcom/dd-wrt.v24_mini_asus.trx mini_asus.trx] file if you want to continue using DD-WRT. Wait for file transfer completion.
 +#Unplug the power, but this time do NOT press the '''black'''reset button. Just plug the power back into the unit and you're back in business
 + 
 + 
 + 
 +* Last resort when the unit won't boot due to a bad setting -- see this [http://wl500g.info/showthread.php?t=1606 forum post].
== Reset Button == == Reset Button ==
Line 68: Line 132:
Many Asus WLs have a special pre-boot state that makes it extremely easy to upload new firmware images, even when the current firmware is corrupt (in fact the WL-520GU automatically drops into this mode when a corrupt firmware is detected during boot). Either applying a new firmware through the Asus Firmware Restoration Utility (see [[#Asus Firmware Restoration Utility|section below]]) or a hard reboot (removing the power) is required to exit this state (Note that entering this state does not negatively effect the current settings or firmware so it is not especially dangerous to accidentally enter firmware restoration mode -- although it does get in the way of performing a "reset button" based reset of the WL-520GUs settings as noted in the section above). Many Asus WLs have a special pre-boot state that makes it extremely easy to upload new firmware images, even when the current firmware is corrupt (in fact the WL-520GU automatically drops into this mode when a corrupt firmware is detected during boot). Either applying a new firmware through the Asus Firmware Restoration Utility (see [[#Asus Firmware Restoration Utility|section below]]) or a hard reboot (removing the power) is required to exit this state (Note that entering this state does not negatively effect the current settings or firmware so it is not especially dangerous to accidentally enter firmware restoration mode -- although it does get in the way of performing a "reset button" based reset of the WL-520GUs settings as noted in the section above).
-Before you start the Firmware Restoration tool, disable all interfaces on the PC except for the one connected to the Router. The software seems to pick an interface at random.+=== Asus Firmware Restoration Utility ===
 +The [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-520GU Asus Firmware Restoration Utility] is available from the Asus support site under "Utilities" (installed as part of the ASUS WL-520GU Utility). This is the preferred utility for uploading new firmware distributions since many firmwares reject a different distribution's firmware if one attempts to use the web interface.
-To enter firmware restoration mode, simply press the reset button while powering on the WL-520-GU and wait until the power LED slowly blinks. The reset button can then be released and the WL-520GU will stay in this state until the next power cycle or a new firmware has been uploaded.+The Asus Recovery Utility can ONLY be used with '''Windows'''
-In this state, the Asus Firmware Restoration Utility (see [[#Asus Firmware Restoration Utility|below]]) can/should be used to upload new firmware images. 
-It does not appear that any particular IP address range is needed to upload firmware in this mode. However, a valid IP address is '''required'''. Since no DHCP server is available in this mode, either the host computer needs a static IP address or one simply needs to wait for Windows (Win2k and later) to assign an automatic private IP address in the 169.254.0.0/16 range.+* Under Vista and Win7 this utility '''must''' be run as administrator by '''Right-clicking on the .exe''' and selecting the option.
-=== Asus Firmware Restoration Utility ===+* In case you have multiple network interfaces, disable all but the one that is connected to your router (i.e your LAN connection).
-The [http://support.asus.com/download/download.aspx?SLanguage=en-us&model=WL-520GU Asus Firmware Restoration Utility] is available from the Asus support site under "Utilities" (installed as part of the ASUS WL-520GU Utility). This is the preferred utility for uploading new firmware distributions since many firmwares reject a different distribution's firmware if one attempts to use the web interface.+ 
 +* You should also turn off your '''Windows''' firewall, in order to allow the Asus Recovery Utility to be able to connect and send data from your PC to the Router.
 + 
 +'''Steps:'''
 + 
 +1. You will '''need''' to manually set the address of your PC's Network LAN card to 192.168.1.10 and subnet mask 255.255.255.0. Also make sure all other adapters on your PC, except for the main LAN connection are '''disabled.'''
 + 
 +2. Remove the power connector of the WL series router.
 + 
 +3. While holding the '''BLACK''' reset button '''down''', plug the power connector back in.
 + 
 +4. When the power LED flashes, release the reset button. The router is now in recovery mode.
 + 
 +5. Use the Asus recovery utility to upload the DD-WRT [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/09-08-09-r12874/broadcom/dd-wrt.v24_mini_asus.trx mini-asus.trx file].
 + 
 +6. After the upgrade, the Utility will ask for a router reboot. Give it about a '''minute''' to be on the safe side before removing the power. Once plugged back in, you will be able to access the web interface.
 + 
 +7. Return your Net adapter properties to "Automatically Obtain IP"
 + 
 +8. DO '''NOT''' use Firefox for upgrading builds! Use Internet Explorer!!!!
-It appears this utility operates at layer 2 of the OSI model, because it is able to detect the WL-520GU in Firmware Recovery Mode regardless of the host computer's IP address. I recommend statically assigning an IP address in the 192.168.1.x range when working with DD-WRT because this is the range DD-WRT defaults to and WRTs can only be detected once the host has an IP address (DHCP works, but takes longer because the DHCP client must first time-out and assign an automatic private IP address before the WL-520GU will be detected -- and this happens ''every'' time the WL-520GU is power cycled because the network connection is lost).+9. Type 192.168.1.1 into your browser and set your username as root and pick a password.
-Sometimes the Windows firewall interferes with the Asus Firmware Restoration Utility. When it does, the utility is not able to find the WL-520GU, but the WL-520GU power LED stops blinking and displays a solid green when one attempts to upload a new firmware file. Either disabling the firewall or making a firewall exception for the Asus Firmware Restoration Utility solves this problem.+10. Navigate to Administration->Firmware Upgrade and upload either the recommended build provided on the main page of the site, or another of your choice.
=== Using TFTP on Windows === === Using TFTP on Windows ===
Line 93: Line 176:
tftp -m binary 192.168.1.1 -c dd-wrt.v24_mini_asus.trx tftp -m binary 192.168.1.1 -c dd-wrt.v24_mini_asus.trx
-== VPN + USB Printer server ==+ 
-If you would like to use the firmware v24-stable with openvpn support and usb printing support then follow these steps:+ 
-* Download the latest eko SVN build with openvpn and small jffs I used svn10700 [http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FV24_TNG%2F dd-wrt.v24-10700_NEWD_openvpn_jffs_small.bin]+==Making the most out of your router==
-* Install this firmware using the methods used above. TFTP or ASUS client.+ 
 +Please see [[Optware, the Right Way]] for detailed information on how to fully utilize the USB port on the WL520gU and add invaluable flexibility to it.
 + 
 +Recommend Firmware link: TBD?
 + 
 +OTRW will recommend an EXT2 partition. The firmware version must support this: [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=676804#676804] The wiki instructions above installs: DD-WRT v24-sp2 (08/12/10) mini-usb-ftp
 +(SVN revision 14929), which does not support EXT2 despite what the USB UI says.
 + 
 +Potential services that are available:
 + 
 +* Bash instead of shell in busybox (LFS support)
 + 
 +* '''Automounting and unmounting of storage device partitions'''
 + 
 +* '''Network printing'''
 + 
 +* Watchprinter
 + 
 +* '''Torrent transmission with watchdog'''
 + 
 +* Hotmount
 + 
 +* '''Pre-configured samba share'''
 + 
 +* Reverse proxy featuring pound
 + 
 +* Service tool
 + 
 +* '''Xinetd'''
 + 
 +* Pound
 + 
 +* Asterisk
 + 
 +* Lighttpd
 + 
 +* Vlighttpd
 + 
 +* Countryblock
 + 
 +* AsiaBlock
 + 
 +* Services running as other users than root
 + 
 +* Vim with proper terminal support
 + 
 +* Twonky Media
 + 
 +* News Server
 + 
 +* Other various useful tools
 + 
 +==VPN + USB Printer server==
 + 
 + 
 + 
 +'''Fraters optware method listed above will accomplish this and much more. You can use a USB hub to attach mutiple devices!'''
 + 
 + 
 + 
 + 
 +If you would like to use the firmware v24-TNG with openvpn support and usb printing support then follow these steps:
 + 
 +* Download the latest stable Eko SVN build with openvpn and small jffs. Use svn12548 [http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24_TNG/svn12548/dd-wrt.v24-12548_NEWD_openvpn_jffs_small.bin]
 +* Install this firmware using the methods used above. TFTP or ASUS Firmware restore client.
* go to http://192.168.1.1 and setup a USERNAME and a password * go to http://192.168.1.1 and setup a USERNAME and a password
** go to administration and enable jffs if it is not enabled already ** go to administration and enable jffs if it is not enabled already
Line 149: Line 296:
**[http://www.openwrt.org OpenWRT] **[http://www.openwrt.org OpenWRT]
-[[Category:English documentation]]+[[Category:Asus guides]]

Current revision

Contents


For initial flash use same procedure as All Asus WL-500xx series routers. also see: wl520gu.googlepages.com

Don't flash with any K26 builds, currently it just wont work


[edit] Introduction

The WL-520GU WRT has been supported as of DD-WRT v.24 RC7. USB (e.g. external storage or printer). As of DD-WRT v24 Final Release you are able to use the web-GUI to enable, setup and configure USB support. You MUST use builds that are tagged mini-usb or mini-usb-ftp to do this. Due to the lack of the units flash size (4MB) these builds may not offer the same Web GUI features of the standard builds. Some memory hungry features like Xbox-KAID have been removed in order to provide sufficient space for the USB drivers/modules and FTP functions.




It is also worthy to note that the USB 2.0 aspect of this router is very temperamental. If you bought this router in hopes of using USB 2.0, then you may experience problems with certain applications; albeit those mainly include resource intensive Optware programs like Bittorrent transmission.

The only remedy for this (as of now) is to use the USB 1.1 drivers instead.

[edit] Clock Timing Bug

See this thread about a clock timing bug that affects this model.

[edit] Prerequisites

  1. Windows Client (TFTP firmware upload techniques when booting the WL-520GU will also work for non-Windows users, but use of the ASUS Firmware Restoration Utility on a Windows client is by far the easiest way to flash the WL-520GU)
  2. ASUS Firmware Restoration Utility
    • Installed as part of the "ASUS WL-520gU wireless router utility program" and is available under "Utilities"
  3. DD-WRT v.24 TNG (not VINT builds) Link: [1]
    • Build suggestions (see File Versions for more information on selecting a version):
      • dd-wrt.v24_mini_asus.trx (For intial flash) REQUIRED
      • dd-wrt.v24_mini_generic.bin (Recommended if you want to manually add USB support, or need additional JFFS storage space)
      • dd-wrt.v24_generic_nokaid.bin (if you want standard features but don't require X-Box Kai Console Gaming)
      • dd-wrt.v24_std_generic.bin
      • mini_usb.bin (Built in USB support)
      • mini_usb_ftp.bin (Built in USB and FTP support)

Note: The mini_asus.trx build is supposed to be designed to be uploaded as a firmware upgrade through the ASUS stock firmware's web interface. The stock ASUS firmware rejected this build in the author's attempt to do this. For Windows use the Firmware Restoration utility provided with your router to do the initial mini-asus.trx flash. For Vista users, Administrative permissions are required. For Windows 7 users, changing the main executables (.exe) file to Windows XP sp2 compatibility mode is required. For 64bit versions of Windows, make sure the installation path is set to Program Files (x86).


[edit] Upgrading Firmware

Once DD-WRT has been installed on the WL-520GU, new versions can be installed through web interface (Administration -> Firmware Upgrade). The Asus Firmware Restoration Utility can also be used, but it is no longer necessary when upgrading DD-WRT.


[edit] New Wiki Install Material

There is a lot of info in this wiki that is seriously out of date. Some people find the Asus Firmware Upgrade Utility to be a complete pain in the arse to download and install, and is useless for Apple and Linux OS users. However, it does come on the disk with a new Asus router and can be used instead of the tftp.exe program if you wish. See Firmware Restoration Utility for the simple Windows OS users.

TFTP Method:

  1. Read the Peacock Announcement, found here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486
  2. Download this program to flash from Windows: http://www.dd-wrt.com/dd-wrtv2/downloads/others/tornado/Windows-TFTP/tftp.exe If you need to flash with Linux, you can use this file: ftp://dd-wrt.com/others/tornado/Linux_Linksys_Tftp/linksys-tftp.tar.bz2, or [advanced users] can use the tftp utility available through most package managers.
  3. Download this file for initial flashing: ftp://dd-wrt.com/others/eko/V24_TNG/svn12548/dd-wrt.v24-12548_NEWD_mini_asus.trx Also download this file for LATER flashing: ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom/dd-wrt.v24_usb_generic.bin OTRW (Ext2) issue: [2]
  4. Do a proper HARD reset on the router in accordance with note 1 of the peacock. That will be a 30-30-30 reset, followed by a power cycle. Do not confuse the Red 'EZ Setup' button with the RECESSED reset button.
  5. Do a second 30-30-30 reset, but do not power cycle it at the end. This puts the router into restoration mode. Plug a cable in the LAN port of the router, and the ethernet port of your computer. Make sure antivirus and wireless are off in the computer, and nothing else is connected to the computer or the router.
  6. Set your computer to a static IP address of 192.168.1.7 with a subnet mask of 255.255.255.0.
  7. Start the tftp.exe and follow the instructions in note 11 of the peacock announcement. Set the server to 192.168.1.1, leave the password blank, set retries to 20, and choose the dd-wrt.v24-12548_NEWD_mini_asus.trx file you downloaded earlier. Hit upgrade, and the file should upgrade immediately.
  8. Wait. Set a timer for FIVE FULL EARTH minutes. If you screw this up you could damage your router. WAIT!
  9. The LAN port will remain lit after the upgrade, but no other lights will light. There is no sign that your firmware has flashed, so you HAVE TO TIME IT.
  10. Once the time is up, power cycle the router.
  11. Navigate to 192.168.1.1 and refresh until the router webgui shows up
  12. Type a username and password in the opening page.
  13. Power cycle the router
  14. When you can log back in to the webgui at 192.168.1.1, do ANOTHER hard reset on the router (30-30-30 followed by a power cycle)
  15. Login to the router and enter a username and password. The router can be used at this point.
  16. Download this file if you have not already: ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom/dd-wrt.v24_usb_generic.bin. OTRW (Ext2) issue: [3]
  17. Under the Administration > Firmware Upgrade tab, choose "Reset to default configuration", and pick the dd-wrt.v24_usb_generic.bin file to upgrade the firmware.
  18. Hit "Upgrade" and wait five full earth minutes.
    1. If uploading via the web does not work for you (it did not for me), you can upload your file with tftp again. I uploaded the dd-wrt.v24_voip_generic.bin this was successfully. I did have to increase the timeout for the voip file for it to work.
  19. Type a username and password in the opening page.
  20. Power cycle the router
  21. When you can log back in to the webgui at 192.168.1.1, do ANOTHER hard reset on the router (30-30-30 followed by a power cycle)
  22. Login to the router and enter a username and password.
  23. Configure your router
  24. Set your computer back to auto IP and autoDNS

[edit] Resetting Defaults

There are several ways the WL-520GU's NVRAM can be reset.

  1. Using the Administration -> Factory Defaults web interface.
  2. Selecting the option to reset to Default Settings when upgrading the firmware through the Administration -> Firmware Upgrade web interface.
  3. Pressing the reset button while booting (see the Reset Button section below for ASUS reset button quirks).
  4. Using telnet enter erase nvram command
  5. Download this file pack which includes the necessary tools required for the procedure and unrar it. The File pack contains both wl500g-clear-nvram.trx and the wl500g-recover.trx utilities.

If using the #5 procedure, do the following:

  1. Using the Firmware Restoration utility or TFTP, first put the device into restore mode by pressing and holding the black reset button WHILE plugging the power in. The power LED should continuously flash.
  2. Set your network adapter to a static IP of 192.168.1.10 and subnet mask of 255.255.255.0
  3. Upload wl500g-clear-nvram.trx and wait for the transfer to complete. Unplug the power.
  4. Put the device into restore mode once again by pressing and holding the black reset button WHILE plugging the power in.
  5. Upload wl500g-recover.trx and wait for the transfer to complete, then unplug.
  6. Put the device into restore mode once again by pressing and holding the black reset button WHILE plugging the power in.
  7. Upload the either the stock firmware (which is found on the Asus website) or uploadmini_asus.trx file if you want to continue using DD-WRT. Wait for file transfer completion.
  8. Unplug the power, but this time do NOT press the blackreset button. Just plug the power back into the unit and you're back in business


  • Last resort when the unit won't boot due to a bad setting -- see this forum post.

[edit] Reset Button

The ASUS "firmware restoration" mode requires a change to the standard Linksys "hold reset button for 30 seconds" procedure for resetting the WL-520GU to its defaults. The following is how the reset button works on the WL-520GU:

When the WL-520GU is powered on

  • Holding the reset button for 15-20 seconds will cause the WL-520GU to reboot.
  • Upon reboot, a pressed reset button causes the WL-520GU to go into firmware restoration mode. This does NOT reset the defaults (see the section below for more information on the firmware restoration mode).
  • Since there is little to no warning of the exact instant the WL-520GU will reboot when holding the reset button, chances are extremely good that the reset button will still be depressed and cause the WL-520GU to go into firmware restoration mode. Hard booting the WL-520GU will get the WL-520GU back, but settings will NOT be reset.

When the WL-520GU is booting

  • Holding the reset button during the boot sequence will reset the unit to its defaults.
  • Care must be taken to press the reset button right after the power light turns off immediately after powering on the WL-520GU and not before, to avoid going into firmware restoration mode.

Based on the above, it should be fairly self-evident that the following procedure is recommended for using the reset button on the WL-520GU.

  1. Unplug the WL-520GU
  2. Plug in the WL-520GU
  3. The power light will blink
  4. As soon as the power light turns off, press and hold the reset button
  5. Hold the reset button until the power and wireless buttons glow green.
  6. The WL-520GU should now be reset to its defaults

[edit] Hardware Notes

This section covers observations made about working with the ASUS WL-520GU hardware. Certain behaviors of this device are different than other WRTs (especially the Linksys).

[edit] Firmware Restoration Mode

Many Asus WLs have a special pre-boot state that makes it extremely easy to upload new firmware images, even when the current firmware is corrupt (in fact the WL-520GU automatically drops into this mode when a corrupt firmware is detected during boot). Either applying a new firmware through the Asus Firmware Restoration Utility (see section below) or a hard reboot (removing the power) is required to exit this state (Note that entering this state does not negatively effect the current settings or firmware so it is not especially dangerous to accidentally enter firmware restoration mode -- although it does get in the way of performing a "reset button" based reset of the WL-520GUs settings as noted in the section above).

[edit] Asus Firmware Restoration Utility

The Asus Firmware Restoration Utility is available from the Asus support site under "Utilities" (installed as part of the ASUS WL-520GU Utility). This is the preferred utility for uploading new firmware distributions since many firmwares reject a different distribution's firmware if one attempts to use the web interface.

The Asus Recovery Utility can ONLY be used with Windows


  • Under Vista and Win7 this utility must be run as administrator by Right-clicking on the .exe and selecting the option.
  • In case you have multiple network interfaces, disable all but the one that is connected to your router (i.e your LAN connection).
  • You should also turn off your Windows firewall, in order to allow the Asus Recovery Utility to be able to connect and send data from your PC to the Router.

Steps:

1. You will need to manually set the address of your PC's Network LAN card to 192.168.1.10 and subnet mask 255.255.255.0. Also make sure all other adapters on your PC, except for the main LAN connection are disabled.

2. Remove the power connector of the WL series router.

3. While holding the BLACK reset button down, plug the power connector back in.

4. When the power LED flashes, release the reset button. The router is now in recovery mode.

5. Use the Asus recovery utility to upload the DD-WRT mini-asus.trx file.

6. After the upgrade, the Utility will ask for a router reboot. Give it about a minute to be on the safe side before removing the power. Once plugged back in, you will be able to access the web interface.

7. Return your Net adapter properties to "Automatically Obtain IP"

8. DO NOT use Firefox for upgrading builds! Use Internet Explorer!!!!

9. Type 192.168.1.1 into your browser and set your username as root and pick a password.

10. Navigate to Administration->Firmware Upgrade and upload either the recommended build provided on the main page of the site, or another of your choice.

[edit] Using TFTP on Windows

Windows TFTP client may be downloaded from here. Then all you need to do is to call following command: tftp.exe -i -v 192.168.1.1 PUT dd-wrt.v24_mini_asus.trx

[edit] Using TFTP on Linux

Linux TFTP client may be downloaded using yum or apt-get. Then all you need to do is to call following command: tftp -m binary 192.168.1.1 -c dd-wrt.v24_mini_asus.trx


[edit] Making the most out of your router

Please see Optware, the Right Way for detailed information on how to fully utilize the USB port on the WL520gU and add invaluable flexibility to it.

Recommend Firmware link: TBD?

OTRW will recommend an EXT2 partition. The firmware version must support this: [4] The wiki instructions above installs: DD-WRT v24-sp2 (08/12/10) mini-usb-ftp (SVN revision 14929), which does not support EXT2 despite what the USB UI says.

Potential services that are available:

  • Bash instead of shell in busybox (LFS support)
  • Automounting and unmounting of storage device partitions
  • Network printing
  • Watchprinter
  • Torrent transmission with watchdog
  • Hotmount
  • Pre-configured samba share
  • Reverse proxy featuring pound
  • Service tool
  • Xinetd
  • Pound
  • Asterisk
  • Lighttpd
  • Vlighttpd
  • Countryblock
  • AsiaBlock
  • Services running as other users than root
  • Vim with proper terminal support
  • Twonky Media
  • News Server
  • Other various useful tools

[edit] VPN + USB Printer server

Fraters optware method listed above will accomplish this and much more. You can use a USB hub to attach mutiple devices!



If you would like to use the firmware v24-TNG with openvpn support and usb printing support then follow these steps:

  • Download the latest stable Eko SVN build with openvpn and small jffs. Use svn12548 [5]
  • Install this firmware using the methods used above. TFTP or ASUS Firmware restore client.
  • go to http://192.168.1.1 and setup a USERNAME and a password
    • go to administration and enable jffs if it is not enabled already
    • go to services and enable sshd
    • go to administration and enable SSH Management
  • using your favorite ssh client then ssh 192.168.1.1. Log in with the username "root" and your web admin password
  • after you login type
mkdir -p /jffs/tmp/ipkg
ipkg update
ipkg -force-depends install kmod-usb-core
ipkg -force-depends install kmod-usb-printer
ipkg -force-depends install kmod-usb-ohci
ipkg install p910nd
  • this should download all required packages/modules/software etc. now we need to edit some configuration
mkdir /jffs/etc/config
vi /jffs/etc/config/usb.startup
  • inside usb.startup you should have:
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/usb-ohci.o
insmod /jffs/lib/modules/2.4.30/printer.o
/jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0
  • You will need to set the permissions of this file to allow it to execute. Type:
chmod +x /jffs/etc/config/usb.startup
  • Next, we need to fix a typo. The fix is described here Printer Sharing. To fix this:
vi /jffs/etc/init.d/p910nd
change ----------> DEFAULT=/etc/default/p910nd
to -------------> DEFAULT=/jffs/etc/default/p910nd
  • At this point, you should reboot your router. When it comes back online, to make sure everything is right, do the following:
ls /dev/usb
  • If this shows the printer (lp0), you are in good shape. Otherwise, try running the command
./jffs/etc/config/usb.startup
  • to manually start the printer server. You should now see the printer if you repeat the preceding ls command.
  • Also, try running "dmesg | grep usb" to see if the printer is loaded. if you do not see:
printer.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0839

then you have an interesting problem.

  • Next, verify that the print server is up by running netstat -an and searching for port 9100. If you don't see anything, try running ps | grep lp0. If you still don't see anything, try manually starting the print server with this command:
/jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0

[edit] External Links