User Tools

Site Tools


toh:asus:rt-n16

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:asus:rt-n16 [2013/04/17 01:08]
toh:asus:rt-n16 [2014/10/18 22:00] (current)
yunga
Line 1: Line 1:
 ====== Asus RT-N16 ====== ====== Asus RT-N16 ======
- +The Asus RT-N16 ​is a middle class router from 2010 with gigabit ethernet and 802.11n draftIt is based on the Broadcom ​[[doc/hardware/soc/soc.broadcom.bcm47xx|BCM47xx]] SoC platform.
- +
-| {{:​meta:​icons:​tango:​48px-dialog-warning.svg.png?​nolink}} | The Asus RT-N16 ​has early support in Barrier Breaker (trunk) only!   | +
- +
-  * [[https://​dev.openwrt.org/​ticket/​6580|Ticket 6580]] tracks ​the effort to support this device. +
-  * [[https://forum.openwrt.org/​viewtopic.php?​id=33560|Curent forum thread]] for the latest info  +
-  * [[http://​www.znau.edu.ua/​temp/​asus-rt-n16/​openwrt-bcm4716-README.txt|George Kashperko'​s patches]] to get the N16 working on trunk+
  
 ===== Supported Versions ===== ===== Supported Versions =====
 ^ Version/​Model ^ S/N ^ OpenWrt Version Supported ^ Model Specific Notes ^ ^ Version/​Model ^ S/N ^ OpenWrt Version Supported ^ Model Specific Notes ^
-| 1.2 | - | Barrier Breaker ​(r35318?), WIP [[http://openwrt.razvi.ro/|Unofficial Builds]] |+| 1.2 | - | Barrier Breaker ​14.07 
 + 
 +**Note:** The wireless works fine both with b43 and brcmsmac kernel modulesBy default b43 module is usedIf you plan to use 802.11-n capable brcmsmac module instead you should: 
 +  * remove kmod-b43 package, 
 +  * install kmod-brcmsmac package, 
 +  * delete ​/etc/​config/​wireless file 
 +  * reboot 
  
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
 ^ CPU ^ Ram ^ Flash ^ Network ^ Gigabit ^ USB ^ Serial ^ JTag ^ ^ CPU ^ Ram ^ Flash ^ Network ^ Gigabit ^ USB ^ Serial ^ JTag ^
 | BCM4718 @ 480MHz | 128MiB | 32MiB | 4 + 1| Yes | Yes | Yes | Yes | | BCM4718 @ 480MHz | 128MiB | 32MiB | 4 + 1| Yes | Yes | Yes | Yes |
 +
 +===== Current OpenWrt'​s Firmware Status =====
 +The Barrier Breaker release have almost full support of Asus RT-N16. The following is a list of everything that needs polish in order to update this device'​s status to 'fully supported'​.
 +
 +  * Like for most wireless solutions based on BCM4718, it uses the reverse engineered b43 driver by default. With this driver only 802.11g is supported, but you can easily get wireless 802.11n working by installing the Broadcom open source brcmsmac driver. Alternatively,​ for more functionality like 40Mhz bandwidth you can use the closed source STA drivers, broadcom-wl. Advanced WiFi configurations have to be done via the wl utility however. For installation,​ refer to [[doc/​hardware/​soc/​soc.broadcom.bcm47xx#​wifi.drivers|the bcm47xx platform'​s page]].
 +  * There are reports that the generic firmware is not accepted by the ASUS web interface, but it may work with TFTP. Thus a build is required that is tagged with a header such that it is accepted. A patch should be created for OpenWrt, adding support for generating a proper Asus firmware.
 +  * The reset button works only to take you to Asus's failsafe mode. Clearing NVRAM is done with the button labelled by WPS. The '​real'​ reset button can also put the router in OpenWrt recovery mode, see [[toh/​asus/​rt-n16#​failsafe.mode]].
  
 ===== Installation ===== ===== Installation =====
 +
 +===== Install from ddwrt ====
 +
 + this is how i installed it from ddwrt ssh session:
 +
 +|''​cat /​proc/​mtd''​|
 +
 + make sure linux is on there then,
 +
 +|''​cd /tmp
 +wget http://​downloads.openwrt.org/​snapshots/​trunk/​brcm47xx/​openwrt-brcm47xx-squashfs.trx
 +mtd -r write openwrt-brcm47xx-squashfs.trx linux''​|
 +
 + after router reboots, you should be able to telnet to 192.168.1.1 and go from there.
 +
 + One thing is that you need to install kmod-b43 for wifi to work since that image installs the ath kmod's only
 +
 ==== Flash Layout ==== ==== Flash Layout ====
 ->​[[doc:​techref:​flash.layout]] for a detailed explanations. ->​[[doc:​techref:​flash.layout]] for a detailed explanations.
Line 28: Line 53:
  
 ==== OEM easy installation ==== ==== OEM easy installation ====
 +Note that (at least for some version of the Asus firmware) the generic OpenWrt builds are not accepted by the ASUS web interface. Hence, there is a need for a special build for initial flashing. A patch still needs to be made for this but it is not worked on as of yet. Until then, you can either use the methods below, or use the [[http://​www.dd-wrt.com/​wiki/​index.php/​Asus_RT-N16|DD-WRT]] file for initial flashing and then flash OpenWrt through the DD-WRT web interface.
 The page at [[wl500gp]] has detailed backup, flash, & recovery information which should largely apply to the RT-N16 as well. The page at [[wl500gp]] has detailed backup, flash, & recovery information which should largely apply to the RT-N16 as well.
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
  
-Flash from a PC using the Firmware Restoration utility. ​ +=== From Windows === 
 +Flash from a Windows ​PC using the Firmware Restoration utility. ​
 (Download or install the Firmware Restoration ​ Utility to your PC.)  (Download or install the Firmware Restoration ​ Utility to your PC.) 
  
Line 40: Line 66:
 To launch the recovery mode disconnect power from the router first. ​ To launch the recovery mode disconnect power from the router first. ​
  
-Press the WPS - Button approx. 3-5 seconds after you replugged the power. ​  +Hold the WPS button while replugged the power to the router to reset nvram, router will restart 2x. 
-The power LED should start to blink (low frequency). Retry if that won't work for you. +Hold the RESET button while replugged the power to the router to get into recovery mode :  tftpd is listening. 
 +The power LED should start to blink (low frequency, ~1 time every 3 seconds). Retry if that won't work for you.
  
-The router IP in the recovery mode is 192.168.1.1 255.255.255.0. ​+The router IP in the recovery mode is 192.168.1.1 255.255.255.0.
  
 Configure your PC (don't use 192.168.1.1)  ​ Configure your PC (don't use 192.168.1.1)  ​
  
-|''​netsh interface ip set adress ​name="​Local Area Connection"​ static 192.168.1.2 255.255.255.0''​|+|''​netsh interface ip set address ​name="​Local Area Connection"​ static 192.168.1.2 255.255.255.0''​|
  
 Ping 192.168.1.1 should give a response. ​ Ping 192.168.1.1 should give a response. ​
Line 59: Line 86:
 Reconfigure your PC back to DHCP  Reconfigure your PC back to DHCP 
  
-|''​netsh interface ip set adress ​name="​Local Area Connection"​ source=dhcp''​|+|''​netsh interface ip set address ​name="​Local Area Connection"​ source=dhcp''​|
  
-Connect to http://opwnwrt.lan and proceed with the basic configuration. ​+Connect to http://openwrt.lan and proceed with the basic configuration. ​
  
 This may work with other tftp utilities, too.  This may work with other tftp utilities, too. 
  
-==== Upgrading OpenWrt ====+=== From Linux ===
  
-=== LuCI Web Upgrade Process ===+The Asus RT-N16 has a failover mode, like the DIR-600 Bx (X=1,2). 
 + 
 +Get a tftp client, ​ Since Ubuntu is a popular choice snag it : 
 +|''​sudo apt-get install tftp''​| 
 + 
 +Now to modify the router ... 
 +To launch the recovery mode disconnect power from the router first.  
 + 
 +1. Hold the WPS button for 10 seconds while replugged the power to the router to reset nvram, router will restart 2x when you release. 
 +2. Hold the RESET button while replugged the power to the router to get into recovery mode :  tftpd is listening. 
 + The power LED should start to blink (low frequency, ~1 time every 3 seconds). Retry if that won't work for you. 
 + 
 +The router IP in the recovery mode is 192.168.1.1 255.255.255.0. 
 + 
 +Configure your box to use an ip in the same range : 192.168.1.2 is usually good. 
 + 
 +|''​sudo ifconfig eth0 192.168.1.2''​| 
 + 
 +Ping the interface to be sure it's up : 
 + 
 +|''​ping 192.168.1.1''​| 
 + 
 +Ctrl+C to break. 
 + 
 +If you get ping responses then it's up and ready to flash. 
 + 
 +|''​tftp 192.168.1.1''​| 
 + 
 +Set it to binary mode transfer : 
 +|''​mode binary''​| 
 + 
 +upload the firmware : 
 +|''​put openwrt-brcm47xx-squashfs.trx''​| 
 + 
 +When it's complete the router will be writing the firmwar and may not automatically reboot. ​ Wait up to 5 minutes, then power off the router and plug it back in. 
 + 
 +===== Upgrading OpenWrt ===== 
 + 
 +==== LuCI Web Upgrade Process ​====
  
-/*  *Browse to http://​192.168.1.1/​cgi-bin/​luci/​mini/​system/​upgrade/ LuCI Upgrade URL+/*  *Browse to System>​Backup/Flash Firmware page in the LuCI web interface
   *Upload file xxx to LuCI   *Upload file xxx to LuCI
   *Wait for reboot ​ */   *Wait for reboot ​ */
  
-=== Terminal Upgrade Process ===+==== Terminal Upgrade Process ​====
 /* /*
   *Login as root via SSH on 192.168.1.1   *Login as root via SSH on 192.168.1.1
Line 118: Line 183:
 | LAN 4 | 1 |  | LAN 4 | 1 | 
  
-==== Failsafe mode ==== +===== Failsafe mode ===== 
-If you forgot your password, broken one of the startup scripts, firewalled yourself or corrupted the JFFS2 partition, you can get back in by using OpenWrt'​s failsafe mode.+If you forgot your password, broken one of the startup scripts, firewalled yourself or corrupted the JFFS2 partition, you can get back in by using OpenWrt'​s failsafe mode. If you are unsuccesful solving the problem with OpenWrt'​s failsafe mode, i.e. you have bricked the device, you can use Asus's failsafe mode to flash a new image
  
-=== Boot into failsafe mode ===+==== OpenWrt Failsafe Mode ==== 
 +Follow these steps to boot into the OpenWrt failsafe mode:
   * Unplug the router'​s power cord.   * Unplug the router'​s power cord.
   * Connect the router'​s LAN1 port directly to your PC.   * Connect the router'​s LAN1 port directly to your PC.
Line 133: Line 199:
 **NOTE:** The root file system in failsafe mode is the SquashFS partition mounted in readonly mode. To switch to the normal writable root file system run mount_root and make any changes. Run mount_root now. **NOTE:** The root file system in failsafe mode is the SquashFS partition mounted in readonly mode. To switch to the normal writable root file system run mount_root and make any changes. Run mount_root now.
  
-  ​Forgot/lost your password and you like to set a new one +  ​Forgot/lost your password and you like to set a new one by running:\\ ''​passwd''​ 
- passwd +  ​Forgot the routers IP address. Retrieve it by running:\\ ''​uci get network.lan.ipaddr''​ 
-  ​Forgot the routers IP address +  ​You accidentally ​ran ''ipkg upgrade'' or filled up the flash by installing packages ​that are too big. In the latter case clean the JFFS2 partition and start over by running:\\ ''​mtd -r erase rootfs_data''​ 
- uci get network.lan.ipaddr + 
-  ​You accidentally ​run 'ipkg upgrade'​ or filled up the flash by installing ​to big packages ​(clean the JFFS2 partition and start over+If you are done with failsafe mode power cycle the router ​to boot in normal mode. 
- mtd -r erase rootfs_data + 
-If you are done with failsafe mode power cycle the router ​and boot in normal mode.+==== Asus Recovery Mode ==== 
 +Since this is an Asus product you can also use the failsafe mode (included in the boot loader). Press and hold the "​Reset"​ button on the back of the device, then plug it in. When the '​PWR'​ light blinks slowly then it is listening in TFTP mode (~ once every 3 seconds). The default address is 192.168.1.1. If this is not pingable, do the NVRAM reset first, described as follows. 
 + 
 +To reset the NVRAM, hold the "​WPS"​ button and plug in the router. ​ When the '​PWR'​ light is blinking quickly, then when you let go of the WPS button, the router will perform a reboot, wipe and reboot again. Note that clearing NVRAM does not clear much of OpenWrt'​s configuration,​ unlike other router software which keep configuration data in NVRAM. Since OpenWrt'​s configuration is kept in the main JFFS file system, using UCI configuration files, if you cannot boot normally you can reset or change this with OpenWrt'​s failsafe mode. See also [[doc/​techref/​flash.layout]]. 
 + 
 + 
 +===== Compiling From Source ===== 
 +If you want to compile  
 +Target System (Broadcom BCM947xx/​953xx) 
 +Target Profile (Broadcom SoC, all Ethernet, BCM43xx WiFi (wl, proprietary)) 
 + 
 +For Barrier Breaker: 
 +Target System (Broadcom BCM47xx/​53xx (MIPS)), 
 +Subtarget (MIPS 74K), 
 +Target Profile (Broadcom SoC, BCM43xx WiFi (proprietary wl)). 
 + 
 + 
 +===== Other ===== 
 + 
 +==== LEDs ==== 
 +Initially WLAN LED is not triggered by Wi-Fi driver. 
 +Edit /​etc/​config/​system to enable it (tested with brcmsmac):​ 
 + 
 +<​code>​ 
 +config led wlan_led 
 +        option name '​WLAN'​ 
 +        option sysfs '​bcm47xx:​blue:​wlan'​ 
 +        option trigger '​netdev'​ 
 +        option dev '​wlan0'​ 
 +        option mode 'link tx rx' 
 +</​code>​
  
 ==== Buttons ==== ==== Buttons ====
Line 210: Line 306:
 */ */
  
-===== Hardware mods =====+==== Hardware mods ==== 
 +There have been attempts to use the PCIe interface. See http://​linux-mips-org.10913.n7.nabble.com/​Re-brcm4716-and-PCIe-td56191.html  
 +http://​wiki.openwrt.org/​_media/​inbox/​rt-n16_back_hires.jpg 
 + 
 +==== Fixing Bad Capacitors ​==== 
 + 
 +After unplugging and replugging the router'​s power it became unresponsive,​ even the LEDs were not lightning up. I opened the router to find a capacitor near the power supply (most likely a filter cap) which seemed slightly popped. The capacitor was a 680uF 16V. I didn't have any capacitor with the same specs at hand, so I replaced it with a capacitor with higher voltage/​capacity ratings (1000uF 25V). After replacing the capacitor the router started working and the router configurations were still intact. 
 + 
 +{{:​media:​rtn16_bad_cap.png?​300|Bad Cap}} 
 +{{:​media:​rtn16_cap_mod_by_nc.png?​640|New Cap}} 
 + 
 ===== Other Info ===== ===== Other Info =====
-  * ASUS factory firmware and sources available from [[ftp://ftp.asus.com/pub/​ASUS/​wireless/​RT-N16/]]+  * ASUS factory firmware and sources available from [[http://support.asus.com/download.aspx?​SLanguage=en&​p=11&​m=RT-N16|ASUS support]] (choose OS "​Others"​)  ​
   * [[http://​dev.debwrt.net/​wiki/​AsusRT-N16|RT-N16 DebWrt wiki page]]   * [[http://​dev.debwrt.net/​wiki/​AsusRT-N16|RT-N16 DebWrt wiki page]]
-  * [[http://​www.techinfodepot.info/​index.php/​Asus_RT-N16|Tech Info Depot Wiki]]+  * [[http://​www.techinfodepot.info/​wiki/​Asus_RT-N16|Tech Info Depot Wiki]] 
 +  * [[http://​wikidevi.com/​wiki/​ASUS_RT-N16| WikiDevi]] 
 + 
 +Development information:​ 
 +  * [[https://​forum.openwrt.org/​viewtopic.php?​id=33560|Forum thread]] for the latest info 
 +  * [[http://​www.znau.edu.ua/​temp/​asus-rt-n16/​openwrt-bcm4716-README.txt|George Kashperko'​s patches]] which were used to get the N16 working  
  
 ===== Tags ===== ===== Tags =====
toh/asus/rt-n16.1366153709.txt.bz2 · Last modified: 2013/04/17 01:08 (external edit)