=========================================================
1. Flash Layout

          4Mbytes
   +-----------------------+ <----0xFFC00000
   |             	   | 
   |    Linux Kernel       | 
   | 	    (1536K)	   |
   +-----------------------+ <----0xFFD80000
   |                       |
   |        MTD1           | 
   | 	  (1664K)          |    
   +-----------------------+ <----0xFFF20000
   | 	         	   |
   |        MTD2           | 
   |       (384K)          |
   +-----------------------+ <----0xFFF80000
   |             	   |
   |       uBOOT           | 
   |       (512K)          | 
   +-----------------------+ <----0xFFFFFFFF
 
============================================================
	
   	
 2. Modules compilation 
 	1). armeb toolchain
		cp toolchain.tar.gz /opt
		cd /opt
		tar zxvf toolchain.tar.gz
		export PATH=$PATH:/opt/toolchain/usr/bin:/opt/toolchain/bin
			
 	2). Building uboot-1.1.1
		cd /opt/uboot-1.1.1
		make mrproper
		make ZET_RDK036_BE_config CROSS=armeblinux
		make

 	3). Building linux-2.6.12.6
		cd /opt/linux-2.6.12.6
		make db88f5182_cameo_defconfig
		make menuconfig (exit and save)
		make uImage

	4). Building boa-0.94
		cd /opt/boa-0.94/Inl
		CC=armeb-linux-gcc make
		cd /opt/boa-0.94/src
		CC=armeb-linux-gcc make
	
 	5). Building busybox-1.2.2.1
		cd /opt/busybox-1.2.2.1
		make 
		make install

 	6). Building ctorrent-dnh3.2
 		cd /opt
 		tar zxvf ctorrent-dnh3.2.tar.gz
		cd /opt/ctorrent-dnh3.2
		AR=armeb-linux-uclibc-ar AS=armeb-linux-uclibc-as LD=armeb-linux-uclibc-ld NM=armeb-linux-uclibc-nm CC=armeb-linux-uclibc-gcc GCC=armeb-linux-uclibc-gcc CXX=armeb-linux-uclibc-c++ CPP=armeb-linux-uclibc-cpp RANLIB=armeb-linux-uclibc-ranlib STRIP=armeb-linux-uclibc-strip OBJCOPY=armeb-linux-uclibc-objcopy CC_FOR_BUILD="gcc" PKG_CONFIG_SYSROOT=/home/nashome/buildroot/build_armeb/staging_dir PKG_CONFIG=/home/nashome/buildroot/build_armeb/staging_dir/usr/bin/pkg-config  ./configure --target=armeb-linux --host=armeb-linux --build=i686-pc-linux-gnu 
		make

 	7). Building cups-1.3.4
		cd /opt/cups-1.3.4
		./configure --prefix=/home/service/cups --host=armeb-linux --target=armeb-linux --sysconfdir=/home/service/cups --with-logdir=/home/service/cups/log --disable-gssapi
		make
		sudo make install
	
	8). Building dhcpcd-3.0.10
		cd /opt/dhcpcd-3.0.10
		make

	9). Buliding dosfstools-2.10
		cd /opt/dosfstools-2.10
		make 

	10). Buliding fuse-2.6.5
		cd /opt/fuse-2.6.5
		./configure --host=armeb-linux --prefix=/opt/fuse --enable-kernel-module --with-kernel=/opt/linux-2.6.12.6 --disable-mtab
		make
		make install 

	11). Building gdbm-1.8.3
		cd /opt/gdbm-1.8.3
		./configure --host=armeb-linux
		make
	
	12). Buliding libiconv-1.10
		cd /opt/libiconv-1.10
		./configure --host=armeb-linux
		make
			 
	13). Buliding libid3tag-0.15.1b
		cd /opt/libid3tag-0.15.1b
		./configure --host=armeb-linux
		make
			 
	14). Buliding libupnp-1.4.3
		cd /opt/libupnp-1.4.3
		./configure --prefix=/opt/libupnp-1.4.3/libs --host=armeb-linux
		make
		make install
			 
	15). Building mdadm-2.6
		cd /opt/mdadm-2.6
		make

	16). Building mt-daapd-0.2.4
 		cd /opt/mt-daapd-0.2.4
		ac_cv_func_setpgrp_void=yes LDFLAGS="-L/opt/libid3tag-0.15.1b/.libs/ -L/opt/gdbm-1.8.3/.libs/" CPPFLAGS="-I/opt/libid3tag-0.15.1b/ -I/opt/gdbm-1.8.3 " ./configure  --host=armeb-linux --target=armeb-linux 
		make
		
	17). Building nfs-utils-1.0.10
		cd /opt/nfs-utils-1.0.10
		knfsd_cv_bsd_signals=no ./configure --host=armeb-linux --disable-gss --disable-nfsv4
		cd /opt/nfs-utils-1.0.10/support/export
		make mount_xdr.c
		modify mount_xdr.c
			line 218:	(void) IXDR_PUT_SHORT(buf,objp->pc_max_canon);
			->		IXDR_PUT_SHORT(buf,objp->pc_max_canon);

			line 219:	(void) IXDR_PUT_SHORT(buf,objp->pc_max_input);
			->		IXDR_PUT_SHORT(buf,objp->pc_max_input);

			line 220:	(void) IXDR_PUT_SHORT(buf,objp->pc_name_max);
			->		IXDR_PUT_SHORT(buf,objp->pc_name_max);

			line 221:	(void) IXDR_PUT_SHORT(buf,objp->pc_path_max);
			->		IXDR_PUT_SHORT(buf,objp->pc_path_max);	

			line 222:	(void) IXDR_PUT_SHORT(buf,objp->pc_pipe_buf);
			->		IXDR_PUT_SHORT(buf,objp->pc_pipe_buf);

			line 242:	(void) IXDR_PUT_SHORT(buf,*genp++);
			->		IXDR_PUT_SHORT(buf,*genp++);
	
		cd /opt/nfs-utils-1.0.10/utils/rquotad/
		make rquota_xdr.c
		modify rquota_xdr.c
			line 85:	(void) IXDR_PUT_BOOL(buf,objp->rq_active);
			->		IXDR_PUT_BOOL(buf,objp->rq_active);
	
		cd /opt/nfs-utils-1.0.10
		make
	
	18). Building ntfs-3g-1.516
		cd /opt/ntfs-3g-1.516
		./configure --host=armeb-linux --prefix=/opt/fuse --enable-kernel-module --with-kernel=/opt/linux-2.6.12.6 --disable-mtab
		make

	19). Building ntp-4.2.2p4
		cd /opt/ntp-4.2.2p4
		./configure --host=armeb-linux
		cd ntpdate
		make ntpdate

	20). Building portmap-1.6
		cd /opt/portmap-1.6
		CC=armeb-linux-gcc make -e
	
	21). Building proftpd-1.3.1rc2
		cd /opt/proftpd-1.3.1rc2
		LDFLAGS="-L/opt/libiconv-1.10/lib/.libs" CPPFLAGS="-I/opt/libiconv-1.10/include/" MAIN_LIBS="-liconv" ./configure --prefix=/opt/proftpd --host=armeb-linux --disable-autoshadow --enable-openssl --disable-shadow --enable-nls --sysconfdir=/opt/proftpd --localstatedir=/opt -with-modules=mod_codeconv:mod_df:mod_tls
		make
	
	22). Building rsync-2.6.9
		cd /opt/rsync-2.6.9
		./configure --host=armeb-linux
		make
	
	23). Building samba-3.0.25c
		cd /opt/samba-3.0.25c/source/
		chmod 777 ./configure
		AR=armeb-linux-uclibc-ar AS=armeb-linux-uclibc-as LD=armeb-linux-uclibc-ld NM=armeb-linux-uclibc-nm CC=armeb-linux-uclibc-gcc GCC=armeb-linux-uclibc-gcc CXX=armeb-linux-uclibc-g++ CPP=armeb-linux-uclibc-cpp RANLIB=armeb-linux-uclibc-ranlib STRIP=armeb-linux-uclibc-strip OBJCOPY=armeb-linux-uclibc-objcopy CC_FOR_BUILD="gcc" PKG_CONFIG_SYSROOT=/opt/toolchain PKG_CONFIG=/opt/toolchain/usr/bin/pkg-config CXX=""  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes samba_cv_USE_SETREUID=yes SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes samba_cv_HAVE_IFACE_IFCONF=yes ./configure --target=armeb-linux --host=armeb-linux --build=i686-pc-linux-gnu  --disable-pie --disable-fam --prefix=/opt/samba 
		make 
		make install

	24). Building ssi
		cd /opt/ssi
		CC=armeb-linux-gcc make
	
	25). Building ssmtp-2.61
		cd /opt/ssmtp-2.61/
		chmod 777 ./configure
		ac_cv_prog_CC=armeb-linux-gcc ./configure
		make

	26). Building updatedd-2.3
		cd /opt/updatedd-2.3
		./configure CC=armeb-linux-gcc --host=arm-none-linux --libdir=/opt/updatedd
		make

	27). Building ushare-1.0
		cd /opt/ushare-1.0
		ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes PKG_CONFIG_SYSROOT="/opt/toolchain/usr/bin" PKG_CONFIG_PATH="/opt/libupnp-1.4.3/libs/lib/pkgconfig" LDFLAGS="-L/opt/libupnp-1.4.3/libs/lib/" CPPFLAGS="-I/opt/libupnp-1.4.3/libs/include/" LIBS="-lintl" ./configure --host=armeb-linux --enable-nls --sysconfdir=/opt/upnp --localstatedir=/opt/upnp
		make
		
	28). Building util-linux-2.12p
		cd /opt/util-linux-2.12p/hwclock
		make
