Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
oldwiki:openwrtdocs:hardware:linksys:wrt160n [2009/03/21 21:11] – fixed alleged conflicts toh:linksys:wrt160n [2018/03/03 20:46] – ↷ Links adapted because of a move operation
Line 1: Line 1:
- 
- 
-| |  
- 
 ====== Linksys WRT160N ====== ====== Linksys WRT160N ======
  
-The Linksys WRT160N is the Linksys Ultra Range Plus Wireless-N Broadband Router. It runs Linux out of the box. The source code tarball is available from the [[http://www.linksys.com/servlet/Satellite?c=L_Content_C1&childpagename=US%2FLayout&cid=1115416836002&pagename=Linksys%2FCommon%2FVisitorWrapper|Linksys GPL Code Center]]+{{section>supported_devices:432_warning#infobox_for_dataentries&noheader&nofooter&noeditbutton}} 
 +{{section>meta:infobox:broadcom_wifi#infobox_for_dataentries&noheader&nofooter&noeditbutton}}
  
-OpenWRT will run on WRT160N v1.1.  It is not directly supported by any pre-built firmware images on the download page yet, You need to [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N#head-6bc46006cdfb30edaf9f048ef09ad1250a2aee2d|compile it yourself]] or try an image from [[http://snipes420.googlepages.com/|Here]].+See https://lede-project.org/toh/hwdata/linksys/linksys_wrt160n_v3
  
-**NOTE:** The device only supports the 2.4 Kernel version of Kamikaze. We need to figure out the correct kernel configuration to support the flash chip on the 2.6 Kernel. At this point in time the wl.o binary driver from Broadcom is only available for 2.4 Kernels and the opensource b43 driver is not ready yet. As such the wireless does not work if you flash a image with a 2.6 Kernel. 802.11N is not supported until the upstream provider can support it.+===== Supported Versions =====
  
-Please update this wiki page if this information is proven false or further support is added.+According to [[wp>Linksys_WRT300N_series#WRT160N]] there is more than one version of this device. Please see what version you have and add information to the wiki or post in this [[http://forum.openwrt.org/viewtopic.php?id=15321|forum thread]].
  
-Link to Product info page at linksys.com -> [[http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1175239516849&pagename=Linksys%2FCommon%2FVisitorWrapper|WRT160N Product_Page]]+^ Model ^ CPU ^ Wireless ^ Flash ^ RAM ^ S/N ^ FCC ID ^ LEDE 17.01.4 ^ OpenWrt Kamikaze ^ OpenWrt Backfire ^ OpenWrt trunk (Barrier Breaker) ^ 
 +| WRT160N v1.0 | BCM4704 | BCM4321| 4MB | 32MB | CSE01? | ? | ? | X | Y | OOM | 
 +| WRT160N v1.1 | BCM4703 | BCM4321 | 4MB | 16MB | CSE01 | Q87WRT160N | ? | X (See Below)| ? | ? | 
 +| WRT160N v2.0 | RT2880F | Ralink | 4MB | 16MB | CSE11 | Q87WRT160NV2 | ? | not supported | ? | ? | 
 +| WRT160N v3.0 | BCM4716 | BCM4716 | 4MB | 32MB | CSE41/CSE51 | Q87WRT160NV3 | Yes | WIP (not supported yet, see below) | ? | WIP |
  
-====== Supported Versions ======+==== V1.1 ====
  
-Please see what version you have and add information to the wiki or post in this [[http://forum.openwrt.org/viewtopic.php?id=15321|forum thread]].+^ Build ^ Date Released ^ Link ^ Comments ^ 
 +| **Stable** Standard Backfire 10.03.1 | ? | ? | **Recommended** | 
 +| **Stable** Attitude Adjustment 12.09 | ? | ? | *Known to be slow | 
 +| **Stable** Barrier Breaker 14.07 | ? | ? | *Known to be slow | 
 +* AA and BB tend to run very slowly due to low RAM and OOM if LuCI is used. https://github.com/leitec/openwrt-leitec/wiki/Limitations-on-Routers-with-16MB-RAM Therefore, Backfire 10.03.1 is recommended.
  
-According to Wikipedia there is more than one version of this device[[http://en.wikipedia.org/wiki/Linksys_WRT300N_series#WRT160N|Reference]]+==== V2.0 ==== 
 +Not supported. 
 +==== V3.0 ====
  
-DD-Wrt [[http://www.dd-wrt.com/wiki/index.php/Supported_Devices#Linksys|Devices list]] also mentions more than one.+V3.0 has the same hardware as [[.:E1000|the Linksys E1000 v1]]; see the information for it, which may be helpful.
  
-Please add/confirm info here if you can.+^ Build ^ Date Released ^ Link ^ Comments ^ 
 +| **STABLE** | 2017-10-18 | https://downloads.lede-project.org/releases/17.01.4/targets/brcm47xx/mips74k/lede-17.01.4-brcm47xx-mips74k-linksys-wrt160n-v3-squashfs.bin | LEDE 17.01.4 Release | 
 +| **Development Snapshot** | As of 2013-08-27 | https://downloads.openwrt.org/snapshots/trunk/brcm47xx/mips74k/openwrt-brcm47xx-mips74k-linksys-wrt160n-v3-squashfs.bin | :!: This is a development snapshot build, (see https://downloads.openwrt.org/)|
  
-^ Model ^ CPU ^ Wireless ^ Flash ^ RAM ^ S/N ^ FCC ID ^ OpenWrt Kamikaze ^ 
-| WRT160N v1.0 | ? | ? | 4MB | 32MB |  ? |  |  X |  
-| WRT160N v1.1 |  BCM4703| BCM4321 | 4MB | 16MB | CSE01 | Q87WRT160N |  X (See Below)|  
-| WRT160N v2.0 |  RT2880F| Ralink |  4MB | 16MB | CSE11 | Q87WRT160NV2 |  not supported |  
  
-====== Hardware ======+==== Forum Links ==== 
 +Please see also the following forum topics: 
 +  * OpenWrt → General Discussion → LinkSys WRT160n -- [[https://forum.openwrt.org/viewtopic.php?id=15321]] 
 +  * OpenWrt → General Discussion → E1000v1/WRT160Nv3/Valet M10v1 - working "alpha" status, testing wanted -- [[https://forum.openwrt.org/viewtopic.php?id=44045]] 
 +  * OpenWrt → Developers Only → Add support for Linksys E1000 v1 (and brcm4716) -- [[https://forum.openwrt.org/viewtopic.php?id=39581]]
  
-===== Info ===== 
  
-| attachment:wrt160N_CPU_systeminfo_.jpg| +===== Installation ===== 
 +->[[docs:guide-user:installation:generic.flashing]] 
 +==== Flash Layout ==== 
 +->[[docs:techref:flash.layout]]
  
-^ Version ^1.0/1.1 |  2.0|  
-^ Architecture ^MIPS |  MIPS |  
-^ Vendor ^Broadcom |  Ralink |  
-^ Bootloader ^CFE |  U-Boot |  
-^ System-On-Chip ^Broadcom 4703KFBG|  RT2880 Soc |  
-^ CPU Speed ^266 Mhz |  266 Mhz |  
  
----- /!\ **Edit conflict - other version:** ---- +==== OEM easy installation ==== 
-^ Flash size ^4 MiB |  32 MiB |  +TODO
-^ RAM ^32/16 MiB |  128 Mib | +
  
----- /!\ **Edit conflict - your version:** ---- 
-^ Flash size ^4 MiB |  32 MiB |  
-^ RAM ^32/16 MiB |  128 Mib |  
  
----- /!\ **End of edit conflict** ---- +==== How To Build ==== 
-^ Wireless ^Broadcom BCM4321 802.11b/g/n Wireless LAN (integrated|  RT2880 Soc |  +  v3 don't related? (fixme- it appears that just enabling it in backfire kernel don't make this router to work.
-^ Ethernet ^Switch in CPU |  - |  +
-^ USB ^No |  - |  +
-^ Serial ^Yes |  Yes | +
  
-===== Chips on the PCB =====+<code> 
 +make kernel_menuconfig 
 +</code>
  
-==== V1.0/1.1 ===+  - enable "Support  8-bit buswidth"<code>   Location: 
-  * CPU BCM4703 [[http://www.broadcom.com/collateral/pb/4703_4704-PB00-R.pdf|Product_Brief]] (the original linksys firmware calls it a BCM4704 in /proc/cpuinfo)+     -> Device Drivers  
 +       -> Memory Technology Device (MTD) support (MTD [=y]) 
 +         -> RAM/ROM/Flash chip drivers 
 +           -> Flash chip driver advanced configuration options (MTD_CFI_ADV_OPTIONS [=y]) 
 +             -> Specific CFI Flash geometry selection 
 +                 [*]     Support  8-bit buswidth</code> 
 +  - Exit the configuration menu and save the settings. 
 +  build the whole thing again with the new config. (This time wont take as long)
  
-  * BCM5325 [[http://www.broadcom.com/collateral/pb/5325-PB05-R.pdf|Product_Brief]]+Now you can flash the firmware image in /bin to your WRT160N using the Linksys web interface(I tried the openwrt-wrt150n-squashfs.bin and it worked; openwrt-brcm-2.4-squashfs.trx also works if using the tftp install method) 
 +  * The wireless works when you enable it in /etc/config/wireless
  
-  * Flashchip - EN29LV320AB.  This device is capable of operating in 8-bit or 16-bit mode. [[http://www.eonsdi.com/pdf/EN29LV320.pdf|Data Sheet]] 
  
-  BCM4321 [[http://www.broadcom.com/collateral/pb/4321_2055-PB02-R.pdf|Product_Brief]]+===== Hardware ===== 
 +^                  ^ v1.0/v1.1 ^ v2.0 ^ v3.0 ^ 
 +**Architecture:** | MIPS | MIPS | MIPS |  
 +| **Vendor:** | Broadcom  | Ralink | Broadcom |  
 +| **Bootloader:** | CFE | [[docs:techref:bootloader:uboot]] | CFE |  
 +| **System-On-Chip:** | Broadcom 4703KFBG  | RT2880F  (MIPS 4KEc V?.?) | Broadcom 4716B0KFBG (MIPS 74Kc V4.9) |  
 +| **CPU/Speed** | BCM4703 266 MHz | 266 MHz | BCM4716 300 MHz |  
 +| **Flash-Chip:** | [[http://www.eonsdi.com/pdf/EN29LV320.pdf|EN29LV320AB]] | ??  | ?? | 
 +| **Flash size:** | 4 MiB | 4 MiB (Samsung 813; K8P3215UQB or EON Silicon EN29LV320AB) | 4 MiB (MX 25L3205DM2I) |  
 +| **RAM:** | 32/16 MiB | 16 MiB (WindBond W9864G6IH 64Mbit SDRAM) | 32 MiB (Winbond W9425G6EH-5H) |  
 +| **Wireless:** | [[http://www.broadcom.com/collateral/pb/4321_2055-PB02-R.pdf|BCM2055]]/BCM4321 | ? | ? |  
 +| **Ethernet:** | [[http://www.broadcom.com/collateral/pb/5325-PB05-R.pdf|BCM5325]] | RTL8306SD | [[http://www.broadcom.com/collateral/pb/5325-PB05-R.pdf|BCM5325]] | 
 +| **USB:** | No | No | No |  
 +| **Serial:** | [[#Serial|Yes]] | [[#Serial|Yes]] | [[#Serial|Yes]] |  
 +| **JTAG:** | [[#JTAG|Yes]] | [[#JTAG|Yes]] | [[#JTAG|Yes]] |
  
-  * BCM2055 (under the shield) [[http://www.broadcom.com/collateral/pb/4321_2055-PB02-R.pdf|Product_Brief]] 
  
-==== V2.0 ==== 
- 
-There has been a lot of discussion about what exactly is on this board, and a lot of complaints about it having reduced memory.  The messages appear to be mixed, what's presented here is as accurate as possible. 
- 
-  * CPU: RaLink RT2880F [[http://www.ralinktech.com.tw/data/RT2880.pdf|Product_brief]] 
- 
-  * CPU speed is reported by users as 266 MHz.  However, when the stock (linksys) kernel boots, it reports the speed as 133 MHz.  The manufacturer describes the core as 266 MHz. 
- 
-  * CPU Core is MIPS4Kec with 16K instruction, 16K data caches 
- 
-  * RTL8306SD - a 6-port fast ethernet switch with five integrated physical layer 10BaseT/100BaseT transceivers 
- 
-  * RAM is provided by two WindBond EN29LV320AB-70TCP SDRAMS.  Each chip is 1 MB x 4 BANKS x 16 BITS for a total of 64MBits per chip, or 128MBits total = 16 megabytes.  This is confirmed by the stock kernel boot messages. 
- 
-  * Flashchip - first reported on this wiki as a Samsung 813; K8P3215UQB.  However, the most recent version 2 board shipped has one EON Silicon EN29LV320AB, which is a 32 megabit (configurable as 4MB x 8 or 2MB x 16) chip. 
  
 ===== Pads/headers on PCB ===== ===== Pads/headers on PCB =====
- 
 ==== V1.0/1.1 ==== ==== V1.0/1.1 ====
  
Line 95: Line 99:
 JP1 is the JTAG port. JP1 is the JTAG port.
 JP2 is a serial port and it works if you use a 3.3v TTL to RS-232. JP2 is a serial port and it works if you use a 3.3v TTL to RS-232.
 +*** There is a hidden EXTERNAL serial port above the YELLOW INTERNET sticker inside the RJ-45 jack. Use a light to see it, 3.3v, rx, tx, grd, are all clearly labled. (special plug anyone?)***
  
 **JP1** **JP1**
Line 114: Line 119:
  
 ==== V2.0 ==== ==== V2.0 ====
- +J10 is a serial port and it works if you use a 3.3v TTL to RS-232.
-J10 is an empty 5-pin header, and is likely a serial port (console)+
  
 J11 is an empty 14-pin header and is likely a JTAG port to the CPU. J11 is an empty 14-pin header and is likely a JTAG port to the CPU.
Line 121: Line 125:
 **J10** **J10**
  
-^ Pin 1 ^ ^ Pin 2 ^ ^ Pin 3 ^ ^ Pin 4 ^ ^ Pin 5 ^ +| Near WAN port ^ Pin 1 ^ 3.3v ^ Pin 2 ^ TX ^ Pin 3 ^ RX ^ Pin 4 ^ NC ^ Pin 5 ^ GND 
  
 **J11** **J11**
Line 128: Line 132:
 ^ Pin 2 ^ ? ^ Pin 4 ^ ? ^ Pin 6 ^ ? ^ Pin 8 ^ ? ^ Pin 10 ^ ? ^ Pin 12 ^ ? ^ Pin 14 ^ ? |  ^ Pin 2 ^ ? ^ Pin 4 ^ ? ^ Pin 6 ^ ? ^ Pin 8 ^ ? ^ Pin 10 ^ ? ^ Pin 12 ^ ? ^ Pin 14 ^ ? | 
  
 +=== JTAG ===
 +The JTAG software needs to support 8-bit operation. tjtag v3-RC1 by Tornado can be used to read the flash chip.
  
-===== JTAG Port ===== 
  
-The JTAG software needs to support 8-bit operation.+=== Serial === 
 +-> [[docs:hardware:port.serial|see]]
  
-tjtag v3-RC1 by Tornado can be used to read the flash chip. Get it from [[http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Ftornado%2Fjtag%2Ftjtagv3-RC-1/|here]]. +JP2/J10 is a 3.3v serial port.  Boot messages can be seen if you connect a 3.3v level shifter here and monitor with a serial port.
- +
-Reference [[http://www.dd-wrt.com/phpBB2/viewtopic.php?p=243652#243652|Here]] +
- +
-===== Serial Ports ===== +
- +
-JP2 is a 3.3v serial port.  Boot messages can be seen if you connect a 3.3v level shifter here and monitor with a serial port.+
  
 DO NOT CONNECT DIRECTLY TO A PC SERIAL PORT. Use a 3.3v TTL level shifter. DO NOT CONNECT DIRECTLY TO A PC SERIAL PORT. Use a 3.3v TTL level shifter.
 Details at this page: Details at this page:
-  * http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/Serial_Console+  * [[docs:hardware:port.serial]]
  
-===== Boot Messages ===== 
  
-==== V1.====+==== V3.==== 
 +=== JTAG Port === 
 +J2 appears to be a standard 12-bin JTAG port
  
-  * Boot messages from original Linksys firmware are [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages|here]] +=== Serial Ports ===  
-  * Boot messages from DD-WRT v24 [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-DD-WRT_v24|here]] +TP12-16 make up a 3.3V serial portThese are not through-holes, so wire has to be soldered directly to the exposed test pointConnect at 115200 Baud
-  * Boot messages from OpenWRT Trunk 8-17-2008 [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-OpenWRT-Trunk_8-17-2008|here]] +^ TP12 ^ TP13 ^ TP14 ^ TP15 ^ TP16 ^ 
-  * Boot messages from OpenWRT Trunk 8-19-2008 [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-OpenWRT-Trunk_8-19-2008+options1|here]] Adding some kernel options makes the flash appear in the boot messages. +VCC | TX | RX | ? | GND |
-  * Boot messages from OpenWRT Trunk Rev12360 [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-OpenWRT-Trunk_Rev12360+options1|here]] Adding some kernel options makes the flash appear in the boot messages and boot correctly. +
-  * Boot messages from OpenWRT Trunk Rev12360 [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-OpenWRT-Trunk_Rev12360+options2|here]] Adding some kernel options makes the flash appear in the boot messages, wireless appears to detect correctly and boots to a shell.+
  
-==== V2 ==== 
- 
-  * Boot messages from original Linksys 2.0.01 firmware are [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-linksys_2.0.01|here]] 
- 
-====== Installation ====== 
- 
-===== How To Build ===== 
  
 +===== Recovery =====
 ==== V1.1 ==== ==== V1.1 ====
-You will need to use a Linux machine with development tools to compile the firmware. 
-See [[https://dev.openwrt.org/browser/trunk/README|here]] to see what are the dependencies of the buildroot. 
- 
-1. Get trunk. ie: 
- 
-<code> 
-svn checkout https://svn.openwrt.org/openwrt/trunk/ ~/trunk/ 
-</code> 
- 
- 
-2. Download and apply patch. (This may not be necessary. It only lets the system know it is a WRT160N and not a WRT54G or other type of WRT) 
- 
-<code> 
-cd ~/ 
-wget http://snipes420.googlepages.com/openwrt-wrt160n-detection-rev12384.diff 
-cd ~/trunk/ 
-patch -p0 -i ~/openwrt-wrt160n-detection-rev12384.diff 
-</code> 
- 
- 
-3. Enter the configuration menu and change target profile to 'Generic, Broadcom WiFi (MIMO)', then exit saving changes. 
- 
-<code> 
-make menuconfig 
-</code> 
- 
- 
-Target Profile ---> (Generic, Broadcom WiFi (MIMO)) 
- 
-4. build the image once first. (This will take a while) 
- 
-<code> 
-make 
-</code> 
- 
- 
-5. Enter kernel config options menu. 
- 
-<code> 
-make kernel_menuconfig 
-</code> 
- 
- 
-6. go to 'Memory Technology Devices (MTD)  --->' 
-    then 'RAM/ROM/Flash chip drivers  --->' 
-and enable 'Support  8-bit buswidth' 
- 
-7. Exit the configuration menu and save the settings. 
- 
-8. build the whole thing again with the new config. (This time wont take as long) 
- 
-<code> 
-make 
-</code> 
- 
- 
-Now you can flash the firmware image in /bin to your WRT160N using the Linksys web interface. (I tried the openwrt-wrt150n-squashfs.bin and it worked; openwrt-brcm-2.4-squashfs.trx also works if using the tftp install method) 
-  * The wireless works when you enable it in /etc/config/wireless 
- 
-====== Recovery ====== 
- 
-===== V1.1 ===== 
 If the device becomes bricked, (and this can happen very easily with this device) you should attach a serial port to it to view the console and see why it has stopped booting. If the device becomes bricked, (and this can happen very easily with this device) you should attach a serial port to it to view the console and see why it has stopped booting.
- +  * Boot_wait does not seem to work on this device. 
-Boot_wait does not seem to work on this device. +  One common reason for it to stop booting is, after loading a image that doesn't recognize the 8-bit flash, it will be stuck in a endless reboot loop. 
- +  Once the serial console is installed you can use a terminal emulator to stop the boot and manually flash a good image to it. 
-One common reason for it to stop booting is, after loading a image that doesn't recognize the 8-bit flash, it will be stuck in a endless reboot loop as seen [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT160N/BootMessages-OpenWRT-Trunk_8-17-2008|here]]. +  Connect to the device using 115200 baud 8-n-1 and No Flow Control. 
- +  press Ctrl + C very early in the boot to break into the CFE prompt. 
-Once the serial console is installed you can use a terminal emulator to stop the boot and manually flash a good image to it. +  Enter this command to make the router accept an image via tftp.<code>
- +
-Connect to the device using 115200 baud 8-n-1 and No Flow Control. +
- +
-press Ctrl + C very early in the boot to break into the CFE prompt. +
-Enter this command to make the router accept an image via tftp. +
-<code>+
 flash -ctheader : flash1.trx flash -ctheader : flash1.trx
 </code> </code>
  
- +==== V3.0 ==== 
-====== Linksys WRT160N specific configuration ====== +To recover it, do the following procedure: 
- +  * Turned on, press the Reset button for 30 seconds 
-===== NVRAM ===== +  * Turn it off, without releasing the reset button 
- +  * Turn it on again, still without releasing the reset button for 30 seconds
-==== V1.1 ==== +  * Release the reset button. 
- +  * Now, it is in recover firmware mode and running just with the 192.168.1.1 IP (it don't matters the configured IP in the router) in one of the 4 ethernet interfaces. 
-^ boardtype ^ 0x0472 |  +  * Configure your computer with another IP in that range (ex. 192.168.1.2) in the ethernet interface and access http://192.168.1.1 . At this point, you should see a very simple firmware upgrade page. 
-^ boardnum ^ 42 |  +  * Upload the good firmware (if you're in doubt, take the correct one in the LinkSys page). After the upgrade and the "upload ok" message in the page, wait for a minute. Now, your router should be running!
-^ boardflags ^ 0x0010 |  +
- +
-====== TODO ====== +
- +
-  * Confirm existence of different versions of this model +
-  * Figure out what JP3 is for and the exact pin out. +
- +
-====== Other Categories this device is in ====== +
- +
-  * Category80211nDevice +
-  * CategoryNotSupported +
  • Last modified: 2018/04/03 08:59
  • by tmomas