--------------------------------------------------------------------------------------

Building firmwares and ROM files for DA-661.662.663 and UC-7410/7420/7408/7402 Plus

--------------------------------------------------------------------------------------

  1. 1.Host Operation System Requirements  (recommend)

	MandrakeR 8.1 (on x86)
	Red HatR 7.3, 8.0, 9.0 (on x86)
	Debian 3.1, 4.0, 5.0 (on x86)
	Ubuntu 9.04 (on x86)

  2. Untar the source code, UC-7400P_YYMMDDHH.tar.bz2

	tar xjvf UC-7400P_YYMMDDHH.tar.bz2

	After the UC-7400P_YYMMDDHH.tar.bz2 is untared, 
	all the files will be decompressed in ./UC-7400P directory

	YY is year, MM is month, DD is date, HH is hour

  3. Install the xscale big endian cross compile tool chain for compiling kernel

	$ mount -t iso9660 /dev/cdrom /mnt/cdrom
	$ cp /mnt/cdrom/tool-chain/UC-7410.7420.7402.7408-LX Plus/Linux/xscale_be_1.1.sh /tmp/
	$ sh /tmp/xscale_be_1.1.sh
	$ rm -f /tmp/xscale_be_1.1.sh
	$ export PATH="/usr/local/xscale_be/bin":$PATH
	$ export MANPATH="/usr/local/xscale_be/man":$MANPATH

  4. You can Configure the firmware version in the 
   mkDA66Xall/mkUC7400Pall/mkUC7408Pall script to make firmware and ROM files.
  
  For example, UC-7402/7420/7410-LX Plus configure the firmware version 1.6.2 in mkUC7400Pall
  
    export BMAJOR=4                # bootloader major
    export BMINOR=9                # bootloader minor
    export BOEM=0                  # bootloader oem
    export BTESTING=0              # bootloader testing
    export MAJOR=1                 # kernel, root disk major
    export MINOR=6                 # kernel, root disk minor
    export OEM=2                   # kernel, root disk oem
    export TESTING=0               # kernel, root disk testing
  
  5. To build the firmware for DA-661/662/663 or UC-7410/7420/7408/7402 Plus, 

   Make the firmware and ROM files for UC-7410/7420/7402-LX Plus
  
    $ cd UC-7400P
    $ ./mkUC7400Pall
 
  For UC-7408-LX Plus, you should use mkUC7408Pall script for making firmware

    $ cd UC-7400P
    $ ./mkUC7408Pall

  For DA-661/662/663-LX, you should use mkDA66Xall script for making firmware
  
    $ cd UC-7400P
    $ ./mkDA66Xall
 
  Finally, all the firmware and rom file will be created at /tftpboot/
  
  For UC-7402/7420/7410-LX Plus

  /tftpboot/moxa_DA66X_UC74XX_zImage-1.6.2.bin       the kernel binary image
  /tftpboot/moxa_DA66X_UC74XX_rootdisk-1.6.2.dsk     the root disk binary image
  /tftpboot/FWR_UC7400P_V1.6.2_Build_08040718        the firmware ( can be upgraded by upfirm )
  /tftpboot/UC7400P_R1-4.9-1.6.2_Build_08040718      ROM image for flash disk 1
  /tftpboot/UC7400P_R2-4.9-1.6.2_Build_08040718      ROM image for flash disk 2  
  
  For UC-7408-LX Plus

  /tftpboot/moxa_DA66X_UC74XX_zImage-1.6.2.bin       the kernel binary image
  /tftpboot/moxa_DA66X_UC74XX_rootdisk-1.6.2.dsk     the root disk binary image
  /tftpboot/FWR_UC7408P_V1.6.2_Build_09012117        the firmware ( can be upgraded by upfirm )
  /tftpboot/UC7408P_R1-4.9-1.6.2_Build_09012117      ROM image for flash disk 1
  /tftpboot/UC7408P_R2-4.9-1.6.2_Build_09012117      ROM image for flash disk 2  
  
  For DA-661/662/663-LX
  
  /tftpboot/moxa_DA66X_UC74XX_zImage-1.6.2.bin     the kernel binary image
  /tftpboot/moxa_DA66X_UC74XX_rootdisk-1.6.2.dsk   the root disk binary image
  /tftpboot/FWR_DA66X_V1.6.2_Build_09020913        the firmware ( can be upgraded by upfirm )
  /tftpboot/DA66X_R1-4.9-1.6.2_Build_09020913      ROM image for flash disk 1
  /tftpboot/DA66X_R2-4.9-1.6.2_Build_09020913      ROM image for flash disk 2
  
