ID: 50 - ipmi_hpmfwupg needs a clean up

Remove "changelog". That's why we have tickets, SCM, ChangeLog etc.
This commit is contained in:
Zdenek Styblik 2013-10-11 04:45:55 +00:00
parent 60a3e63429
commit ac9513025c

View File

@ -46,129 +46,6 @@
# include <config.h>
#endif
/*
*
* Copyright (c) 2006 Kontron Canada, Inc. All Rights Reserved.
*
* HPM.1
* Hardware Platform Management
* IPM Controller Firmware Upgrade Procedure
*
* This module implements an Upgrade Agent for the IPM Controller
* Firmware Upgrade Procedure (HPM.1) specification version 1.0.
*
* author:
* Frederic.Lelievre@ca.kontron.com
* Francois.Isabelle@ca.kontron.com
* Jean-Michel.Audet@ca.kontron.com
* MarieJosee.Blais@ca.kontron.com
*
*
* HISTORY
* ===========================================================================
* 2007-01-11
*
* - Incremented to version 0.2
* - Added lan packet size reduction mechanism to workaround fact
* that lan iface will not return C7 on excessive length
* - Fixed some typos
* - now uses lprintf()
*
* - Incremented to version 0.3
* - added patch for openipmi si driver V39 (send message in driver does not
* retry on 82/83 completion code and return 82/83 as response from target
* [conditionnaly built with ENABLE_OPENIPMI_V39_PATCH]
*
* see: ipmi-fix-send-msg-retry.pacth in openipmi-developer mailing list
*
* 2007-01-16
*
* - Incremented to version 0.4
* - Fixed lan iface inaccesiblity timeout handling. Waiting for firmware
* activation completion (fixed sleep) before re-opening a session and
* get the final firmware upgrade status.
* - Fixed some user interface stuff.
*
* 2007-05-09
*
* - Incremented to version 1.0
* - Modifications for compliancy with HPM.1 specification version 1.0
*
* 2007-06-05
*
* - Modified the display of upgrade of Firmware version.
* - Added new options like "check" and "component" and "all" to hpm commands.
* - By default we skip the upgrade if we have the same firmware version
* as compared to the Image file (*.hpm).This will ensure that user does
* not update the target incase its already been updated
*
* 2008-01-25
* - Reduce buffer length more aggressively when no response from iol.
* - Incremented version to 1.02
*
* 2009-02-11
* - With multi-component HPM file, if one component need to be skipped because
* the component is already up-to-date, ipmitool sends "Initiate upgrade
* action / Upload for upgrade" anyway.
*
* If the component needs to be skipped, ipmitool will not send "Initiate
* upgrade action / Upload for upgrade"
*
* - Incremented version to 1.03
*
* 2009-02-11
* - Fixed side effect introduced by last version, "forced" update didn't
* work anymore
* - Incremented version to 1.04
*
* 2009-03-25
* - Fix the case where ipmitool loses the iol connection during the upload
* block process. Once IPMITool was successfully sent the first byte,
* IPMITool will not resize the block size.
*
* 2009-03-26
* - Fix the problem when we try to upgrade specific component and the component
* is already updated, IPMITool sends a "prepare action" but IPMITool skips
* the upload firmware block process.
* So, if we specify a specific component, we want to force to upload this
* specific component.
* - Incremented version to 1.05
*
* 2009-04-20
* - Reworked previous update, when 'component' is specified, the other
* components are now skipped.
* - Incremented version to 1.06
*
* 2013-09-23
* - Fixed percentage visualization for short upgrade images.
* - Resolved ambiguity for action record checksum calculation.
* - Do not perform activation stage when all components are skipped.
* - Do not close LAN(LAN+) session if IPMC accessed indirectly.
* - Added firmware comparison feature.
* - "component" option has been revised. Now it can be used multiple
* times to select more than one components for upgrade/compare.
* - "force" option has been revised. Now it does not affect
* the components selection. Instead, it forces upgrade (bypasses several
* checks) for the selected components.
* - Fixed rollback timeout calculation. Now it appreciates both the
* image and target values.
* - Fixed manual rollback command. Now it queries rollback timeout from the
* target before performing a rollback.
* - Handle C8h completion code in the same way as C7h while uploading the
* firmware image.
* - Append '\0' to the description string before printing
* component properties.
* - Fixed "check <file>" command (it did not acquired component properties).
* - Incremented version to 1.09
*
* ===========================================================================
* TODO
* ===========================================================================
* 2007-01-11
* - Add interpretation of GetSelftestResults
* - Add interpretation of component ID string
*/
extern int verbose;
static int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename,