!!!! Opening The Router Housing or Putting In Any Customer Software on The Router Will Void
The Warranty On Your Rout er !!! !
Hardware Specification
Chipsets:
- CPU: Realtek RTL8651B (200MHz), embedded with a 5-port Fast Ethernet switch
- Wireless: Realtek RTL8185L / RTL8225
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 Specification
KWGR614 is running Linux 2.4.26.
The following table lists the functional modules of the KWGR614 router and the source and versions of the different modules.
More information on these functional modules can be obtained directly from the source of the packages.
Module Package Version Location (directory)
NAT/NAPT
RIPv1/RIPv2
DHCP server/client
DNS Proxy
Dynamic DNS
Web Server
UPNP
Telstra's Big Pond
Email
Schedule
PPP/PPPoE
PPTP Client
Ntpclient
Miscellaneous
RomeDriver-Realtek 3.6.3 linux-2.4.x/drivers/net/re865x/rtl865x
Copyright 2005, DNI 1.0.0 user/ripd
udhcpd/udhcpc of Busybox
V1.00-pre2
Dnrd 2.17.2 user/dnrd-dnshijack
ez-ipupdate 3.0.11b7 user/ez-ipupdate-3.0.11b7
BOA 0.94 user/boa
Copyright 2005, DNI 1.0.0 user/upnp
Bpalogin V2.0 user/bpalogin
Smtpclient 1.0.0 user/smtpclient
Crond of Busybox V1.00-pre21.0.0 user/busybox/miscutils/crond.c
Pppd 2.3.8 user/pppd
pptp-client 1.3.1 user/pptp-client
Copyright 2005, DNI 1.0.0 user/ntpclient
Copyright 2005, DNI 1.0.0 user/dniutil, user/init
0.9.10 user/busybox/networking/udhcp
Making a Console debug Interface for KWGR614
This section contains inst ructions on how t o make a cons ole interf ace to a NETGEA R KWGR 614 wireles s router
for developer’s firmware de velopment and debugging.
KWGR Open Source Guide (Rev 2.0)
Provided below is an exa mple schematic using M AX3 232, the
(TI), to make a console board.
(Datasheet of the MAX3232 can be found on TI web site at http://focus.ti.com/lit/ds/symlink/max3232.pdf
The DB9 (Male) connector is wired as a DCE (thin k of t h is as a peripheral serial port), and can be conne cted
directly to the serial port 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).
Connect the console board to the pin header (J303) on the router boar d.
RS-232 Line Driver/Receiver from Texas Instruments
)
KWGR Open Source Guide (Rev 2.0)
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)
Make sure the adapter board is connected correctly to the corresponding pins of J303 on the router board.
rd
party vendors who provide compatible console boards, such us the AD233AK/AD233B K RS232
KWGR Open Source Guide (Rev 2.0)
Source Code and Executable
The following section of the document highlights 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.
Suse Linux 10.1 was used for development throughout this guide.
Note: The KWGR614 firmware had been built successfully on the following Linux OS platforms
- Redhat 9.0/8.x
- Fedora 5
- SuSE Linux 10.1
1. Download the complete archive from Netgear OSC web site
(http://kbserver.netgear.com/kb_web_files/open_src.asp
KWGR614_V1.0.1_10.17WW_gpl_package.zip
Note: V1.0.1_10.17 is the firmware version number. WW denotes Worldwide version. Other versions are available
e.g NA for North America. Apply the correct file name where appropriate, if you download a different version.
2. unzip KWGR614_V1.0.1_10.17WW_gpl_package.zip
Unzip will result in three files:
KWGR614_README.txt (The Opensource User Guide)
KWGR614_V1.0.1_10.17WW_src.tar.bz2
toolchain_mips_20050831.tar.bz2
3. Unpack the Source code.
tar –xvf KWGR614_V1.0.1_10.17W W _src.tar.bz2
This will create a sub directory KWGR614_xxx/.
xxx -> V1.0.1_10.17WW (xxx denotes the version number)
The Directory has a number of useful documents that we recommend to read before proceeding.
Useful Documents
- /vendors/Documentation/KWGR614_README.txt
- /SOURCE
- /README
- /Documentation/Adding-User-Apps-HOWTO
- /Documentation/Addid-Platforms-HOWTO
4. Install the Tool chain in the root Directory
# cd /
# mkdir uclibc
# cd uclibc
# tar jxvf toolchain_mips_20050831.tar.bz2
# mv toolchain_mips.pv.0831 toolchain_mips
Note: Root user permissions may be required to create the uclibc directory an d install t he toolchain into th e root directory o f
the filesystem.
5. Compile
Change working directory to KWGR614_xxx/
a. Type "make menuconfig", and customize your kernel config options.
Note: If you are building runtime image for the first time, be sure to save the configuration
when leaving "make menuconfig", even if no change is made to default settings.
b. Type "make dep"
c. (Optional) If you need to customize busybox, goto KWGR614_xxx/user/busybox/, and type "make menuconfig" to
select user level application you need. Then go back to KWGR614_xxx/, and type "make dep" again. This would
update all dependencies.
d. Type "make"
This would build the kernel, user apps, and create image file run.bix under KWGR614_xxx/images/
directory.
After compiling and linking the existing source code already provided, you can now upload the
KWGR614_xxx/images/run.bix file directly to the router after connecting the router to your PC and using the “Router
firmware Upgrade” page on the Router Web GUI.
Custom Applications on OpenSource Router
To develop any custom applications on this router, please follow the following steps
Version String
Set your custom version string in the file user/dni/nvram_realtek.c by defining OS_VERSION. Be certain to remove any
duplicate definition.
The country suffix can be removed from the version string by redefining EXTENSION.
Create the help file in the help directory. Name the file the same as the main page with a “help_” prefix.
user/boa/src/www_WW/help/help_example.html
<html>
<head>
<META name="description" content="KWGR614">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Pragma" content="no-cache">
<META HTTP-equiv="Cache-Control" content="no-cache">
<title>Help</title>
<link rel="stylesheet" href="help.css">
</head>
<body bgcolor="#0099cc" >
<h1>Example Help</h1>
<p>This is an example web page showing how to get a parameter from nvram.
</body>
</html>
Add a link to the admin page menu by editing the contents file and including a ref erence to the new web page.
Lastly, if the uploaded firmware crashes the router, follow the steps highlighted below for device recovery.
(1) Power off the unit
(2) Press and hold the RESET button at the rear panel
(3) Power on to reboot the unit
(4) Monitor the Test LED, and keep holding the RESET button until the Test LED changes from blinking to steady ON
(which means the boot loader has entered the TFTP recovery mode)
(5) Connect the PC (configured with static IP address 192.168.1.x) to the LAN port of the unit.
(6) Transmit the working firmware image file to the unit (the firmware can be downloaded from Netgear support website):
* For Windows PC, enter the DOS command:
tftp -i 192.168.1.1 PUT KWGR614_XXX.bix
* For a Linux PC, use the command:
tftp -m binary 192.168.1.1 -c put KWGR614_XXX.bix
where the “192.168.1.1” is the unit’s LAN IP address and “KWGR614_XXX.bix” is the firmware image file to
transmit.
(7) Monitor the Test LED. When it starts blinking, the recovery procedure is complete
(8) Power cycle to reboot KWGR614
(*Repeat the above steps if the procedure is interrupted or failed)
KWGR Open Source Guide (Rev 2.0)
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.