1. Netgear WGT634U 1-Wire Wireless Router

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

The WGT634U also has a USB 2.0 controller.

 

 

1.1. Hardware needed to setup a 1-Wire controller using the WGT634U

§         USB to 1-wire bus adapter

o       Here you have several choices:

§         Cheap USB to serial adapter and a Dallas Semi DS9097U

§         Dallas Semi DS9490R USB adapter

§         Serial Console Cable – To load OPENWRT onto the router.

o       You can make your own or I suggest that you purchase the BrainStem adapter from http://www.acroname.com  along with the extender cable.

2. The Hack

2.1. Installing OPENWRT on the Router

I would not recommend OpenWRT to user without any experience on Linux, Shell-script, etc. There are NO web-interface to configure all network setting, so you  should have some knowledge and read the documentation, FAQ and examples at OPENWrtDocs, OpenWrtFaq and the forums.

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

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

  • attach a serial console cable to the WGT634U
  • attach ethernet to the WAN port (next to the USB socket)
  • hold down CTRL-C while inserting power to enter CFE
  • configure ethernet from CFE (e.g. with a local DHCP server):
·                CFE> ifconfig eth0 -auto
·                Device eth0:  hwaddr 00-0F-B5-97-1C-3D, ipaddr 192.168.1.250, mask 255.255.255.0
·                        gateway 192.168.1.1, nameserver 192.168.1.1, domain foo.com
*** command status = 0
  • for manual configuration use something like this:
·                ifconfig eth0 -addr=192.168.1.250 -mask=255.255.255.0
  • then, flash the new openwrt-wgt634u-2.6-{squashfs,jffs2}.bin image:
·                CFE> flash -noheader 192.168.1.3:wgt634u/openwrt-wgt634u-2.6-squashfs.bin flash0.os
·                Reading 192.168.1.3:wgt634u/openwrt-wgt634u-2.6-squashfs.bin: Done. 1892352 bytes read
·                Programming...done. 1892352 bytes written
*** command status = 0
  • reboot with
·                CFE> reboot

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

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 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.

7. Serial console

 

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.

o       You will need to change the order of the wires on the extender cable to the following:

Male Connector

Female Connector

1 – Black

1- Red

2 – Green

2- Yellow

3 – Red

3- Green

4 – Yellow

4-Red

 

 

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

11. Other projects and information