Asus RT-N16

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:25, 5 January 2012 (edit)
Donny (Talk | contribs)
(Installation : -Changed mega build to 18000)
← Previous diff
Current revision (14:51, 7 April 2021) (edit) (undo)
Kernel-panic69 (Talk | contribs)
m (Procedure)
 
(96 intermediate revisions not shown.)
Line 1: Line 1:
-== ASUS RT-N16 :==+=Hardware=
-[[Image:Rt_n16_209.jpg]]+[[Image:asus-rt-n16.png|center]]
-== Specs : ==+The ASUS RT-N16 is a single band (2.4 GHz) N300 Gigabit Router with 128MB RAM and 32MB Flash ROM. Note that SFE accelerated NAT (K3X build 33006+) is required to achieve high WAN speeds with an IPv4 SPI firewall. For speed tests without SFE, see [[Asus_RT-N16#Performance|Performance]].
-Stock Power Supply = 12V - 1,25A max (**)+==[https://wikidevi.com/wiki/ASUS_RT-N16 Hardware] Specifications==
 +{| border="1" cellspacing="0"
 +|-
 +!RAM
 +|128 MB (2*64MB): Samsung K4N511163QZ-HC25
 +:or Samsung K4T51163QG-HCE6
 +|-
 +!Flash
 +|32 MB (MACRONIX MX29GL256EHTI2I-90Q)
 +|-
 +!NVRAM
 +|32K
 +|-
 +!CPU
 +|Broadcom 4716@480MHz[1] (Broadcom spec is 533)
 +|-
 +!USB ports
 +|USB2.0 x 2
 +|-
 +!Power Supply
 +|12V - 1,25A max [[Asus_RT-N16#Links|(Upgrading the Power Supply)]]
 +|-
 +!RJ-45 Ethernet Ports
 +|WAN (1), LAN (4), both 10/100/1000 Mb/s
 +|-
 +!Antennas
 +|3 x external detachable 2dBi antennas
 +|-
 +!WiFi Frequency Range
 +|2.4GHz ~ 2.5GHz
 +|-
 +!802.11n
 +|up to 300Mbps
 +|-
 +!802.11g
 +|up to 54Mbps
 +|-
 +!802.11b
 +|up to 11Mbps
 +|-
 +!Switch Chip
 +|Broadcom BCM53115SKFBG
 +|-
 +!LED Color
 +|Blue
 +|}
 +[1] Run ''cat /proc/cpuinfo'' in a terminal (like puTTY) to get the full CPU details.
-Ethernet Ports = WAN x 1 RJ-45 for 10/100/1000 Base T, LAN x 4 RJ-45 for 10/100/1000 Base T+==Main board==
 +[[Image:Asus_rt-n16_JTAG.png|thumb|center|500px|This shows the main board for the Asus RT N16 along with the location for the ''[[JTAG]]'' headers.]]
-Antennas = 3 x external detachable antennas+=Install DD-WRT from Factory Firmware=
-USB ports = USB2.0 x 2+Please note: Details of the DD-WRT firmware build variations are [[What_is_DD-WRT%3F#K2.6_Build_Features| found here]]. More current build information can be found in the [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486 Peacock announcement thread]. See [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware?]] for links.
-WiFi Operating Frequency = 2.4GHz ~ 2.5GHz+===Overview===
 +:* Restore Factory Default settings ([[Hard_reset_or_30/30/30|Clear NVRAM]])
 +:* Install the INITIAL trailed build '''22118 K2.6_mini_RT-N16.trx''' of DD-WRT
 +:* Restore Factory Default settings ([[Hard_reset_or_30/30/30|Clear NVRAM]]) or via DD-WRT webGUI
 +:* Upgrade to the temporary '''21530 K3X custom build''' (from 2013)
 +:* Upgrade to recent '''working K3X mega or big build''' (*.trx and N16 in the name)
 +See [[Index:FAQ#Where_do_I_download_firmware.3F|Where do I download firmware]] for links and research New Build and model-specific threads.
-802.11n Draft = up to 300Mbps+===Procedure===
 +#Download the INITIAL trailed DD-WRT firmware: [https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2013/07-24-2013-r22118/broadcom_K26/dd-wrt.v24-22118_NEWD-2_K2.6_mini_RT-N16.trx (2013) 22118 K2.6_mini_RT-N16.trx] Any current trailed build in the K26 series will work such as [https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/08-30-2018-r36808/broadcom_K26/dd-wrt.v24-36808_NEWD-2_K2.6_mini_RT-N16.trx]
 +#Restore Factory Default settings in the Asus GUI. Asus factory default username/password is admin/admin. Let the router reboot. Plug the PC into a LAN port on the router and disconnect other connections.
 +#Flashing the INITIAL Firmware to the router (the one where the file name ends in .trx)
 +#Set the router in "Recover mode" (same as other Asus routers) With this router pull power, hold the reset button in then plug in power and look for the slow blink of the power light.
 +#:*Use ASUS Firmware Restoration Utility to upload the new firmware (from router CD or [ftp://ftp.asus.com.tw/pub/ASUS/wireless/RT-N16/UT_RT_N16_4090.zip here]). or search for Asus Recovery Utility. Or use tftp under windows. (tested on windows 10 the command tftp -i 192.168.1.1 put dd-wrt.v24-36808_NEWD-2_K2.6_mini_RT-N16.trx works)
 +#:*You need to set the PC to Static IP 192.168.1.2 ([[Static_IP|Static IP guide]])
 +#:*Set the router in recovery mode by holding in the reset button when plugging in the power. The power light should now be blinking slowly, meaning the router is in restore/recovery mode and ready for the new firmware. Upload and wait for the router to reset on its own (may take anywhere from 3 to 15 minutes).
 +#:''Note on Asus Recovery Utility:'' The recover utility is just a tftp server with added wait timer, but standard tftp tools can also be used to upload firmware. Just remember to do the proper 3 minutes or more wait for the unit to reboot itself, after the 10 to 30sec tftp completion. See: [[Tftp_flash|TFTP]], [[Asus_TFTP_Flash|ASUS TFTP]]
 +#After the reboot from flashing, wait for the device to show the password change screen for DD-WRT. Enter '''root''' as the user and anything for the password as you will do the user/pass procedure again after the final flash.
 +#Reset to Factory Settings.
 +#*''Method A'' - Use the DD-WRT GUI. Go to ''Administration->Factory Defaults'', click Yes then select ''Apply''.
 +#*''Method B'' - WPS button [[Hard_reset_or_30/30/30|hard reset]]. The following procedure will clear out the NVRAM and set dd-wrt back to default values:
 +#**With the unit powered off, press and hold the Red WPS button on the back of the unit.
 +#**Without releasing the WPS button plug the power in, and hold the WPS button for 30 seconds
 +#**When releasing the WPS button the unit will reboot and Factory Default settings will be loaded.
 +#:''Note on Asus hardware reset'' for NVRAM clear: do not use the Reset button. See [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920 Eko's post]
 +#Reset is recommended BEFORE and AFTER flashing any builds prior to the 21530 transition build and may be required for large jumps to avoid issues.
 +#Upgrade to the custom transition firmware [https://www.dd-wrt.com/phpBB2/download.php?id=36961 dd-wrt.v24-21530_NEWD-2_K3.x_big.bin] ([https://www.dd-wrt.com/phpBB2/download.php?id=25229 Alt])
 +#*NOTE: 21530 is not a regular released beta build! This transition firmware repartitions the flash. Later firmware of this series DO NOT.
 +#Use the web GUI to upload. ''Administration->Firmware Upgrade'' and '''DO NOT select reset to defaults'''.
 +#Upgrade to a recent ''working'' K3X big build from the betas folder, this time DO NOT reset settings.
 +See [https://www.dd-wrt.com/wiki/index.php/Index:FAQ#Where_do_I_download_firmware.3F Where do I download firmware] for links and research New Build and model-specific threads.
-802.11g = 6, 9, 12, 18, 24, 36, 48, 54Mbps+'''Note that you SHOULD NOT reset settings under any firmware beyond the transition firmware or you could render it unbootable necessitating starting over.'''
-802.11b = 1, 2, 5.5, 11Mbps+Firmware 36808 BIG K26 runs on this router. [https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/08-30-2018-r36808/broadcom_K26/dd-wrt.v24-36808_NEWD-2_K2.6_big.bin]
-Unit RAM = 128 MB (2x 64MB - Samsung K4N511163QZ-HC25 or 2x 64MB - Samsung K4T51163QG-HCE6)+Congratulations! Please consider donating to DD-WRT as we are an open-source community providing free software to upgrade consumer routers with commercial-grade capabilities.
-Unit Flash = 32 MB (MACRONIX MX29GL256EHTI2I-90Q)+Also read [[Basic_Wireless_Settings|Basic Wireless Settings]] and [[Advanced_wireless_settings|Advanced Wireless Settings]] to learn how to get the most WiFi data speed out of your new N-Router.
-Unit CPU = Broadcom4718A, 533 MHz (Factory clocked to 480MHz)+====Troubleshooting====
 +IF the router won't provide a Power LED after updating to the K3.x file...then there is a problem with the flash chip and it needs to be cleared (except the CFE). Issue the following commands via telnet/SSH or the Commands window under the Admin tab.
-Unit Switch Chip = Broadcom BCM53115SKFBG+mtd erase nvram
-Color of LEDs = Blue+mtd erase ddwrt
-root@myrouter:~# cat /proc/cpuinfo+mtd erase linux
-system type : Broadcom BCM4716 chip rev 1+This will clear the flash chip...now start the process again with the K2.6 mini build
-processor : 0+
-cpu model : MIPS 74K V4.0+
-BogoMIPS : 239.20+
-wait instruction : no+
-microsecond timers : yes+
-tlb_entries : 64+
-extra interrupt vector : no+
-hardware watchpoint : yes+
-ASEs implemented : mips16 dsp+
-shadow register sets : 1+
-VCED exceptions : not available+
-VCEI exceptions : not available+
-dcache hits : 2147483648+This is documented here: [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=307336&postdays=0&postorder=asc&start=15]
-dcache misses : 3719954431+
-icache hits : 2147483648+
-icache misses : 1051981515+
-instructions : 2147483648+
-== Installation : ==+====Notes about K3X====
 +Do NOT issue "erase nvram" command from CLI...this unit only has 64K of nvram...the CLI thinks it has 128K and the firmware thinks its 256k...this means doing an "erase nvram" removed other parts of the flash chip (likely firmware partition "dd-wrt" or "linux")
-RT-N16 REQUIRES the K26 Firemware build per [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=52043 the Broadcom Announcment] and is [ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom_K26/ found here: FTP]+Note: build 21530 seems to have wireless issues...it broadcasts the ssid...but you can't connect to it...however, if in repeater bridge mode, you can contact it through the host AP at the router's IP address.
-1. Do a factory reset in the Asus GUI. Let the router reboot. Disconnect all cables (WAN, USB, etc.) and plug the Ethernet cable from your PC into the LAN1 port on the router.+There is a large thread with lots of info on this router here [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=88118&postdays=0&postorder=asc&start=0]
-2. Download the initial firmware located here : [ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom_K26/dd-wrt.v24-14929_NEWD-2_K2.6_mini_RT-N16.trx dd-wrt.v24-14929_NEWD-2_K2.6_mini_RT-N16.trx]. Details of the build variations are [http://www.dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#Which_V24_build_do_I_flash_onto_my_router found here]+===Notes===
 +* NAT Loopback (Port Forwarding) is broken in builds 15760-19969 (see [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=89353 this thread] for a workaround)
 +** 15962, 17990, & 18000 are Recommended Builds which would require this workaround
 +* Special thanks to Eko for making the initial work on getting the RT-N16 to work with DD-WRT!
-3a. Using Internet Explorer (IMPORTANT: NOT FIREFOX), Flash the downloaded firmware file through the router's GUI at http://192.168.1.1/. This process takes about 60 seconds. Asus factory default username/password is admin/admin.+=Upgrading DD-WRT=
 +If DD-WRT is already loaded on your router, you can flash firmware using these steps
 +# Download firmware from one of the sites listed: [https://www.dd-wrt.com/wiki/index.php/Index:FAQ#Where_do_I_download_firmware.3F Where do I download firmware]
 +#*Go to the ''broadcom_K3X'' folder and download the ***K3.x-big-RT-N16.trx file.
 +# Open the DD-WRT's web interface in your web browser and open http://192.168.1.1/ (the default).
 +#*Admin page: Reset with Restore Factory Default settings and let the router reboot. NOTE this may soft brick it! To be absolutely sure this does not happen you can login to the router and issue the mtd commands listed above and start over with the K6 trailed build on recovery mode followed by the special transition build.
 +# Open the DD-WRT's web interface in your web browser. Upload/upgrade the firmware using the
 +# Administration tab -> "Firmware Upgrade" button.
 +# Click "browse" button and select the downloaded file then click "Upgrade". Wait 5 minutes to upload and write the flash, then the browser GUI should refresh when done.
 +#*Admin page: Reset with Restore Factory Default settings. (Only necessary if coming from an old build)
 +#*Alternative: on the Upgrade page, select "Reset to Default settings" for "After flashing, reset to". This is to automatically reset to Factory Default settings when it reboots, though this may not be reliable.
 +* Note: For newer builds, please read the "New Build" or router-specific threads. See [https://www.dd-wrt.com/wiki/index.php/Index:FAQ#Where_do_I_download_firmware.3F Where do I download firmware] for more info on New build threads.
-3b. ALTERNATE - I was unable to get the initial firmware flashed on a stock router containing the latest RTN-16 firmware. Alternatively you can use the ASUS Firmware Restoration Utility (included on router CD or downloadable from [http://www.thesystemownsyou.com/mirror/UT_RT_N16_4090.zip]) to flash the initial firmware. If you've already set a static IP on your computer, you need to set it back to accept DHCP assignment for the utility to work. Install the application, load up the initial firmware, then unplug the router, and replug it in with the black RESTORE button depressed. The power light should now be blinking slowly, meaning the router is in restore mode and ready for the new firmware. Upload and wait for router reset. This was the only method that allowed me overwrite stock firmware. Follow remainder of instructions normally. -ApatheticNow+==Restore to Asus Firmware==
 +#Download the latest ASUS firmware from the ASUS web site [http://www.asus.com/Networks/Wireless_Routers/RTN16/#download]. Or use [ftp://ftp.asus.com.tw/pub/ASUS/wireless/RT-N16 FTP].
 +#Rename the Asus firmware file from .trx to .bin
 +#Do a Restore Factory Default settings to [[Hard_reset_or_30/30/30|Clear NVRAM]] in DD-WRT
 +#Go to the DD-WRT firmware upgrade page and select the renamed ASUS firmware
 +#After the flash finishes, and the router has rebooted, you see the ASUS GUI. If not, clear browser cache.
 +# Do a Factory Reset to clear the NVRAM using the Asus GUI
-3c. ALTERNATE 2 - It seems to be not uncommon for the RESTORE process for uploading mini DD-WRT to fail part way through. Additionally, the router may refuse to go into RESTORE mode afterward leading you to not be sure what to do. If you'd like to try RESTORE again, you can unplug the router, press the WPS button while plugging it back in, then wait a few seconds. Unplug the router and it should then be able to get into RESTORE mode normally. Instead of using RESTORE mode to load DD-WRT mini, you can use the RECOVERY upload method that is outlined in the "Other - Recovery Mode" section below.+==Recovery Mode==
 +To access recovery mode, you MAY have to press the WPS button (not the reset button like other ASUS), then plug in power, and tftp the firmware you want to flash. Some people have reported that the reset button DOES work like the other ASUS routers to get it into recover mode. GUI Factory Reset before and after every flash to make sure you don't have any nvram problems or conflicts. On this router, the reset button only resets the nvram partition.
-4. After the reboot from flashing, wait for the device to show the password change screen for DD-WRT. Enter '''root''' as the user and anything for the password as you will do the user/pass procedure again after the final flash.+==De-Brick Methods==
 +# Hard reset to factory defaults by holding in the red WPS button while plugging in the power. [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920 Eko Forum note]
 +# Recovery mode, to upload a different firmware.
 +# Internal serial connector, using CFE commands. Use 3.3V TTL level signaling. For example: [http://www.sparkfun.com/products/9873 US shop] FTDI Serial Adapter is small and reliable, providing: Virtual serial port via PC USB to 3.3V-TTL (Rx, Tx) signaling. [http://www.skpang.co.uk/catalog/ftdi-basic-breakout-33v-p-443.html UK outlet]
 +# Try to reset/reload the firmware using the [http://tjtag.com/ TJTAG] software and the internal [[JTAG_pinouts#Asus_RT-N16|JTAG]] connector.
-5. Do a Factory Reset to clear the NVRAM. This is located under Administration -> Factory Defaults in the DD-WRT Web-GUI, or open up a telnet session to your router and type '''erase nvram''' followed by the command '''reboot''' (This is the preferred method). You will be presented with the password change screen again after this step is complete.+=Known Issues, Bugs, and Workarounds=
 +* Hardware fix (capacitor) for RT-N16 wireless drop-outs [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=902586]
 +* UPNP is currently not working for the RT-N16, so for now leave the feature disabled unless you want a full CPU Load. '''FIXED''' with SVN [http://svn.dd-wrt.com:8000/changeset/13527 Changeset #13527]
 +* Access Restriction with MAC-Filter doesn't work on Asus RT-N16. '''FIXED''' [http://svn.dd-wrt.com:8000/ticket/1319 Ticket #1319] (as of 12/18/09)
 +* On this router the reset button will only bring you to recovery mode. If you wish to restore defaults, use the Red WPS button while plugging power in. [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920 Post By Eko]
 +* Rflow data reports only on upload traffic ([http://svn.dd-wrt.com:8000/ticket/1139 Ticket #1139]). Further discussion in [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66571 this thread] (only affects those using/enabling Rflow).
 +* USB hard drives after build 15407: "The devs of dd-wrt have removed the loading of file system drivers from the startup of the firmware. They are now loaded on demand with automount. Well, this presents a problem for those of us with USB HDD that automount doesn't detect. In order to load the file system drivers at startup you need to add the following to save startup in the commands tab" for more, see [http://wiki.darkhaven.org/wiki/Asus_RT-N16 TechInfoDepot DD-WRT Notes]
-6. Download and flash the full featured Firmware (here the mega build) [ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2011/12-12-11-r18000/broadcom_K26/dd-wrt.v24-18000_NEWD-2_K2.6_mega.bin]. To flash: under Administration -> Firmware Upgrade. NOTE : in the Firmware Upgrade Tab where it says "After flashing, reset to" choose "Reset to Default settings".+==NVRAM K2.6 Limitation==
 +'''This is included for historical reference. Use the installation instructions above to flash a K3X build.'''
 +* The RT-N16 only has 32K of NVRAM on k2.6 builds, and due to CFE limitations, some reported reboots and resets due to running out of NVRAM. K3X builds have expanded the default nvram partition via software.
 +*However, getting K3X to run on this model can be tricky, `erase nvram` can cause a soft brick, requiring TFTP. redhawk0's procedure is [https://www.dd-wrt.com/phpBB2/viewtopic.php?p=1066544#1066544 here], also read the RT-N16 Condensed thread starting [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=88118&postdays=0&postorder=asc&start=240 here]
-NOTE: loopback does not work using any build above 15778 including the mega svn linked above. Read the peacock announcement at the commencement of the broadcom forum. If loopback is needed flash the 14929 build. There is a link in the peacock announcement to the 14929 build which will allow you to use loopback again. Note the Asus RT-N16 needs a K26 build! Build 14929 is the currently recommended broadcom build.'''+====NVRAM Usage Reduction====
-NOTE2: For the final flash (Upgrade), it is wise to walk away for ~5 minutes while the Mega Firmware is flashing. This ensures all NVRAM variables are successfully loaded by the Kernel before the user configures. +*Using traff (Traffic graph in Status_Internet.asp) or UPnP will cause the NVRAM to fill up quickly, causing router functions like ddns to stop functioning. Upon the next reboot the router will reset it self to firmware defaults. Disable traff and/or UPnP to prevent this, or flush the traff stats occasionally.
 +*Note on traff: Status -> WAN -> (at the buttom) Data Administration -> button "Delete" flushes the traff stats. Services -> Services -> WAN Traffic Counter -> ttraff Daemon: Disable -> Apply settings, will stop the collection of traff data. You may however just choose to reset/delete traff data every month, and the traff data will not take much room in the NVRAM
 +*Note on UPnP: Access to UPnP settings: NAT/QoS -> UPnP. In newer builds (Spring 2012) UPnP is disabled by default.
 +*Note on monitoring NVRAM usage. In newer builds (spring 2012) NVRAM usage/max is displayed on the front Web GUI at "Space Usage"
-7. Do not skip this step! Do a [http://www.dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30 30-30-30 reset] on the router using the red WPS button on the rear of the unit. The following procedure will clear out the NVRAM and set dd-wrt back to default values:+====NVRAM Reduction Scripts====
 +*Save the following as a startup script, it will remove initialized variables that are stored in NVRAM and currently have no value assigned to them (This cleared up nearly 5K of NVRAM in my experience).
 + #!/bin/bash
 + rm /opt/tmp/nvramshow
 + nvram show >> /opt/tmp/nvramshow
 + i=0
 + while read -r line; do
 + val=${line#*=}
 + var=${line%*=}
 + if <nowiki>[[ "$val" == "" ]];</nowiki> then
 + nvram unset $var
 + fi
 + i=`expr $i + 1`
 + if <nowiki>[[ $i == 50 ]];</nowiki> then
 + sleep 2
 + i=0
 + fi
 + done < /opt/tmp/nvramshow
 + exit 0
-* With the unit powered on, press and hold the WPS button on back of unit for 30 seconds+Simpler version: Instead of outputting to a file to check if each var is empty, use grep to find empty vars:<br>
-* Without releasing the WPS button, unplug the unit and hold reset for another 30 seconds+1. Check current size and empty var count
-* Plug the unit back in STILL holding the WPS button a final 30 seconds+ root# nvram show | grep =$ | wc -l
 + size: 30273 bytes (2495 left)
 + 414
 +2. Clean up
 + root# for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done
 +*This can be saved as a startup script. Alternatively, to avoid further NVRAM usage, save to JFFS or USB with a JFFS partition. Save your script to /jffs/etc/config, give it a .startup extension, make it executable, then DD-WRT will run it after every boot.
 +3. Check again....
 + root# nvram show | grep =$ | wc -l
 + size: 24307 bytes (8461 left)
 + 0
 +4. Saved almost 6K
 + root# echo "$((8461 - 2495))"
 + 5966
-This procedure should be done BEFORE and AFTER every firmware upgrade/downgrade.+=Performance=
- +This is without SFE accelerated NAT.
-8. Reward yourself for reading and following these instructions with a cold beverage of your choice. Enjoy DD-WRT on the RT-N16 ! Also, please think about donating to DD-WRT as we are an open-source community and charge nothing to turn sub $100 consumer routers into $600 -$1000 commercial grade routers.+<pre>
- +Test Description Throughput - (Mbps)
-9. Consider OTRW to add useful services such as pixelserv and stophammer. Asterisk with Gtalk has been known to be successful installed.+WAN - LAN 141.1
- +LAN - WAN 143.3
-== Uninstallation : - If you ever choose to do so ==+Total Simultaneous 155.9
- +Max. Connections 200
-1. Download the latest ASUS firmware from Asus's site. Go to ftp://ftp.asus.com.tw/pub/ASUS/wireless/RT-N16 with a client FTP.+Firmware Version 1.0.0.6
- +</pre>
-2. Rename the asus file from .trx to .bin+Sources: [http://www.smallnetbuilder.com/wireless/wireless-reviews/31058-asus-rt-n16-gigabit-n-router-reviewed?showall=&start=4] Testing methods: [http://www.smallnetbuilder.com/wireless/wireless-reviews/31058-asus-rt-n16-gigabit-n-router-reviewed?showall=&start=4], [http://www.smallnetbuilder.com/lanwan/lanwan-howto/31103-how-we-test-hardware-routers-revision-3]
- +
-3. Go into the DD-WRT firmware upgrade page, set it to reset defaults, and select the ASUS firmware you renamed.+
- +
-4. After the flash finishes, and you see the ASUS GUI, do a Factory Reset to clear the NVRAM.+
- +
-5. Try to enjoy ASUS's firmware, and keep missing DD-WRT. (you can just flash back to dd-wrt if you ever want)+
- +
-== Current Known Issues and Bugs : ==+
- +
-* UPNP is currently not working for the RT-N16, so for now leave the feature disabled unless you want a full CPU Load. '''FIXED''' with SVN [http://svn.dd-wrt.com:8000/changeset/13527 trac Changeset #13527]+
- +
-* Access Restriction with MAC-Filter doesn't work on Asus RT-N16. '''FIXED''' [http://svn.dd-wrt.com:8000/ticket/1319 trac Ticket #1319] (as of 12/18/09)+
- +
-* On this router reset button will only bring you to recovery mode. If you wish to restore defaults, use Red WPS button while plugging power in. [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920 Post By Eko]+
- +
-* Rflow data reports only upload traffic ([http://svn.dd-wrt.com:8000/ticket/1139 Trac #1139]). Further discussed in [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=66571 this thread.]+
- +
-== Other : ==+
- +
-'''Overclocking'''+
 +=Overclocking=
By factory default the cpu is clocked at 480 MHz and the Ram at 240 MHz. Overclocking at CPU 532 MHz / Ram 266 MHz can be achieved with these commands in a Telnet/SSH session : By factory default the cpu is clocked at 480 MHz and the Ram at 240 MHz. Overclocking at CPU 532 MHz / Ram 266 MHz can be achieved with these commands in a Telnet/SSH session :
 +*nvram set clkfreq=532,266
 +*nvram get clkfreq [to verify]
 +*nvram commit && reboot
- nvram set clkfreq=532,266+Note :
- nvram commit+*Not recommended: instability issues can arise from overclocking / overheating
- reboot+*See also [[Overclocking BCM 47xx CPU's]] for more info
- +*Adding a heat sink or fan to the SoC is recommended
-Note : some users have had overheating issues, so adding a fan may be a good idea if you want to try the overclocking.<br> +
- +
-More informations here with pictures to prevent overheating issues with heat sinks : +
- +
-http://www.dd-wrt.com/phpBB2/viewtopic.php?t=69261 and +
- +
-http://www.dd-wrt.com/phpBB2/viewtopic.php?t=70202 or+
- +
-http://www.dd-wrt.com/phpBB2/viewtopic.php?p=442803 again+
- +
-http://www.dd-wrt.com/phpBB2/viewtopic.php?t=73175&highlight=rtn16+
- +
-Note : other instability issues may also arise from overclocking. Overclocking is NOT a good idea.<br>+
-Note : See also [[Overclocking BCM 47xx CPU's]] for more info.+
- +
- +
-'''Recovery Mode'''+
- +
-This router does have a recovery mode if ever needed for flashing, and to access it, press the WPA button (not the reset button like other ASUS), then plug in power, and tftp the firmware you want to flash. Don't forget to do a Factory Reset in the GUI before and after every flash to make sure you don't have any nvram problems or conflicts. On this router reset button only resets the nvram partition. If you wish to use tftp to restore defaults, use wps button while plugging power in.+
- +
-'''If you have bricked your Asus RT-N16 :'''+
- +
-http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920+
- +
-Special thanks to Eko for making this possible !+
- +
-==See also :==+
-*JTAG : [[JTAG pinouts#Asus RT-N16]]+
-(**) Note :+More information here (with pictures) to prevent overheating issues with heat sinks:
-A higher amperage about the power supply (adapter) for the Asus RT-N16 is possible. Please take a look at this : http://www.dd-wrt.com/phpBB2/viewtopic.php?t=77149+*http://www.dd-wrt.com/phpBB2/viewtopic.php?t=69261 and
 +*http://www.dd-wrt.com/phpBB2/viewtopic.php?t=70202 or
 +*http://www.dd-wrt.com/phpBB2/viewtopic.php?p=442803 again
 +*http://www.dd-wrt.com/phpBB2/viewtopic.php?t=73175&highlight=rtn16
-==Links : ==+=Links=
-*http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61570+*[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61570 Original forum support thread (100 pages)] was [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=88118 condensed into a new support thread] for the RT-N16.
 +*[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=77149 Upgrading the power supply adapter] for higher current (amperage)
 +* [http://www.techinfodepot.info/index.php/Asus_RT-N16 RT-N16 @ techinfodepot]
 +'''Reviews'''
 +* http://blog.itechtalk.com/2010/review-on-asus-rt-n16-router/
 +* http://www.smallnetbuilder.com/wireless/wireless-reviews/31058-asus-rt-n16-gigabit-n-router-reviewed
[[Category:Asus guides]] [[Category:Asus guides]]

Current revision

Contents

[edit] Hardware

The ASUS RT-N16 is a single band (2.4 GHz) N300 Gigabit Router with 128MB RAM and 32MB Flash ROM. Note that SFE accelerated NAT (K3X build 33006+) is required to achieve high WAN speeds with an IPv4 SPI firewall. For speed tests without SFE, see Performance.

[edit] Hardware Specifications

RAM 128 MB (2*64MB): Samsung K4N511163QZ-HC25
or Samsung K4T51163QG-HCE6
Flash 32 MB (MACRONIX MX29GL256EHTI2I-90Q)
NVRAM 32K
CPU Broadcom 4716@480MHz[1] (Broadcom spec is 533)
USB ports USB2.0 x 2
Power Supply 12V - 1,25A max (Upgrading the Power Supply)
RJ-45 Ethernet Ports WAN (1), LAN (4), both 10/100/1000 Mb/s
Antennas 3 x external detachable 2dBi antennas
WiFi Frequency Range 2.4GHz ~ 2.5GHz
802.11n up to 300Mbps
802.11g up to 54Mbps
802.11b up to 11Mbps
Switch Chip Broadcom BCM53115SKFBG
LED Color Blue

[1] Run cat /proc/cpuinfo in a terminal (like puTTY) to get the full CPU details.

[edit] Main board

This shows the main board for the Asus RT N16 along with the location for the JTAG headers.
This shows the main board for the Asus RT N16 along with the location for the JTAG headers.

[edit] Install DD-WRT from Factory Firmware

Please note: Details of the DD-WRT firmware build variations are found here. More current build information can be found in the Peacock announcement thread. See Where do I download firmware? for links.

[edit] Overview

  • Restore Factory Default settings (Clear NVRAM)
  • Install the INITIAL trailed build 22118 K2.6_mini_RT-N16.trx of DD-WRT
  • Restore Factory Default settings (Clear NVRAM) or via DD-WRT webGUI
  • Upgrade to the temporary 21530 K3X custom build (from 2013)
  • Upgrade to recent working K3X mega or big build (*.trx and N16 in the name)

See Where do I download firmware for links and research New Build and model-specific threads.

[edit] Procedure

  1. Download the INITIAL trailed DD-WRT firmware: (2013) 22118 K2.6_mini_RT-N16.trx Any current trailed build in the K26 series will work such as [1]
  2. Restore Factory Default settings in the Asus GUI. Asus factory default username/password is admin/admin. Let the router reboot. Plug the PC into a LAN port on the router and disconnect other connections.
  3. Flashing the INITIAL Firmware to the router (the one where the file name ends in .trx)
  4. Set the router in "Recover mode" (same as other Asus routers) With this router pull power, hold the reset button in then plug in power and look for the slow blink of the power light.
    • Use ASUS Firmware Restoration Utility to upload the new firmware (from router CD or here). or search for Asus Recovery Utility. Or use tftp under windows. (tested on windows 10 the command tftp -i 192.168.1.1 put dd-wrt.v24-36808_NEWD-2_K2.6_mini_RT-N16.trx works)
    • You need to set the PC to Static IP 192.168.1.2 (Static IP guide)
    • Set the router in recovery mode by holding in the reset button when plugging in the power. The power light should now be blinking slowly, meaning the router is in restore/recovery mode and ready for the new firmware. Upload and wait for the router to reset on its own (may take anywhere from 3 to 15 minutes).
    Note on Asus Recovery Utility: The recover utility is just a tftp server with added wait timer, but standard tftp tools can also be used to upload firmware. Just remember to do the proper 3 minutes or more wait for the unit to reboot itself, after the 10 to 30sec tftp completion. See: TFTP, ASUS TFTP
  5. After the reboot from flashing, wait for the device to show the password change screen for DD-WRT. Enter root as the user and anything for the password as you will do the user/pass procedure again after the final flash.
  6. Reset to Factory Settings.
    • Method A - Use the DD-WRT GUI. Go to Administration->Factory Defaults, click Yes then select Apply.
    • Method B - WPS button hard reset. The following procedure will clear out the NVRAM and set dd-wrt back to default values:
      • With the unit powered off, press and hold the Red WPS button on the back of the unit.
      • Without releasing the WPS button plug the power in, and hold the WPS button for 30 seconds
      • When releasing the WPS button the unit will reboot and Factory Default settings will be loaded.
    Note on Asus hardware reset for NVRAM clear: do not use the Reset button. See Eko's post
  7. Reset is recommended BEFORE and AFTER flashing any builds prior to the 21530 transition build and may be required for large jumps to avoid issues.
  8. Upgrade to the custom transition firmware dd-wrt.v24-21530_NEWD-2_K3.x_big.bin (Alt)
    • NOTE: 21530 is not a regular released beta build! This transition firmware repartitions the flash. Later firmware of this series DO NOT.
  9. Use the web GUI to upload. Administration->Firmware Upgrade and DO NOT select reset to defaults.
  10. Upgrade to a recent working K3X big build from the betas folder, this time DO NOT reset settings.

See Where do I download firmware for links and research New Build and model-specific threads.

Note that you SHOULD NOT reset settings under any firmware beyond the transition firmware or you could render it unbootable necessitating starting over.

Firmware 36808 BIG K26 runs on this router. [2]

Congratulations! Please consider donating to DD-WRT as we are an open-source community providing free software to upgrade consumer routers with commercial-grade capabilities.

Also read Basic Wireless Settings and Advanced Wireless Settings to learn how to get the most WiFi data speed out of your new N-Router.

[edit] Troubleshooting

IF the router won't provide a Power LED after updating to the K3.x file...then there is a problem with the flash chip and it needs to be cleared (except the CFE). Issue the following commands via telnet/SSH or the Commands window under the Admin tab.

mtd erase nvram

mtd erase ddwrt

mtd erase linux

This will clear the flash chip...now start the process again with the K2.6 mini build

This is documented here: [3]

[edit] Notes about K3X

Do NOT issue "erase nvram" command from CLI...this unit only has 64K of nvram...the CLI thinks it has 128K and the firmware thinks its 256k...this means doing an "erase nvram" removed other parts of the flash chip (likely firmware partition "dd-wrt" or "linux")

Note: build 21530 seems to have wireless issues...it broadcasts the ssid...but you can't connect to it...however, if in repeater bridge mode, you can contact it through the host AP at the router's IP address.

There is a large thread with lots of info on this router here [4]

[edit] Notes

  • NAT Loopback (Port Forwarding) is broken in builds 15760-19969 (see this thread for a workaround)
    • 15962, 17990, & 18000 are Recommended Builds which would require this workaround
  • Special thanks to Eko for making the initial work on getting the RT-N16 to work with DD-WRT!

[edit] Upgrading DD-WRT

If DD-WRT is already loaded on your router, you can flash firmware using these steps

  1. Download firmware from one of the sites listed: Where do I download firmware
    • Go to the broadcom_K3X folder and download the ***K3.x-big-RT-N16.trx file.
  2. Open the DD-WRT's web interface in your web browser and open http://192.168.1.1/ (the default).
    • Admin page: Reset with Restore Factory Default settings and let the router reboot. NOTE this may soft brick it! To be absolutely sure this does not happen you can login to the router and issue the mtd commands listed above and start over with the K6 trailed build on recovery mode followed by the special transition build.
  3. Open the DD-WRT's web interface in your web browser. Upload/upgrade the firmware using the
  4. Administration tab -> "Firmware Upgrade" button.
  5. Click "browse" button and select the downloaded file then click "Upgrade". Wait 5 minutes to upload and write the flash, then the browser GUI should refresh when done.
    • Admin page: Reset with Restore Factory Default settings. (Only necessary if coming from an old build)
    • Alternative: on the Upgrade page, select "Reset to Default settings" for "After flashing, reset to". This is to automatically reset to Factory Default settings when it reboots, though this may not be reliable.
  • Note: For newer builds, please read the "New Build" or router-specific threads. See Where do I download firmware for more info on New build threads.

[edit] Restore to Asus Firmware

  1. Download the latest ASUS firmware from the ASUS web site [5]. Or use FTP.
  2. Rename the Asus firmware file from .trx to .bin
  3. Do a Restore Factory Default settings to Clear NVRAM in DD-WRT
  4. Go to the DD-WRT firmware upgrade page and select the renamed ASUS firmware
  5. After the flash finishes, and the router has rebooted, you see the ASUS GUI. If not, clear browser cache.
  6. Do a Factory Reset to clear the NVRAM using the Asus GUI

[edit] Recovery Mode

To access recovery mode, you MAY have to press the WPS button (not the reset button like other ASUS), then plug in power, and tftp the firmware you want to flash. Some people have reported that the reset button DOES work like the other ASUS routers to get it into recover mode. GUI Factory Reset before and after every flash to make sure you don't have any nvram problems or conflicts. On this router, the reset button only resets the nvram partition.

[edit] De-Brick Methods

  1. Hard reset to factory defaults by holding in the red WPS button while plugging in the power. Eko Forum note
  2. Recovery mode, to upload a different firmware.
  3. Internal serial connector, using CFE commands. Use 3.3V TTL level signaling. For example: US shop FTDI Serial Adapter is small and reliable, providing: Virtual serial port via PC USB to 3.3V-TTL (Rx, Tx) signaling. UK outlet
  4. Try to reset/reload the firmware using the TJTAG software and the internal JTAG connector.

[edit] Known Issues, Bugs, and Workarounds

  • Hardware fix (capacitor) for RT-N16 wireless drop-outs [6]
  • UPNP is currently not working for the RT-N16, so for now leave the feature disabled unless you want a full CPU Load. FIXED with SVN Changeset #13527
  • Access Restriction with MAC-Filter doesn't work on Asus RT-N16. FIXED Ticket #1319 (as of 12/18/09)
  • On this router the reset button will only bring you to recovery mode. If you wish to restore defaults, use the Red WPS button while plugging power in. Post By Eko
  • Rflow data reports only on upload traffic (Ticket #1139). Further discussion in this thread (only affects those using/enabling Rflow).
  • USB hard drives after build 15407: "The devs of dd-wrt have removed the loading of file system drivers from the startup of the firmware. They are now loaded on demand with automount. Well, this presents a problem for those of us with USB HDD that automount doesn't detect. In order to load the file system drivers at startup you need to add the following to save startup in the commands tab" for more, see TechInfoDepot DD-WRT Notes

[edit] NVRAM K2.6 Limitation

This is included for historical reference. Use the installation instructions above to flash a K3X build.

  • The RT-N16 only has 32K of NVRAM on k2.6 builds, and due to CFE limitations, some reported reboots and resets due to running out of NVRAM. K3X builds have expanded the default nvram partition via software.
  • However, getting K3X to run on this model can be tricky, `erase nvram` can cause a soft brick, requiring TFTP. redhawk0's procedure is here, also read the RT-N16 Condensed thread starting here

[edit] NVRAM Usage Reduction

  • Using traff (Traffic graph in Status_Internet.asp) or UPnP will cause the NVRAM to fill up quickly, causing router functions like ddns to stop functioning. Upon the next reboot the router will reset it self to firmware defaults. Disable traff and/or UPnP to prevent this, or flush the traff stats occasionally.
  • Note on traff: Status -> WAN -> (at the buttom) Data Administration -> button "Delete" flushes the traff stats. Services -> Services -> WAN Traffic Counter -> ttraff Daemon: Disable -> Apply settings, will stop the collection of traff data. You may however just choose to reset/delete traff data every month, and the traff data will not take much room in the NVRAM
  • Note on UPnP: Access to UPnP settings: NAT/QoS -> UPnP. In newer builds (Spring 2012) UPnP is disabled by default.
  • Note on monitoring NVRAM usage. In newer builds (spring 2012) NVRAM usage/max is displayed on the front Web GUI at "Space Usage"

[edit] NVRAM Reduction Scripts

  • Save the following as a startup script, it will remove initialized variables that are stored in NVRAM and currently have no value assigned to them (This cleared up nearly 5K of NVRAM in my experience).
       #!/bin/bash
       rm /opt/tmp/nvramshow
       nvram show >> /opt/tmp/nvramshow
       i=0
       while read -r line; do
       val=${line#*=}
       var=${line%*=}
       if [[ "$val" == "" ]]; then
               nvram unset $var
       fi
       i=`expr $i + 1`
       if [[ $i == 50 ]]; then
               sleep 2
               i=0
       fi
       done < /opt/tmp/nvramshow
       exit 0

Simpler version: Instead of outputting to a file to check if each var is empty, use grep to find empty vars:
1. Check current size and empty var count

       root# nvram show  | grep =$ | wc -l
       size: 30273 bytes (2495 left)
       414

2. Clean up

       root# for line in `nvram show  | grep =$ `; do var=${line%*=}; nvram unset $var; done
  • This can be saved as a startup script. Alternatively, to avoid further NVRAM usage, save to JFFS or USB with a JFFS partition. Save your script to /jffs/etc/config, give it a .startup extension, make it executable, then DD-WRT will run it after every boot.

3. Check again....

       root# nvram show  | grep =$ | wc -l
       size: 24307 bytes (8461 left)
       0

4. Saved almost 6K

       root# echo "$((8461 - 2495))"
       5966

[edit] Performance

This is without SFE accelerated NAT.

Test Description	Throughput - (Mbps)
WAN - LAN	                 141.1
LAN - WAN	                 143.3
Total Simultaneous      155.9
Max. Connections         200
Firmware Version          1.0.0.6

Sources: [7] Testing methods: [8], [9]

[edit] Overclocking

By factory default the cpu is clocked at 480 MHz and the Ram at 240 MHz. Overclocking at CPU 532 MHz / Ram 266 MHz can be achieved with these commands in a Telnet/SSH session :

  • nvram set clkfreq=532,266
  • nvram get clkfreq [to verify]
  • nvram commit && reboot

Note :

  • Not recommended: instability issues can arise from overclocking / overheating
  • See also Overclocking BCM 47xx CPU's for more info
  • Adding a heat sink or fan to the SoC is recommended

More information here (with pictures) to prevent overheating issues with heat sinks:

[edit] Links

Reviews