0. Introduction
   This file will show you how to build the RTL8186 linux system. Besides, It
will guide you how to download the built image to Realtek EV (Evaluation)
board for testing. PLEASE NOTE, the download image will overwrite the original
image existed in the flash memory of EV board.

1. Build Environment
   RedHat 7.3/9.0

2. Toolchain
   You have to install the RTL8186 LINUX toolchain in advance.

3. Build Linux kernel
3.1Trendnet Broadband Router/Russian ISP  version (with 8M/2M SDRAM/Flash)
   - cd linux-2.4.18
   - make distclean
   - cp arch/mips/defconfig-rtl8186-gw-tr  .config 
   - make menuconfig
   - exit and save
   - make dep;make 
   - cd hfload
   - make
   - ==> 'apimg.bin' is the linux image
   
3.2 Trendnet Broadband Router version (with 16M/2M SDRAM/Flash)
   - cd linux-2.4.18
   - make distclean
   - cp arch/mips/defconfig-rtl8186-gw-tr-snmp .config  
   - make menuconfig
   - exit and save
   - make dep;make 
   - cd hfload
   - make
   - ==> 'apimg.bin' is the linux image   

4. Build Linux application
  - edit Makefile to add your application for compile

5. Edit script file for system initialization
   - cd AP/tnet/script, edit the script for system initialization

6. Make a application image
   - edit 'mkimg-tr' to add in application program or create any entry
     in target file system when system is up
   - "make tr" for build Trendnet Broadband router application image 
   - "make tr-ru" for build Trendnet Russian ISP supported application image
   - "make tr-snmp" for build Trendnet SNMP supported application image
   - ==> 'root-lzma.bin' is the application image 
   - ==> 'fw-tr.bin' is the linux + application image without Russian ISP and SNMP supported
   - ==> 'fw-tr-ru.bin' is  the linux + application image with Russian ISP supported  	
   - ==> 'fw-tr-snmp.bin' is  the linux + application image SNMP supported  	

7. Download image to Realtek EV (evaluation) board for testing
   - 'apimg.bin' , 'root-lzma.bin' and 'fw-tr-xx.bin' can be upload via WEB GUI for firmware upgrade, also, 
     you could use boot code upgrade via tftp protocol.
   - 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 PC, and connect to 192.168.1.1. Set file
     type to binary mode, and the xx.bin file to TFTP server of EV
     board. Then you can start the testing.  	  
     



03/11/2008
