NETGEAR KWGR614 User Manual

Application Note
OpenSource User Guide for OpenSource Wireless-G Router KWGR614
Summary
This document provides further pr od uc t i nf ormation for open source developers wh o a re interested in using this platform to develop their customization applications.
router will void the warranty on your router
Specifications
This section describes the hardware memory specifications and the module and software specifications for the OpenSour ce Wi re less-G Router KWGR614.
Hardware Memory Specificat ions
Total memory:
Flash: 4MB
SDRAM: 16MB
Memory usage of the latest router firmware:
Flash: 2MB used = 1,804KB (router firmware V1.0.1-10.17WW) + 192KB
(Bootloader + BoardInfo + POT + Configuration)
SDRAM: about 8.5MB (without including the dynamic memory allocation)
Module and Software Specifications
The following table lists the functional modules of the KWGR614 router and the source and versions of the different m odu les. You can find more information on these functio n al modules directly from the source of the packages.
Module Package Version Location (directory)
NAT/NAPT RomeDriver-Realtek 3.6.3 linux-2.4.x/drivers/net/re865x/rtl865x RIPv1/RIPv2 Copyright 2005, DNI 1.0.0 user/ripd DHCP
server/client
udhcpd/udhcpc of Busybox V1.00-pre2
0.9.10 user/busybox/networking/udhcp
DNS Proxy Dnrd 2.17.2 user/dnrd-dnshijack
Dynamic DNS ez-ipupdate 3.0.11b7 user/ez-ipupdate-3.0.11b7 Web Server BOA 0.94 user/boa UPNP Copyright 2005, DNI 1.0.0 user/upnp Telstra's Big
Pond Email Smtpclient 1.0.0 user/smtpclient Schedule Crond of Busybox V1.00-
PPP/PPPoE Pppd 2.3.8 user/pppd PPTP Client pptp-client 1.3.1 user/pptp-client Ntpclient Copyright 2005, DNI 1.0.0 user/ntpclient Miscellaneous Copyright 2005, DNI 1.0 .0 user/dniutil, user/init
Wireless driver Copyright Realtek 1.12 linux-
L2TP l2tpd 0.69 user/l2tpd Iptables iptables 1.2.7a user/iptables
Bpalogin V2.0 user/bpalogin
1.0.0 user/busybox/miscutils/crond.c
pre2
2.4.x/drivers/net/wireless/rtl8185
Making a Console Debug Interface for th e KWGR614 Router
This section provides instructions on how to make a console interface to a NETGEAR KWGR614 wireless router for the developer’s firmware development and debugging.
The following example schematic illustrates using a MAX3232, the RS-232 Line Driver/Receiver from Texas Instruments (TI), to make a console board.
You can download a datasheet for the MAX3232.from the Texas Instruments website at:
http://focus.ti.com/lit/ds/symlink/max3232.pdf
.
Note: The DB9 (male) connector is wired as a D CE (thi nk of this as a peripheral serial port), and can be connected directly t o t he ser ia l p ort on a host PC. This gives you access to the built-in serial console on the router (using the protocol of 38400bps, 8 data bits, none parity, 1 stop bit, without flow control).
To make a console debug interface for t he KWG R614 router: Connect the console board to the pin header (J303) on the router boar d.
The pin-out of J303 on the KWGR614 board is as follows:
Pin 1: VDDH (3.3V)
Pin 2: TxD
Pin 3: RxD
Pin 4: GND (Ground)
There are third-party vendors who provide compatible console boards, such as the AD233AK/AD233BK RS232 adapter kits at:
http://www.compsys1.com/workbench/On_top_of_the_Bench/Max233_Adapter/max233 adapter.html
Make sure the third-party adapter board is connected correctly to the corresponding pins of J303 on the router board.
Source Code and Executable
This section describes the steps and procedures that are required to download the source code, install the toolchain, compile and link the existing source code, and develop the user applications for the KWGR614 Router.
Note: The procedures in this guide were performed on Suse Linux 10.1.
1. Download KWGR614_V1.0.1_10.17WW_gpl_package.zip from the NETGEAR Open
Source web site at: http://kbserver.netgear.com/kb_web_files/open_src.asp
.
Note: V1.0.1_10.17 is the firmware versi on number. WW denotes Worldwide. You c an download other versions of this document, for example, North America (NA).
2. Unzip KWGR614_V1.0.1_10.17WW_gpl_package.zip (or the version you downloaded). The zip file contains the following files:
o KWGR614_README.txt (the OpenSource User Guide) o KWGR614_V1.0.1_10.17WW_src.tar.bz2 o toolchain_mips_20050831.tar.bz2
3. Unpack the source code in tar –xvf KWGR614_V1.0.1_10.17WW_src.tar.bz2. This creates a sub-directory KWGR614_xxx/. (xxx -> V1.0.1_10.17WW (xxx denotes the version number.)
We recommend that you read the follo wing documents in this directory before you proceed.
/vendors/Documentation/KWGR614_README.txt
/SOURCE
/README
/Documentation/Adding-User-Apps-HOWTO
/Documentation/Addid-Platforms-HOWTO
4. Install the Tool chain in the r oo t directory by typing:
# cd/
mkdir uclibc # cd uclibc # tar jxvf toolchain_mips_20050831.tar.bz2 # mv toolchain_mips.pv.0831 toolchain_mips
Loading...
+ 9 hidden pages