1. Netgear WGT634U

The WGT634U is based on the Broadcom 5365P board that features a 200 MHz MIPS CPU along with a built-in IPSEC co-processor details, allowing encrypted VPNs (up to AES256) a bonus of a performance boost up to 75Mbps (quoted) IPSec throughput - far more than the MIPS32 CPU alone can produce.

It also comes standard with 8 MB flash and 32 MB RAM. The 8MB flash is an Intel te28f640 tsop pin chip with 56 pins. The 32MB of RAM are ICSI IC42S26800 chips with 54 tsop pins on a 16-bit bus. As many SDR & DDR PC memory chips also use 54 pin tsop memory, it is possible to remove two identical larger chips that are also on a 16-bit bus from a memory stick and replace the stock RAM on the WGT634u. Great care would need to be taken to ensure that the replacement chips matched the pinout in the datasheet link provided. In theory, the Intel flash could also be de-soldered and replaced. However, no known case of either has been reported.

The wireless NIC is an Atheros Mini-PCI capable of 802.11b/g, and has a MS-156 test point and a soldered antenna. The WGT634U also has a USB 2.0 controller.

1.1. Status of OpenWrt

The kernel boots on the system, we have drivers for the ethernet interface (b44) and the new switch driver is integrated (robocfg will be obsolete). We have drivers for the wireless radio (madwifi-ng). Everything is working now (except failsafe).

If you want to help with development, attach a serial console and build an image from Subversion (Kamikaze). Choose "Broadcom BCM947xx/953xx [2.6]" in make menuconfig, and join the discussions in the forum at http://forum.openwrt.org/viewforum.php?id=3 regarding the WGT634U.

Please always use the newest Subversion code. Report any bugs via the ticket system.

Note that the failsafe mode doesn't work yet, so the system cannot be recovered (except by serial cable) when something goes wrong.

2. Installing OpenWrt

2.1. Using Netgear's web interface

If you want to upgrade to OpenWrt using the web interface, you need to download a special config file and upload it to your router using the Backup Settings option. The supplied config file is for version 1.4.1.10 of the Netgear supplied firmware. If the version number doesn't match the version number of the config file it will just not 'take'

The file is available here: http://downloads.openwrt.org/utils/wgt634u-upgrade.cfg

After that, clear your browser cache, give the router some time to reboot, and then you should find a new entry in the menu bar, called Upgrade to OpenWrt. Use this function to upload the OpenWrt WGT634U image to the router. Note: After that custom configuration file is uploaded and the router reboots, you will be unable to obtain a DHCP address from the machine. Set a static IP for the network interface you have connected to the router.

After a while (and we mean a while) it should be reachable under the default IP 192.168.1.1. Do not classify the router as dead until you have given it 10 minutes, rebooted it, and given it 10 more.

2.2. Using Serial Console

Images smaller than 4MB can be flashed via TFTP. You need to run a TFTP server on your local PC.

Flashing may take over a minute or more. After that you can use reboot to start OpenWrt.

2.3. Edit files in Serial Console

If you made a mistake in /etc/config/network file and you can't access to the router, even in browser, ssh, telnet or ftp, you can use the serial port as above but instead of typing 'ctrl-c' while you connect the power, you can do this:

3. Restoring lost nvram settings

The default settings are:

CFE_VERSION          1.0.34
CFE_BOARDNAME        BCM95365R
CFE_MEMORYSIZE       32
BOOT_CONSOLE         uart1
et0mdcport           0
et0phyaddr           254
configvlan           0x1
et0macaddr           00-09-5b-53-de-ad
boardtype            bcm95365r
et1macaddr           00-00-00-53-de-ad
STARTUP              ifconfig eth0 -auto; boot -elf flash0.os:

4. Restoring original firmware

To restore the original firmware a serial console is required. You can use TFTP for the original images. It seems CFE's TFTP client will only read 4194304 bytes from the TFTP server. To get around the 4MB limit, we can split larger images into smaller chunks and then use the -offset flag to flash the parts.

5. Configuration

The OpenWrt port for Netgear WGT634U will not use any NVRAM configuration. Everything is configured in /etc. For network configuration please modify /etc/config/network. The NVRAM partition is your old config partition, so please back it up. You eventually need it to restore your original firmware. The WGT634U uses the madwifi driver for the wireless card. See madwifi wiki for several examples of how to configure access point/client mode/monitor mode and the up to date docs on the madwifi driver.

5.1. Client-mode for the wireless card

The WGT634U also supports client-mode (aka managed mode). You need kmod-madwifi, which is probably already installed since it's selected by default. Once you get the wireless working, follow the Kamikaze client mode guide OpenWrtDocs/Kamikaze/ClientMode.

6. Using USB drive for Root

Normally, using the usb drive for root requires making a custom image with a proper bootline such as:

console=ttyS1,115200 root=/dev/scsi/host0/bus0/target0/lun0/part1 rootdelay=20 rw

However, here is a script for using the usb drive as root without having to recompile using the default 2.6 images.

If you want to utilize a swap partition when customizing this script, as I have, remember that you need the swap-utils package loaded as well.

MAKE SURE YOU READ THROUGH THE SCRIPT BEFORE COPYING AND EXECUTING IT BLINDLY! There are custom variables at the top that you'll need to make sure complies with the partition table on the usb drive you are using.

You should have the minimum of the following modules loaded as well:

First create a /usb directory under the root directory and cut and paste this script i call linuxrc also under the root directory, and remember to customize the variables according to the partitions on your usb drive. The current variables assume three partitions on the drive with the second partition being a swap partition.

We're not done yet, it's also imperative that you add a line into your init scripts to execute this script, so add the following line to the end of the /etc/init.d/S99done file:

There! Now when you go to reboot, your usb drive will be mounted as root as according to the linuxrc script.

7. Serial console

Default parameters for the serial console on J7 are 115200 N81.

Options for serial console wiring include:

On a linux box, the USB tty devices usually show up at /dev/ttyUSBn. You can point minicom (or similar) there.

J6 (left from J7) is a second serial port, but has no header on it. It has the same pinout as J7.

------------------------------------------
| |     |    LAN-Ports   |          |    |
|       ------------------               |
|                                        |
|        USB                             |
|                         VCC .  VCC .   |
|  WiFi                    TX .  TX  .   |
|                 CPU      RX .  RX  .   |
|         RAM             GND .  GND .   |
|                             J6     J7  |
|                           FLASH        |
|                                        |
------------------------------------------
   |    |     |     |     |     |     |

8. Switch port map

--------------------------
| NETGEAR  p i w 1 2 3 4 |
--------------------------

p

power/status leds

i

port 4

w

wireless

1

port 3

2

port 2

3

port 1

4

port 0

SoC

port 5

9. GPIO lines

Several GPIO lines appear on little gold testpoints near the Broadcom chip.

GPIO bit

location

0x80

TP1

0x40

TP2

0x20

TP3

0x10

TP4

0x08

U6.13 to yellow Power LED

0x04

reset pushbutton

0x02

TP5

0x01

??

More info at http://openwrt.pbwiki.com/GPIO

10. Mini-PCI Upgrade

The mini-pci card has been confirmed to be replaceable with an atheros AR5212 ABG Mini-PCI card, so likely any mini-pci card supported by the madwifi drivers can be used without fear of non-compatibility.

There seems to be some restriction to the power available to the mini-pci port. I've confirmed good driver compatibility with ubnt.com's SR2 and SR5, but at default (full) power levels significantly increased packet loss (15%, link runs solid with sub 0.1% loss @ 15 dBm)) is observed. Use of a 16V/1.5A wall transformer did not improve performance. If the power problem is due to the bad stability of the original transformer, An transformer with a more accurate power output should work better. My Netgear wall tranformer used to have peaks about 17 Volt, that brings heavy load on the volt regulator inside the router.

10.1. Antenna Mod

The WGT634U comes equipped with an integrated antenna, which is soldered to the radio. If you wish to use a different antenna, the most practical solution is to unsolder the pigtail and disassemble the antenna and collar. Once the pigtail end is freed from the radio, it is a fairly simple task to remove both the antenna and the collar. The Hirose MS-156 test point is not a suitable attachment for a new pigtail. The connector is not readily available and is not designed for attaching a permanent antenna. Better is to solder on a new pigtail and run the coax outside the case where an antenna or more robust antenna coax can be attached. See this picture for an example of how it might be done.

11. Other projects and information

12. End Of Life

I got confirmation from Janine Bodwin of Netgear that the WGT634U was EOL'ed on 01-Oct-2005


OpenWrtDocs/Hardware/Netgear/WGT634U (last edited 2008-07-19 21:05:53 by exobyte)

Almost all of these pages are editable, create an account and click the edit (Edit) button at the top of the page.