*****************************************************************************
* ATEN Technology, Inc.                                                     *
*****************************************************************************
* FUNCTION   :  IPMI FIRMWARE UPDATE UTILITY                                *
* VERSION    :  1.15                                                        *
* BUILD DATE :  Jan  7 2010                                                 *
* USAGE      :                                                              *
*             (1)Update FIRMWARE : ./lUpdate -f filename.bin [OPTION]       *
*             (2)Dump FIRMWARE : ./lUpdate -d filename                      *
*****************************************************************************
* OPTION                                                                    *
*   -i the IPMI channel, currently, kcs and lan are supported               *
* LAN channel specific arguments                                            *
*   -h remote BMC address and RMCP+ port, (default port is 623)             *
*   -u IPMI user name                                                       *
*   -p IPMI password correlated to IPMI user name                           *
*   -r Preserve Configuration (default is Preserve)                         *
*      n:No Preserve, reset to factory default settings			    *
*      y:Preserve, keep all of the settings                                 *
*****************************************************************************
* EXAMPLE                                                                   *
*   we like to upgrade firmware through KCS channel                         *
*   ./lUpdate.sh -f fw.bin -i kcs -r n                                      *
*                                                                           *
*   we like to upgrade firmware through LAN channel with                    *
*     BMC IP address 10.11.12.13 port 623                                   *
*     IPMI username is alice                                                *
*     Password for alice is secret                                          *
*     Reset to factory default settings                                     *
*   ./lUpdate -f fw.bin -i lan -h 10.11.12.13 623 -u alice -p secret -r n   *
*****************************************************************************


NOTE: Please execute lUpdate.sh <parameter>

In the lUpdate.sh use the following command to stop/start the service of SMC, 
while FW update.
sh unload_ipmi_driver.sh
sh load_ipmi_driver.sh


1.12 add list:
(1) add preserve configuration.

1.14 add list:
(1) add error handling.
(2) use kcs.cfg to get KCS CMD/DATA address

1.15 add list:
(1) add dump flash feature
(2) default port number is 623 & default preserve configuration is yes
(3) fixed the flash tool will dump the kernel message
(4) if ipmi related driver exists, unload the ipmi driver before executing FW update 
	and load the ipmi driver after executing FW update.
     