User Tools

Site Tools


toh:linksys:wrt54g

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
toh:linksys:wrt54g [2014/03/05 15:38]
sebelk
toh:linksys:wrt54g [2014/12/09 00:24] (current)
pbix [Notes on specific WRT54G hardware versions]
Line 1: Line 1:
 ====== Linksys WRT54G, WRT54GL and WRT54GS ====== ====== Linksys WRT54G, WRT54GL and WRT54GS ======
  
-The original WRT54G was first released as a SOHO router in December 2002. The product line supports WiFi and five switched Ethernet ports. (The WAN port is part of the same internal network switch, but on a different VLAN.) The devices have two removable antennas connected through Reverse Polarity ​TNC connectors. For additional background information,​ see [[wp>​Linksys WRT54G series]].+The original WRT54G was first released as a SOHO router in December 2002. The product line supports WiFi and five switched Ethernet ports. (The WAN port is part of the same internal network switch, but on a different VLAN.) The devices have two removable antennas connected through Reverse Polarity ​SMA connectors. For additional background information,​ see [[wp>​Linksys WRT54G series]].
  
 ===== Supported Versions ===== ===== Supported Versions =====
  
-The different models within the WRT54G series may all look identical. ​ Please refer to the model information sticker on the underside of the unit in order to determine the precise model number and hardware version of your device.+The different models within the WRT54G series may all look identical. Please refer to the model information sticker on the underside of the unit in order to determine the precise model number and hardware version of your device.
  
 **Note:** The supported versions of OpenWrt can be found on the [[toh:#​linksys|Table of Hardware]] **Note:** The supported versions of OpenWrt can be found on the [[toh:#​linksys|Table of Hardware]]
  
-For wireless support on Kernel 2.6 it is recommended to use trunk snapshots or releases newer than and including "​Backfire"​ 10.3. Note the wireless driver names are different in 2.6 from 2.4. You may need to do:+For wireless support on Kernel 2.6 it is recommended to use trunk snapshots or releases newer than and including "​Backfire"​ 10.3. 
 + 
 +Notethe wireless driver names are different in 2.6 from 2.4. You may need to do:
  
   opkg install kmod-b43   opkg install kmod-b43
Line 16: Line 18:
 in order to get the correct wireless configuration created. in order to get the correct wireless configuration created.
  
-For versions of the OpenWrt "​brcm47xx"​ target prior to "​Attitude Adjustment"​ 12.09-final,​ you may wish to use Broadcom'​s proprietary wl driver due to longstanding issues with the b43 driver in Linux kernel versions 2.6 and newer ([[https://​dev.openwrt.org/​ticket/​7552]]). ​ After installing the brcm47xx image, you will need to execute the following commands while logged into the router over TELNET or SSH:+For versions of the OpenWrt "​brcm47xx"​ target prior to "​Attitude Adjustment"​ 12.09-final,​ you may wish to use Broadcom'​s proprietary wl driver due to longstanding issues with the b43 driver in Linux kernel versions 2.6 and newer ([[https://​dev.openwrt.org/​ticket/​7552]]). After installing the brcm47xx image, you will need to execute the following commands while logged into the router over TELNET or SSH:
  
   opkg update   opkg update
Line 22: Line 24:
   rm /​etc/​modules.d/​*b43*   rm /​etc/​modules.d/​*b43*
  
-After rebooting the router, configure wireless as usual, only using the Broadcom driver instead of the generic 802.11 ​driver.+After rebooting the router, configure wireless as usual, only using the Broadcom driver instead of the b43 driver.
  
 ==== Notes on specific WRT54G hardware versions ==== ==== Notes on specific WRT54G hardware versions ====
Line 28: Line 30:
 === WRT54G === === WRT54G ===
  
-  ​* The Linksys WRT54G ​ver. 1.1 hardware (4 MB of flash) has trouble with OpenWrt 10.03.1-rc6 and maybe all 10.03 releases as of 2011-12-08. In a test with OpenWrt 10.03.1-rc6,​ the OS will install but LuCI will be unable to update settings because there isn't enough flash left free.+* The Linksys WRT54G 1.1 hardware (4 MB of flash) has trouble with OpenWrt 10.03.1-rc6 and maybe all 10.03 releases as of 2011-12-08. In a test with OpenWrt 10.03.1-rc6,​ the OS will install but LuCI will be unable to update settings because there isn't enough flash left free.
     * References:     * References:
       * "​Kamikaze,​ brcm47xx, WRT54G v1.1: jffs2 marker not detected, rootfs_data not mounted",​ [[https://​dev.openwrt.org/​ticket/​5071]]       * "​Kamikaze,​ brcm47xx, WRT54G v1.1: jffs2 marker not detected, rootfs_data not mounted",​ [[https://​dev.openwrt.org/​ticket/​5071]]
Line 34: Line 36:
       * "​config changes aren't permanent",​ [[https://​forum.openwrt.org/​viewtopic.php?​id=20125]]       * "​config changes aren't permanent",​ [[https://​forum.openwrt.org/​viewtopic.php?​id=20125]]
     * The solution is to go back to OpenWrt 8.09 r14511 (code name "​kamikaze"​) -- the link to the Broadcom Linux 2.4 chipset version is [[http://​downloads.openwrt.org/​kamikaze/​8.09/​brcm-2.4/​openwrt-brcm-2.4-squashfs.trx]].     * The solution is to go back to OpenWrt 8.09 r14511 (code name "​kamikaze"​) -- the link to the Broadcom Linux 2.4 chipset version is [[http://​downloads.openwrt.org/​kamikaze/​8.09/​brcm-2.4/​openwrt-brcm-2.4-squashfs.trx]].
- 
-According to the [[wp>​Linksys WRT54G series]], the WRT54G-TM is nothing but a renamed WRT54GS v3.0 
  
 === WRT54GL === === WRT54GL ===
  
-I have a WRT54GL 1.1 (16MB RAM, 4MB flash.For a long time it was running Kamikaze 7.09; today I have installed various newer builds, here are the results:+Testing with the WRT54GL 1.1 (16MB RAM, 4MB flash) ​showed ​it can run the following versions:
  
-                 | 7.09   ​^  8.09.2 ​ ^  10.03  ^ 10.03.1 ^        12.04         ​    ​12.09      +                 ​^ ​           ​^ ​7.09      ^  8.09.2 ​  ​^  10.03                       10.03.1 ​                  ​ 12.04                     12.09          ​^ ​ 14.07                                 
-^brcm-2.4 ​         ||  works  |  works   ​|  works  |  works  |         ​n/a               n/a       ​+^brcm-2.4 ​         |            |  works    |  works    |  works                      |  works                     |  n/a                      ​ n/a             n/a                                   ​
-^brcm47xx|b43/​legacy|untested | untested |works ​although ​somewhat unstable ​ |works ​although ​somewhat unstable |v. low free ram & jffs| see note below |+^brcm47xx ​         | b43/legacy |  untested |  untested |  works (somewhat unstable ​| ​ works (somewhat unstable ​very ​low free ram & jffs |  see note below |  unviable, not enough RAM to run wifi  ​|
  
-12.04 almost certainly needs to rebuilt with unnecessary packages (e.gLuCI) and daemons ​(uhttpdremoved to make enough free ram & jffs to obtain long uptimes..  --- //tc424 2013/08/26 17:28//+* **10.03.1 brcm-2.4** had frequent WiFi drops when in client mode w/ psk2 (did not drop when connecting to same AP w/ encryption disabled).
  
-12.09 "Only have 688kb available on filesystem /overlay, pkg kmod-brcm-wl needs 695" Impossible to install wl into 12.09  --- //jikuja 2013/11/18 12:29//+* **12.04** almost certainly needs to rebuilt with unnecessary packages (e.g. LuCI) and daemons (uhttpd) removed to make enough free ram & jffs to obtain long uptimes.. ​ --- //tc424 2013/08/26 17:28// 
 + 
 +* **12.09** "Only have 688kb available on filesystem /overlay, pkg kmod-brcm-wl needs 695" Impossible to install ​proprietary **wl** driver ​into 12.09  --- //jikuja 2013/11/18 12:29// 
 + 
 +* **14.07** had slow LuCI web interface, after enabling Wifi, the entire router became inaccessible. A custom cut-down image worked slightly better, but would not let WAN and Wifi work at the same time due to low system RAM. Ref: [[https://​forum.openwrt.org/​viewtopic.php?​id=51729|Forum Thread]] 
 + 
 +As the WRT54GL has only 4Mb flash, any image sent to the device must be 3866624 bytes or smaller. 
 + 
 +=== WRT54G-TM === 
 + 
 +According to the [[wp>​Linksys WRT54G series]], the WRT54G-TM is nothing but a renamed WRT54GS v3.0.  Because these models have additional RAM and FLASH they do not suffer from the constraints of the WRT54G and WRT54GL series and can run all versions of OpenWRT as of 11/1/2014.
  
 ===== Basic configuration ===== ===== Basic configuration =====
 +
 Please follow the [[doc:​howto:​basic.config]] guide. Please follow the [[doc:​howto:​basic.config]] guide.
- 
  
 ===== Specific Configuration ===== ===== Specific Configuration =====
 +
 ==== Interfaces ==== ==== Interfaces ====
 +
 The default network configuration is: The default network configuration is:
-^ Interface Name ^ Description ^ Default configuration ^ + 
-| br-lan | LAN & WiFi | 192.168.1.1/​24 |  + Interface Name ^  Description ​        Default configuration ^ 
-| vlan0 (eth0.0) | LAN ports (1 to 4) | None |  + br-lan ​        ​ LAN & WiFi         ​ 192.168.1.1/​24 ​       
-| vlan1 (eth0.1) | WAN port | DHCP |  + vlan0 (eth0.0) |  LAN ports (1 to 4) |  None                  |  
-| wl0 | WiFi | Disabled | + vlan1 (eth0.1) |  WAN port           ​ DHCP                  
 + wl0             WiFi               ​ Disabled ​             |
  
 ==== Internal Architecture - WRT54G (v2, v3) & WRT54GS (v1, v2) ==== ==== Internal Architecture - WRT54G (v2, v3) & WRT54GS (v1, v2) ====
 +
 {{:​toh:​linksys:​wrt54g-v2.v3_wrt54gs-v1.v2_internal-arch.png|}} {{:​toh:​linksys:​wrt54g-v2.v3_wrt54gs-v1.v2_internal-arch.png|}}
  
 ==== Switch Ports (for VLANs) - WRT54G (v2, v3) & WRT54GS (v1, v2) ==== ==== Switch Ports (for VLANs) - WRT54G (v2, v3) & WRT54GS (v1, v2) ====
 +
 Switch port numbers 1-4 are LAN Ports 1-4 as labeled on the unit, number 0 is the Internet (WAN) port, and number 5 is the internal connection to the router'​s CPU (labeled "​CPU"​ in LuCI). Use these //switch// port numbers when specifying a VLAN's ports via the UCI (i.e., in the ''​ports''​ option of a VLAN's ''​config switch_vlan''​ section, in ''/​etc/​config/​network''​). Switch port numbers 1-4 are LAN Ports 1-4 as labeled on the unit, number 0 is the Internet (WAN) port, and number 5 is the internal connection to the router'​s CPU (labeled "​CPU"​ in LuCI). Use these //switch// port numbers when specifying a VLAN's ports via the UCI (i.e., in the ''​ports''​ option of a VLAN's ''​config switch_vlan''​ section, in ''/​etc/​config/​network''​).
  
Line 79: Line 94:
  
 ==== Internal Architecture - WRT54G (v4) & WRT54GS (v3) ==== ==== Internal Architecture - WRT54G (v4) & WRT54GS (v3) ====
 +
 {{:​toh:​linksys:​wrt54_internal_architecture.png|}} {{:​toh:​linksys:​wrt54_internal_architecture.png|}}
  
 ==== Switch Ports (for VLANs) - WRT54G (v4) & WRT54GS (v3) ==== ==== Switch Ports (for VLANs) - WRT54G (v4) & WRT54GS (v3) ====
 +
 Switch port numbers 0-3 are LAN Ports 4-1 as labeled on the unit, number 4 is the Internet (WAN) port, and number 5 is the internal connection to the router'​s CPU (labeled "​CPU"​ in LuCI). Use these //switch// port numbers when specifying a VLAN's ports via the UCI (i.e., in the ''​ports''​ option of a VLAN's ''​config switch_vlan''​ section, in ''/​etc/​config/​network''​). __Don'​t Be Fooled__: LAN Port 1 on the unit is switch port 3 when configuring VLANs on the switch. Switch port numbers 0-3 are LAN Ports 4-1 as labeled on the unit, number 4 is the Internet (WAN) port, and number 5 is the internal connection to the router'​s CPU (labeled "​CPU"​ in LuCI). Use these //switch// port numbers when specifying a VLAN's ports via the UCI (i.e., in the ''​ports''​ option of a VLAN's ''​config switch_vlan''​ section, in ''/​etc/​config/​network''​). __Don'​t Be Fooled__: LAN Port 1 on the unit is switch port 3 when configuring VLANs on the switch.
  
Line 95: Line 112:
  
 ==== 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.\\  + 
- Unplug the power cord, press and hold the reset button, put in the power cord, when DMZ-LED lits up release the reset button. When done right, both Power-LED and DMZ-LED will start blinking. Now you can ping and telnet into 192.168.1.1+If you forget ​your password, ​have broken one of the startup scripts, firewalled yourself ​out, or corrupted the JFFS2 partition, you can get back in by using OpenWrt'​s failsafe mode
 + 
 +Unplug the power cord, press and hold the reset button, put in the power cord, when DMZ-LED lits up release the reset button. When done right, both Power-LED and DMZ-LED will start blinking. Now you can ping and telnet into 192.168.1.1
  
 See: [[doc:​howto:​generic.failsafe]] See: [[doc:​howto:​generic.failsafe]]
  
 ==== Buttons ==== ==== Buttons ====
 +
 The Linksys WRT54G has two buttons. They are Reset and Secure Easy Setup. The buttons can be used with hotplug events. Please see the [[doc:​howto:​WifiToggle|WiFi toggle]] Wiki page. The Linksys WRT54G has two buttons. They are Reset and Secure Easy Setup. The buttons can be used with hotplug events. Please see the [[doc:​howto:​WifiToggle|WiFi toggle]] Wiki page.
-^ BUTTON ^ Event ^ + 
-| Reset | reset |  + BUTTON ​            Event ^ 
-| Secure Easy Setup | ses | + Reset             ​ reset | 
 + Secure Easy Setup |  ses   ​|
  
 ===== Hardware ===== ===== Hardware =====
 +
 ==== Opening the case ==== ==== Opening the case ====
 +
 To remove the front cover you simply pop the front of the case off after removing the antennas. Please note that this will void the warranty. To remove the front cover you simply pop the front of the case off after removing the antennas. Please note that this will void the warranty.
  
Line 113: Line 136:
  
 ==== Serial port ==== ==== Serial port ====
 +
 The WRT54G/S/L has a 10 pin connection slot on the board called JP1 (JP2 on some v1.1 boards). This slot provides two TTL serial ports at 3.3V. Neither of the ports use hardware flow control, you need to use software flow control instead. Other routers may have similar connections. These two TTL serial ports on the WRT54GL router can be used as standard Serial Ports similar to the serial ports you may have on your PC. In order to do this though you need a line driver chip that can raise the signal levels to RS-232 levels. You can not directly connect a serial port header to the board and expect it to work. That method will only work with devices that can connect to TTL serial ports at 3.3V. Connecting two which have 3.3V directly will work (TX - RX, RX - TX, GND - GND). Standard RS-232 devices cannot be directly connected which accounts for nearly all serial PC devices. The WRT54G/S/L has a 10 pin connection slot on the board called JP1 (JP2 on some v1.1 boards). This slot provides two TTL serial ports at 3.3V. Neither of the ports use hardware flow control, you need to use software flow control instead. Other routers may have similar connections. These two TTL serial ports on the WRT54GL router can be used as standard Serial Ports similar to the serial ports you may have on your PC. In order to do this though you need a line driver chip that can raise the signal levels to RS-232 levels. You can not directly connect a serial port header to the board and expect it to work. That method will only work with devices that can connect to TTL serial ports at 3.3V. Connecting two which have 3.3V directly will work (TX - RX, RX - TX, GND - GND). Standard RS-232 devices cannot be directly connected which accounts for nearly all serial PC devices.
  
Line 123: Line 147:
  
 ==== JTAG ==== ==== JTAG ====
 +
 The JTAG port is a unpopulated 12-pin header and is located next to the serial port header. A simple unbuffered should work fine. The JTAG port is a unpopulated 12-pin header and is located next to the serial port header. A simple unbuffered should work fine.
-^ Pin 2 ^GND ^ Pin 4 ^GND ^ Pin 6 ^GND ^ Pin 8 ^GND ^ Pin 10 ^GND ^ Pin 12 ^GND |  +^ Pin 2  ^ GND    ^ Pin 4 ^ GND ^ Pin 6 ^ GND ^ Pin 8 ^ GND ^ Pin 10 ^ GND ^ Pin 12 ^GND    
-^ Pin 1 ^nTRST* ^ Pin 3 ^TDI ^ Pin 5 ^TDO ^ Pin 7 ^TMS ^ Pin 9 ^TCK ^ Pin 11 ^nSRST* | +^ Pin 1  ^ nTRST* ^ Pin 3 ^ TDI ^ Pin 5 ^ TDO ^ Pin 7 ^ TMS ^ Pin 9  ^ TCK ^ Pin 11 ^nSRST* |
  
 {{:​oldwiki:​openwrtdocs:​hardware:​linksys:​wrt54gl_v11_jtagport___.jpg}} {{:​oldwiki:​openwrtdocs:​hardware:​linksys:​wrt54gl_v11_jtagport___.jpg}}
Line 132: Line 157:
  
 ==== Photos ==== ==== Photos ====
 +
 WRT54GL v1.1 - Serial number: CL7B WRT54GL v1.1 - Serial number: CL7B
  
Line 236: Line 262:
  
 === Power Supply Mods === === Power Supply Mods ===
 +
 (Disclaimer:​ this has only been tested on WRT54G v1.1 and a WRT54GL v2, it should be the same for other models but I can't be certain. If in doubt check voltages with a multimeter.) (Disclaimer:​ this has only been tested on WRT54G v1.1 and a WRT54GL v2, it should be the same for other models but I can't be certain. If in doubt check voltages with a multimeter.)
  
toh/linksys/wrt54g.1394030283.txt.bz2 · Last modified: 2014/03/05 15:38 by sebelk