Netgear WG302
Available since 2005-08. Probably end of life, though 2011-01 still obtainable. If some still wants to complete this article, please see template_device.
Supported/Confirmed Versions
| Version/Model | Launch Date | S/N | OpenWrt Version Supported | Model Specific Notes |
|---|---|---|---|---|
| WG302v1 | ? | - | 10.03.1-rc4 | - |
| WG302v2 | ? | - | 10.03.1-rc4 | - |
NOTE: Anything not included in model specific notes, or where a short comment couldn't be included on the notes.
NOTE: VLAN support seems to be broken for this model (and probably others as well using the NPE-B microcode). Using the built-in microcode might cause high packet loss and other strange symptoms on VLAN interfaces. If you are planning to use VLANs on this device, make sure to build a "functionality 0" microcode and replace the original image at /lib/firmware/NPE-B with the one you built. Instructions on how to build a custom microcode can be found here: http://wiki.openwrt.org/toh/gateway/7001#building.npe.microcode
Hardware Highlights
| CPU | Ram | Flash | Network | USB | Serial | JTag |
|---|---|---|---|---|---|---|
| Xscale IXP422BB@266MHz | 16M | 8M | Atheros 11a/b/g | - | 1(+1 3v int) | ? |
Installation
Use the latest (10.03.1). 8.09 Kamikaze is also okay, but not 8.09.1 due to a bug with ethernet (not sure about 8.09.2).
Attitude Adjustment (12.09) is also confirmed to work on this device, installation instructions are the same as for 10.03.01.
10.03.1
Mainly, here's what you need to do:
- Prepare TFTP Server with zImage and root filesystem and setting your ethernet port settings on your computer to a static ip of 192.168.0.10 (or other)
- Connect PC to wg302 with serial cable and ethernet cable
- Start terminal emulator (Hyperterm, cu, PuTTy etc..) with 9600 8n1
- Wait for message
Executing boot script in 4.000 seconds - enter ^C to abort
- Interrupt boot with Control-C
- Clear flash with
RedBoot> fis init -f
- configure local IP and IP of tftp host, e.g:
RedBoot> ip_address -l 192.168.0.1 -h 192.168.0.10
- load kernel from tftp server
RedBoot> load -r -b %{FREEMEMLO} openwrt-wg302v1-zImage
- write kernel to flash
RedBoot> fis create kernel
- load root filesystem from tftp server
RedBoot> load -r -b %{FREEMEMLO} openwrt-ixp4xx-generic-squashfs.img
- write root filesystem to flash
RedBoot> fis create -r 0x0001fc00 -l 0x620000 rootfs
- 0x620000 is chosen to fill up the whole remaining space on flash - this can be determined with "fis free" before writing rootfs to flash.
- change boot script with fconfig (list fconfig setting with "fconfig -l")
Boot script: .. fis load -b 0x01600000 kernel .. exec 0x01600000
- Reboot
RedBoot> reset
- The router will now boot. After some initial boot messages, you will get lots of line noise. This is because when OpenWrt boots it sets the console speed to 115kbps. Adjust the baud rate of your terminal program and you'll get a console prompt.
- The ethernet interface do not go up by default. Enable it manually.
# ifup lan
- Add this command to the boot section of the /etc/init.d/network
- Now you can access your router over SSH or HTTP.
a very easy and lightweigth utility is the Midnight Commander (mc) that was originally a clone of the Norton Commander (nc) for DOS, it is installed by the following:
# opkg install mcMC makes it really easy to examine the newly installed accesspoint especially from a Putty session that even supports mouse for the menus.
LuCI Web
- Browse to http://accesspoint-ip/cgi-bin/luci LuCI Upgrade URL
- If LuCI does not load, try running /www/cgi-bin/luci from the console. If it returns with just "Segmentation fault.", run "opkg update; opkg install iw" and reboot. See https://dev.openwrt.org/ticket/9749# for more info
Flash Layout
To be filled in
Basic configuration
Since this part is identical for all devices, see Basic configuration.
Specific Configuration
Interfaces
The default network configuration is:
| Interface Name | Description | Default configuration |
|---|---|---|
| br-lan | LAN & WiFi | configured during installation |
| eth0 | LAN port | bridge |
| ath0 | WiFi | bridge |
| wifi0 | WiFi | bridge |
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.
Boot into failsafe mode
- Unplug the router's power cord.
- Connect the router's LAN1 port directly to your PC.
- Configure your PC with a static IP address between 192.168.1.2 and 192.168.1.254. E. g. 192.168.1.2 (gateway and DNS is not required).
- Plug the power on and wait for the DMZ LED to light up.
- While the DMZ LED is on immediately press any button (Reset and Secure Easy Setup will work) a few times .
- If done right the DMZ LED will quickly flash 3 times every second.
- You should be able to telnet to the router at 192.168.1.1 now (no username and password)
What to do in failsafe mode?
NOTE: The root file system in failsafe mode is the SquashFS partition mounted in readonly mode. To switch to the normal writable root file system run mount_root and make any changes. Run mount_root now.
- Forgot/lost your password and you like to set a new one
passwd
- Forgot the routers IP address
uci get network.lan.ipaddr
- You accidentally run 'ipkg upgrade' or filled up the flash by installing to big packages (clean the JFFS2 partition and start over)
mtd -r erase rootfs_data If you are done with failsafe mode power cycle the router and boot in normal mode.
Buttons
The unit has only one button. It's the Reset.
Hardware
Info
http://www.netgear.com/business/products/access-points-wireless-controllers/access-points/WG302.aspx http://kb.netgear.com/app/products/model/a_id/2562 http://kb.netgear.com/app/products/model/a_id/2563 http://www.netgear.com/images/wg302_ds_08sept0818-5693.pdf ftp://downloads.netgear.com/files/WG302_RM_12MAY06.pdf
Photos
Model Number
Front: http://www.netgear.com/images/enus_front-lores_product_wg30218-5695.jpg http://www.netgear.com/images/enus_front-hires_product_wg30218-5694.tif
Back:
Photo of back
Opening the case
Note: This will void your warranty!
- To remove the cover simply do a/b/c.
- There are two screws holding the PCB to the bottom cover.
Main PCB http://img.techpowerup.org/100107/WG302.jpg Photo of PCB
Serial
Second Serial
This unit has a second serial port, which is a 3.3V port. as in, you will have to raise the voltage to 12V levels to hook it to a PC. it is the ten pin un-soldered header toward the front of the PCB. (not the 20 pin in front of that). its pinout is: 1 == GND 2 == +3.3V 3 == CTS? 5 == TX 8 == RX 10 == RTS? its worth noting, if you're thinking of using this to de-brick another AP, that you need to cross the CTS and RX lines, connecting them to RX on the receiving AP's end. don't ask me why.
more weirdness, with CTS and RX crossed, occasionally the unit refuses to boot until it sees activity on the primary port. randomly.
second serial port access is only available on the ixp4xx firmware, or in the latest trunk.
JTAG
???
Other Info
When opening the case, be very careful when separating the upper from the lower half. The internal antenna pigtails are quite short and can be ripped out of the plug in the rear of the case.
Tags
For some Help with the Tags, please have a look here: tags
toh/netgear/wg302.txt · Last modified: 2013/05/09 15:39 by gkiss
