Hi, Essential patch file for HPM.1 Upgrade.
Changes done
- Initiate Upgrade Action (HPMFWUPG_UPGRADE_ACTION_UPGRADE) was called for
all components even
when single component was given on command line (hpm upgrade <filename>
component <id>).
So calling this command only after we decide whether the component is
skipped.
--- ipmi_hpmfwupg.c.orij 2007-08-10 15:58:25.115334000 -0700
+++ ipmi_hpmfwupg.c 2007-08-10 15:58:21.164830000 -0700
@@ -1816,16 +1816,6 @@
unsigned char componentIdByte = 0x00;
- /* Send initiate command */
- initUpgActionCmd.req.componentsMask =
pActionRecord->components;
- /* Action is upgrade */
- initUpgActionCmd.req.upgradeAction =
HPMFWUPG_UPGRADE_ACTION_UPGRADE;
- rc = HpmfwupgInitiateUpgradeAction(intf,
&initUpgActionCmd, pFwupgCtx);
-
- if (rc != HPMFWUPG_SUCCESS)
- {
- break;
- }
/* Save component ID on which the upload is done */
componentIdByte =
pActionRecord->components.ComponentBits.byte;
while ((componentIdByte>>=1)!=0)
@@ -1897,6 +1887,17 @@
pImagePtr = pDataInitial + firmwareLength;
break;
}
+
+ /* Send initiate command */
+ initUpgActionCmd.req.componentsMask =
pActionRecord->components;
+ /* Action is upgrade */
+ initUpgActionCmd.req.upgradeAction =
HPMFWUPG_UPGRADE_ACTION_UPGRADE;
+ rc = HpmfwupgInitiateUpgradeAction(intf,
&initUpgActionCmd, pFwupgCtx);
+
+ if (rc != HPMFWUPG_SUCCESS)
+ {
+ break;
+ }
pVersionInfo = (VERSIONINFO*)
&gVersionInfo[componentId];
Thanks,
Harshad Prabhu
ipmi_hpmfwupg.c.patch
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Ipmitool-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
