WAB-3001/3002 Application Source Package - v1.4 
		-----------------------------------------------
		
Package List
============
	1. Directory 'linux-2.4.18' - contain linux kernel 2.4.18 object modules
	   for WAB-3001/3002 SoC. It includes the object code and library adopted in 
	   WAB-3001/3002 turn-key solution for Access Point and Gateway package. it
	   also includes the makefile to allow you to put your own  application 
	   image and link with kerenl object modules to be a new system image.
	
	2. Directory 'AP' - contain the all application sources and makefile to
    	   build the application image for WAB-3001/3002. It includes:
	   - bridge configure utility (brctl)
	   - busybox shell
	   - dnrd for DNS relay
	   - GoAhead web server
	   - iptables to configure netfilter
	   - udhcp for DHCP server/client
 	   - PPPoE daemon and configure utility
	   - uClibc for shared C library
	   - script files to initialize the system
	   - PPTP client daemon 
	   - Binary files for IAPP, 802.1x Authenticator, uPNP and 
	     auto-discovery daemon.
	   
	   
 
Install & Build
===============

1. Build Environment
   RedHat 7.3/9.0

2. Install toolchain at /usr/local/gcc333/lexra-nnop-v5/bin
   Add in root/.bashrc
   export PATH=/usr/local/gcc333/lexra-nnop-v5/bin:$PATH

3. Build Linux application

        - cd AP
        - make gw-vpn
        - ==> 'ramdisk.img' application image will be put into
          'linux-2.4.18/appimg-vpn'
        	         
4. Build Linux system image
	- cd linux-2.4.18
	- make
	- cd rtkload
	- make
	==> 'linux.bin' is the image, which could be booted by Realtek boot code

5. Download image to Realtek EV (evaluation) board for testing
   - Use a RS232 cable to connect COM port between a LINUX PC and EV board.
   - Connect LINUX PC Ethernet port to the LAN port of EV board. Set PC IP
     address to 192.168.1.x (e.g., type 'ifconfig eth0 192.168.1.1').
   - Start a COM port console (e.g., minicom), and set COM port setting to
     38400, 8N1 and no flow control.
   - Power on EV board, and press 'ESC' key in COM port console to escape the
     booting process. If ok, you may see "<RealTek>" prompt in the console.
   - Start a TFTP client in LINUX PC, and connect to 192.168.1.6. Set file
     type to binary mode, and put boot file (boot) to TFTP server of EV
     board.
   - After TFTP upload is completed, you may see a message in COM port
     console as "**TFTP Client Upload File Size = 00xxxxxx Bytes at 80300000".
     "00xxxxxx" and "80300000" indicate the hex value of upload file size and
     memory address stored image respectively.
   - Type command in COM port console as "flw 20000 80300000 xxxxxx" to write
     upload image to flash address "20000" from SDRAM address "80300000" with
     size "xxxxxx" in hex (NOTE). 
   - Then that, you may see a message shown in COM port console as:
     "Flash Program from 80300000 to 00020000 with 00xxxxxx bytes     ?
     (Y)es, (N)o->". Type 'y' to confirm the writing. After the updated is
     completed, you could power off/on the EV board, and the new linux image
     will be effective (NOTE).

	NOTE: Normally, these two steps commands (write flash memory) are not 
		  necessary because the boot code will recognized the Linux image
		  and write it into flash memory automatically after image is 
		  uploaded.

