WG511T Config with Gentoo

17/10/05 - Matthew Tunstall

Netgear WG511T Configuration with Gentoo Linux 2.6.13-gentoo-r3

Configuration for 128bit WEP @ 54Mbps

Contents

1. Required Kernel Options
2. Packages Required
3. Loading Modules
4. Config File Details
5. Testing
6. Bugs
A. Bibliography / References

1. Required Kernel Options

CONFIG_SYSCTL=y
CONFIG_PCCARD=y
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
CONFIG_YENTA=y
CONFIG_PCMCIA_PROBE=y (Described as required in forum post #1 but is working without.)
CONFIG_PNP=y
CONFIG_NET=y
CONFIG_NET_RADIO=y [Device Drivers > Network Device Support > Wireless Lan (non-ham radio) > Wireless Lan Drivers (non-ham) & Wireless ??????]
CONFIG_NET_WIRELESS=y
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_PCNET=y
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_MD5=y

2. Packages Required

sys-apps/baselayout-1.11.13-r1
net-wireless/madwifi-driver-0.1_pre20050420 [masked]
net-wireless/madwifi-tools-0.1_pre20050106 [masked]
net-wireless/wireless-tools-27-r1

Masked packages used by adding the following to /etc/portage/package.keywords

>=net-wireless/madwifi-driver-0.1_pre20050420
>=net-wireless/madwifi-tools-0.1_pre20050106

The keywords for the packages indicate that the system will use the defined version or newer. This enables the packages to be kept up to date in the
standard update procedure.

3. Loading Modules

The madwifi driver includes several modules that need to be loaded in order for the hardware to work. To have these modules automatically load at startup they should be added to /etc/modules.autoload.d/kernel-2.6

Add the following:

ath_hal
wlan
wlan_acl
wlan_ccmp
wlan_tkip
wlan_wep
wlan_xauth
wlan_rate_amrr
wlan_rate_onoe
ath_pci

4. Config File Details

The WG511T uses an Atheros chipset. This means it will appear to the system as ath0 (or similar) rather than eth1 (assuming eth0 is a wired connection). Another init script needs to be added for the card. The following steps indicate how to do this.

# cd /etc/init.d
# ln -s net.lo net.ath0
# rc-update add net.ath0 default

Additional variables need adding to /etc/conf.d/net to describe the Access Point and Connection options. These are detailed below.

iface_ath0="dhcp"
essid_ath0="Insert ESSID Here"
modules=( "iwconfig" ) #Prefer iwconfig over wpa_supplicant
key_'Insert ESSID Here'="[1] 'Insert 128bit WEP HEX Key' [1] enc open"
prefferred_aps=( "'Insert ESSID Here'" )

Other options can be added to the above configuration, but will work with the minimal setup detailed.

5. Testing

Assume the following:
Access Point Setup
The WG511T will be allocated an IP via DHCP
Correct ESSID and WEP Key in config files

Upon reboot the card should detect an Access Point matching the ESSID and connect, obtaining an IP in the process. A ping test will confirm the
connection.

# ping -c 3 www.google.com

A correct response will include the transmit times on 3 connection attempts.

ath0 should also show up in ifconfig and iwconfig.

# ifconfig
# iwconfig

6. Bugs

Booting up there is a long wait as the unused eth0 wired connection tries to obtain an IP before giving up. Something will need to be done about the
timeout to enable a swift bootup.

A. Bibliography / References

POST#1: http://forums.gentoo.org/viewtopic-t-328808-highlight-wg511t.html

One Reply to “WG511T Config with Gentoo”

Comments are closed.