Install & Build
===============
Environment: 
   1. Download Ubuntu 10.10 from http://www.ubuntu.com/
   2. Install Ubuntu 10.10 in your computer.
   3. Make sure you can connect to the Internet.
      Use the following command to install packages:
      apt-get -y --force-yes update
      apt-get -y --force-yes install gawk
      apt-get -y --force-yes install gcc 
      apt-get -y --force-yes install zlib1g-dev
      apt-get -y --force-yes install sharutils
      apt-get -y --force-yes install libc6-dev
      apt-get -y --force-yes install libncurses5  
      apt-get -y --force-yes install libncurses5-dbg
      apt-get -y --force-yes install libncurses5-dev
	  apt-get -y --force-yes install g++
	  apt-get -y --force-yes install bison 
	  apt-get -y --force-yes install flex
      
Install: 
   1. Install the toolchain:
      (1). Copy toolchain/TEW654TR-toolchain.tgz to /opt 
            ~#cd /opt
            ~#tar -jxvf TEW654TR-toolchain.tgz
   
   2. Building the image:   		
      (1). Copy TEW654TR-Uboot-GPL.tar.bz2 into /home/ directory and use following commands.
            ~#cd /home
			~#tar -jxvf TEW654TR-Uboot-GPL.tar.bz2
      (2). You will get "TEW654TR" directory
            ~#cd TEW654TR
      (3). Into /home/TEW654TR directory and using command "chmod 777 -R ./" to change file access permission.
      (4). set Uboot configuration
      	(a) ~#make menuconfig
      	(b) set "Cross Compiler Path" to the path where you untar the toolchain. For example, if you untar the toolchain
      		 in the /opt folder, the Cross Compiler Path should be /opt/ralink_tool/buildroot-gcc342/bin
      	(c) choose "Platform Type" to "RT3052-ASIC"
      	(d) choose "Port 5 Connect to" to "None"
      	(e) choose "DRAM Component" to "256Mb"
      	(f) choose "DRAM Bus" to "32bits"
      	(g) choose "Ram/Rom version" to "ROM"
      	(h) Exit and save the new Uboot configuration
      (4). Then type "make"
      (5). After make successfully, you will get the image file "TEW654TR.bin" in /home/TEW654TR
   3. Update the new Uboot image in backup mode.
   4. Congratulations! You got your specific image now.
	