Linksys WRT160N v3

From TechInfoDepot
Jump to navigationJump to search
multiple revisions of this device, use caution
bgn (N300)
Ultra RangePlus Wireless-N Broadband Router
Linksys WRT160N 01.jpg
Support
Wikipedia
InfoDepot Wiki
WikiDevi.wi-cat.ru
3rd Party Firmware
dd-wrt
OpenWrt
Tomato any flavor
Gargoyle
Status Unknown
Platform
BrandModelRev
Linksys WRT160N v3
Serial number prefix
CSE2, CSE3, CSE4, or CSE5
FCC ID
IC ID
Board ID
3763-01010103R
Type
wireless router
Series
WRT160N
CPU1
Broadcom BCM4716B0
CPU1 Type
MIPS 74K R2
CPU1 Speed
300 MHz
Flash1 Chip
Macronix 25L3205DM2I-12G
Flash1 Size
4 MiB4,194,304 B <br />32,768 Kib <br />4,096 KiB <br />32 Mib <br />0.00391 GiB <br /> (Serial)
RAM1 Size
32 MiB33,554,432 B <br />262,144 Kib <br />32,768 KiB <br />256 Mib <br />0.0313 GiB <br />
RAM1 Chip
Winbond W9425G6EH-5H
nvram Size
32K
ETH chip1
Broadcom BCM4716B0
Switch
Broadcom BCM5325E
Ethernet Port Count
1-100MbE-WAN
4-100MbE-LAN
Wired Standard
IEEE 802.3/3u
Port-based vlan
yes - GUI & nvram

802dot11 OUI: 00:23:69 (12 E, 19 W), 00:25:9C (8 E, 15 W)
Ethernet OUI: 00:23:69 (12 E, 19 W), 00:25:9C (8 E, 15 W)

Stock bootloader
CFE
Stock FW OS
Linux
Expansion IF types
none
Power
12 VDC, 0.5 A
Connector type
barrel
Serial Port (UART)
yes
JTAG Port
yes/no, (Resistors missing from factory)
Flags:
WEP, WPA, WPA2
Other

Default SSID: linksys (53 addl. devices)
Default IP address: 192.168.1.1
the IP 192.168.1.1 is used by 1323 additional devices
of which 155 are Linksys devices
Default login user: blank
Default login password: admin
blank:admin credentials used by 278 additional devices
of which 135 are Linksys devices

Default Channel(s)
6
Manuf/OEM/ODM
3rd Party Firmware Support
DD-WRT • (List)
, TomatoUSB • (List | DLs)
Retail
FCC approval date 30 December 2008
Country of manuf China
Physical
LEDs/Color
Blue, SES LED = Blue, Amber
Dimensions
7.95 by 6.3 by 1.34 inches (202 mm × 160 mm × 34 mm)
Weight
10.4 ounces (290 g)
Radio 1
Chip1
Broadcom BCM4716B0
Wireless interface OUI
00:23:69,00:25:9C
Antenna Connector Type
none, internal
MIMO status
2x2:2
Wireless Standard
IEEE 802.11b/g/n
802.11n
up to 300 Mbps
802.11g
up to 54 Mbps
802.11b
up to 11 Mbps
WiFi Operating Frequency
2.4 GHz
Radio cor_rev
17
 CPU1 brandRadio1 chip1 brandRadio1 chip2 brand
Linksys WRT160N v1.0BroadcomBroadcomBroadcom
Linksys WRT160N v1.1BroadcomBroadcomBroadcom
Linksys WRT160N v2RalinkRalinkRalink
Linksys WRT160N v3BroadcomBroadcom

For a list of all currently documented Broadcom chipsets with specifications, see Broadcom.

For a list of all currently documented Linksys device with specifications, see Linksys.

300 Mbps - 2SS 2.4GHz 802.11n (40MHz chan.) = N300 class

Overview

"3763-01010103R" is silkscreened on the board in the FCC photos.

Exactly the same hardware as M10 and E1000

Links of Interest

Flashing

Flashing DD-WRT

Supported by dd-wrt as of = K26 build 13253

On the DD-WRT Wiki

  1. Read the Peacock Announcement.
  2. Download dd-wrt.v24-14929_NEWD-2_K2.6_mini_wrt160nv3.bin.
  3. Set a static IP on your computer to 192.168.1.7. Subnet mask should be 255.255.255.0
  4. Connect the lan cable from your computer to a LAN port of your router. Make sure your router is plugged in. Nothing should be connected to your computer or the router except the lan cable between them.
  5. Ensure you have a physical Ethernet connection to your router, and disable your wireless adapter, antivirus/firewall protection, and any software that makes strong use of your network (BitTorrent, Streaming Audio/Video, etc).
  6. Perform a hard 30/30/30 reset.
  7. Navigate to http://192.168.1.1/ in your web browser of choice.
  8. At the Linksys Management Mode screen, do not give the reboot command. You will use this page to upgrade your firmware.
  9. Browse to the firmware you downloaded and click Upload.
  10. Do not touch anything. The page will tell you that the upgrade was successful and the router is now rebooting. Your router may take upwards of a couple minutes to reboot. Watch the lights... once the wireless and power indicators are on steadily for several seconds, your router is fully rebooted and you can click "Continue" in your browser window.
  11. If the DD-WRT password change page displays, your upgrade has been successful, and you must now perform another hard 30/30/30 reset. This time, when you navigate to http://192.168.1.1/, click "Reboot" and wait for the router to come online again so you can configure it.

If the DD-WRT password change page does not display, your page request times out, or you can't ping 192.168.1.1, make sure both wireless and power lights are on steadily first, then do a hard power cycle (unplug the power from the router—do not do a 30/30/30 reset). Wait a few seconds and plug the power back into the router. Wait until both wireless and power lights are on steadily, then navigate to http://192.168.1.1/ in your browser of choice again. If the DD-WRT password change page displays, your upgrade has been successful, and you must now perform another hard 30/30/30 reset. This time, when you navigate to 192.168.1.1, click "Reboot" and wait for the router to come online again so you can configure it.

If you wish to experiment with a newer build, you should read the "build thread" for any build you are considering putting on your router, before flashing a newer build, (as discussed in the peacock announcement).

Flashing OpenWrt

Linksys WRT160N

Flashing Tomato

Supported by TomatoUSB as of = build 54/NoUSB-Std (4MB flash) only

Preparation

  1. Use a wired connection only. (disable wireless to be in the safe side)
  2. Make sure you disable firewall in Windows.
  3. Disable the virus guard.

Let's Begin!

  1. Download and extract the K26-MIPSR2 Tomato USB Firmware. Mini, STD or VPN version is up to you. With this router you can only use certain builds. It's flash size is only 4MB. (Get them Here)
  2. Connect your computer's using network cable to one of the LAN ports of the Asus router. Manually set your computer IP address (in the TCP/IP properties of the LAN connection) to 192.168.1.2, network mask 255.255.255.0.
  3. Upgrade to dd-wrt first.
  4. After upgrade, go to the router by typing 192.168.1.1, after setting the username and password go to administration then firmware upgrade. Click browse and find the TomatoUSB firmware file. Click upgrade.
  5. After upgrading is complete open your browser, go to the router by typing 192.168.1.1, when prompted for a username and password enter "root" and "admin". Go to Administration > Configuration > Restore Default Configuration, select "Erase all data in NVRAM memory (thorough)" and click OK. To insure that the processor has time to complete addressing all NVRAM variables it's best to wait about 5 minutes before making any changes.

You are now ready to start using your router with Tomato.

Upgrading

Updating DD-WRT

If dd-wrt is already on the router follow these instructions. If stock firmware is on the router follow the flashing instructions.

  1. Check for recommended builds here first.
  2. Set your computer to a static IP of 192.168.1.7. (or to whatever subnet the router is on) Disable all firewalls and security. Disable wireless on your computer and only have the router connected to the flashing computer by the ethernet cable between the two.
  3. Hard reset or 30/30/30 (If the router supports it, if not, reset to defults in the GUI) prior to flashing. Wait. Check for password page on re-login and change password.
  4. Flash firmware. You can use the webgui except if you have a belkin router. (For belkin use tftp.exe to flash)
  5. Wait...at least three minutes. Lights should return to normal. See important2, below. Failing to wait is how most people brick their routers.
  6. Do a power cycle of the router. (Unplug the cord, count to 30 and plug it back in.)
  7. Wait for the lights to return to normal usually about 2 minutes.
  8. Hard reset or 30/30/30 again (If the router supports it, if not, reset to defults in the GUI). Wait. Check for the password page and re-login to change the password. Then you can reconfigure your settings manually.
  9. Once configured set your computer back to autoIP and autoDNS.

Important1: This Hard reset or 30/30/30 works fine for Asus router, but you do have to power cycle after the reset.

Important2: After you flash the firmware, and before you do the hard reset, the router will be building some nvram settings. YOU MUST WAIT FOR THIS TO FINISH PRIOR TO DOING ANYTHING WITH THE ROUTER INCLUDING A HARD RESET. Usually, you can tell when this process is completed by the WAN light coming on, but it does take several minutes. Go have a beer. There are starting to be more and more people who BRICK their routers by not waiting until the nvram is rebuilt, PRIOR to doing a hard reset. YOU NEED TO WAIT!

Reverting

Reverting to OEM Firmware from DD-WRT

  1. Read the peacock announcement found here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486
  2. Do a Hard reset or 30/30/30 on the router according to note 1 of the peacock announcement (30/30/30)
  3. Set a static IP on your computer to 192.168.1.7. Subnet mask should be 255.255.255.0.
  4. Connect the lan cable from your computer to a LAN port of your router. Make sure your router is plugged in. Nothing should be connected to your computer or the router except the lan cable between them. Turn your firewall and any wireless computer connections OFF.
  5. Power cycle the router (uplug the power from the router for 30 seconds and then plug it back in)
  6. Open your browser to 192.168.1.1 by putting that in the browser address window of your browser. You should open the linksys webgui and NOT a page that says Management Mode. If you see management mode, power cycle the router again.
  7. Enter your username and password
  8. Go to administration and firmware upgrade
  9. Navigate to the folder that you are using, and select WRT160N_3_0_02_004.code.bin.
  10. Hit upgrade
  11. When you get a success, wait FIVE FULL minutes.
  12. When you can again access the Linksys webgui using a browser at 192.168.1.1, do another Hard reset or 30/30/30 on the router.
  13. Reset your computer ethernet connection to auto IP and auto DNS

JTAG-Serial Info

JTAG

JTAG Pinouts

 nTRSt - R64 - 1o o2  GND
   TDI - R65 - 3o o4  GND
   TDO - R66 - 5o o6  GND
   TMS - R67 - 7o o8  GND
   TCK - R68 - 9o o10 GND
   N/C - -- - 11o o12 N/C

DD-WRT JTAG Recovery

Source

As most know.. The wrt160n v3 & the E1000 v1 are identical in regards to hardware.

As most know, Linksys has disabled the jtag circuit in these routers by leaving out smt components (just like the 610 v2 & E3000)

I'll link this in another thread where a dd-wrt member needs jtag for this router.

I traced the jtag header to the missing components. What needs to be done, is to bridge the pads on the pcb. There are 5 pads that need to be bridged.

Four can be found on the bottom of the pcb, and one on the top.

They are marked R64, R65, R66, R67, & R68.

R67 is on the top side of the pcb, and the rest on the bottom.

Attached are pics showing the pads that need to be bridged as well as the jtag output doing a -probeonly.

The ribbon cable you will see in one of the pics, is connected to a serial header I hot glued to the side of the pcb. This router I purchased to assist the devs (Eko) in porting dd-wrt to this router. Cuz we bricked it many times, pogo pins to the serial pads would not do. I needed something I could connect to many times.

jtag output
jtag output
C:\E1000>tjtag302 -probeonly

==============================================
EJTAG Debrick Utility v3.0.2 RC2-1 Tornado-MOD
==============================================

Selected port = 0x378

Intial value of Control register is 000000CC
Intial value of status register is 0000007F
01111111 (0000007F)

Status bit 7 Busy Inverted pin 11 = 1
Status bit 6 *Ack pin 10 = 1
Status bit 5 Paper-out pin 12 = 1
Status bit 4 Select pin 13 = 1
Status bit 3 *Error pin 15 = 1
* means low = true, e.g., *Error

VCC connected
values of Control register after init 0x000000CC
value of status register after init 0x0000007F
system reset complete

Detected IR chain length = 32
Number of device(s) = 1

idcode 0x000a817f 32
Jtag is in LV mode
switching to MIPS mode
Probing bus ... Done

Instruction Length set to 5

CPU Chip ID: 00010000000010001100000101111111 (1008C17F)
*** Found a Broadcom BCM5356A1 KFGB REV 1 CPU chip ***

- EJTAG IMPCODE ....... : 01100000010000010100000000000000 (60414000)
- EJTAG Version ....... : 3.1
- EJTAG DMA Support ... : No
- EJTAG Implementation flags: R4k ASID_8 MIPS16 NoDMA MIPS32

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Skipped
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Init PrAcc ... Done
Clearing Watchdog ... Done


Chip ID b83a
Chip Rev 0
Package Options 2
Number of Cores 5
Core Revision 63
Core Type 8830
Core Vendor ID 15200000
Flash Type 100
Flash Type = SFLASH_ST
Dest is bits 0
Dest is bits1 0
Dest is bits 0
Flash is byteswapped 0
Endian Type is LE 0
PLL Type 00000000
00000000000000000000000000000000 (00000000)
00000000000000000000000000000000 (00000000)
00000000000000000000000000010010 (00000012)
Done

Flash Vendor ID: 00000000000000000000000011000010 (000000C2)
Flash Device ID: 00000000000000000010000000010110 (00002016)
*** Found a Macronix MX25L3205D (4MB) Serial Flash Chip ***

- Flash Chip Window Start .... : 1FC00000
- Flash Chip Window Length ... : 00400000
- Selected Area Start ........ : 00000000
- Selected Area Length ....... : 00000000



*** REQUESTED OPERATION IS COMPLETE ***


C:\E1000>

Serial

Serial Pinouts

 VCC  o TP12
  TX  o TP13
  RX  o TP14
 N/C  o TP15
 GND  o TP16

DD-WRT Serial Recovery

Modified Redhawk0 instructions

  1. Print out these instructions for Off-Line use
  2. Connect PC to router with a network cable
  3. Configure PC with a static IP of 192.168.1.10
  4. Connect Serial cable
  5. Start one of the programs from above
  6. Get TFTP ready with file selected
  7. Use dd-wrt.v24-14929 NEWD-2 K2.6 mini wrt160nv3.bin
  8. Connect power to the router
  9. start a rapid fire Cntl-C as you plug the router to power
  10. type "nvram erase" w/o quotes, hit enter
  11. type "flash -ctheader : flash1.trx" w/o quotes, this starts the tftp daemon, hit enter
  12. but have TFTP ready
  13. Click go or start on TFTP
  14. give it 5 minutes after it finishes
  15. then power cycle....Hard reset or 30/30/30...then config
  16. when it stops spitting out txt....hit the enter key...you should get a login prompt...at that point, power cycle it, hard reset...then config
  17. you'll see it boot up


vlan Info

DD-WRT vlan Info

VLAN Support

Confirmed the WRT160N v3.0 supports port-based vlans via the GUI and nvram with build 14929.

Label backwards in the GUI

 1 2 3 4 | GUI labels
 4 3 2 1 | Case labels

WRT160N v3.0's ports are mapped like this:

 1 2 3 4 | case labels
 4 3 2 1 | nvram port numbers
Defaults
root@DD-WRT:~# nvram show | grep vlan.ports
vlan2ports=0 5
vlan1ports=4 3 2 1 5*
vlan0ports=1 2 3 4 5*
size: 19942 bytes (12826 left)
root@DD-WRT:~# nvram show | grep port.vlans
port5vlans=1 2 16
port4vlans=1
port3vlans=1
port2vlans=1
port1vlans=1
port0vlans=2
size: 19942 bytes (12826 left)
root@DD-WRT:~# nvram show | grep vlan.hwname
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0
size: 19942 bytes (12826 left)
root@DD-WRT:~# lsmod
Module                  Size  Used by
nf_nat_pptp             4096  0
nf_conntrack_pptp       4096  1 nf_nat_pptp
nf_nat_proto_gre        4096  1 nf_nat_pptp
nf_conntrack_proto_gre     4096  1 nf_conntrack_pptp
etherip                 8192  0
switch_robo             4096  0
switch_core             8192  1 switch_robo
root@DD-WRT:~# ls /proc/switch
eth0
root@DD-WRT:~# cat /proc/switch/eth0/vlan/0/ports
1       2       3       4       5t
root@DD-WRT:~# cat /proc/switch/eth0/vlan/1/ports
1       2       3       4       5t*
root@DD-WRT:~# cat /proc/switch/eth0/vlan/2/ports
0       5t
root@DD-WRT:~#
Commands
root@DD-WRT:~# nvram set vlan2ports="0 4 5"
root@DD-WRT:~# nvram set vlan1ports="3 2 1 5*"
root@DD-WRT:~# nvram commit
root@DD-WRT:~# reboot
nvram
root@DD-WRT:~# nvram show | grep vlan.ports
vlan2ports=0 4 5
vlan1ports=3 2 1 5*
vlan0ports=1 2 3 4 5*
size: 20131 bytes (12637 left)
root@DD-WRT:~# nvram show | grep port.vlans
port5vlans=1 2 16
port4vlans=1
port3vlans=1
port2vlans=1
port1vlans=1
port0vlans=2
size: 20131 bytes (12637 left)
root@DD-WRT:~# nvram show | grep vlan.hwname
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0
size: 20131 bytes (12637 left)
root@DD-WRT:~#

Pictures

Notes

DD-WRT Notes

K26 build 13253

DD-WRT Recovering from a bad flash

  1. Hard reset or 30/30/30
  2. Login to http://192.168.1.1/ and you will see the Linksys - Management Mode page.
  3. Browse to dd-wrt.v24-14929_NEWD-2_K2.6_mini_wrt160nv3.bin
  4. Click Upgrade
  5. In a moment, you will see "Upload completed. System is going to reboot. Please wait a few moments." When the lights return to their normal state, you can click "Continue" to be taken to the router's main page.
  6. Upgrade to the build you want via "How to upgrade if dd-wrt is already installed"

DD-WRT Performing a 30/30/30 Reset on a WRT160Nv3

  1. Perform a normal 30/30/30 reset.
  2. Login to http://192.168.1.1/ and you will see the Linksys - Management Mode page.
  3. Click "Reboot."
  4. In a moment, you will see "Command reboot completed." The router will now start the reboot process. When the lights return to their normal state, you can click "Continue" to be taken to the router's main page.

DD-WRT How Lights Behave During Reboot on a WRT160Nv3

When you power cycle a WRT160Nv3, the lights will act as follows:

  1. Power light blinks. If LAN or WAN cable is plugged in, their respective lights will flash on activity.
  2. Power light turns off for several seconds.
  3. All lights, except power light, turn on and then off.
  4. Power light blinks slowly, then faster, and WLAN light will turn on.
  5. Once Power light and WLAN light are on solid, the router is fully rebooted.

DD-WRT gpio's

1 - [out] Power LED
2 - [out] Orange SES LED
4 - [out] Blue SES LED
5 - [in] SES Button

DD-WRT Wireless Security LED Script

Works in both DD-WRT and TomatoUSB

while sleep 5; do if [ `nvram get wl0_security_mode` = "disabled" ]; then gpio enable 4; else gpio disable 4; fi; done &

or

while sleep 1; do
  if [ `nvram get wl0_security_mode` = "disabled" ]; then
    gpio enable 4
    gpio disable 2
  else
    gpio enable 2
    gpio disable 4
  fi
done &

For a more simple solution to the amber light, the following telnet/SSH commands should change it to blue permanently:

nvram set connblue=1
nvram commit
reboot

Hardware Modification

See also