========================================= GNS2000_SOURCE ===============================================

Source Structure

   -----------------------------------------------------------------------------------------
   Folder/File         						Description                   
   -----------------------  				------------------------------------------------
   GNS2000_V39R03_GPL/arm-linux-gnueabi			Toolchain for Applications and Linux Kernel
   GNS2000_V39R03_GPL/linux-2.6.12				Linux Kernel
   GNS2000_V39R03_GPL/Readme.txt		   		Readme
   GNS2000_V39R03_GPL/toolchain_for_uboot		Toolchain for Boot Loader(u-boot)
   GNS2000_V39R03_GPL/u-boot		   			Source code of Boot Loader(u-boot)
   GNS2000_V39R03_GPL/source		   			Source of applications.
   GNS2000_V39R03_GPL/squashfs-tool		   		Source of utility that is used to create SquashFS filesystem.
   GNS2000_V39R03_GPL/ram-neu.tgz		   		Basic files for creating Ramdisk.
   GNS2000_V39R03_GPL/Makefile       			A makefile to build "Linux Kernel" and "Applications" 
   GNS2000_V39R03_GPL/images		     		Binaries of "Loader", "Linux Kernel" and "File System" are put here.


FW Building Procedure

1. Install GNS2000_V39R03_GPL source codes and change to the source code folder
   Un-tar "GNS2000_V39R03_GPL.tgz" to a source code folder.
   Enter the source code folder.

2. Build the source
	1). Build the Boot Loader(u-boot)
		1.1) Need install the toolchain for it.
			#cd GNS2000_V39R03_GPL
			#tar -xvzf toolchain_for_uboot/arm-none-linux-gnueabi-gcc.tgz -C /opt
			#export PATH=$PATH:/opt/arm-none-linux-gnueabi-gcc/bin/
			
		1.2) Enter the folder
			#cd u-boot
			
		1.3) Build the binrary
			#./mkk.sh
			If it succeeds, target file will be created, its namd is u-boot.bin.
			
	2). Build the Linux Kernel.
		2.1) Method 1, you need enter folder GNS2000_V39R03_GPL
			#make linux
			It will build the Kernel image and modules.
		 
		2.2) Method 2, you need enter Kernel Folder
			#cd linux-2.6.12
			#make uImage
			#make modules
		
		
	3). Build the applications
		3.1) Method 1, you need enter folder GNS2000_V39R03_GPL
			#make source
		
		3.2) Method 2, you enter source folder
			#make    
			
3. Build F/W binrary (Need Root User's right)
	#make image
	#cd images-smc
	#./bind
	#cp linux.bin GNS2000_V39R03.bin
	GNS2000_V39R03.bin is the F/W binary.


	
