Flashing the rom in a windows pe environment – HP Linux Server Management Software User Manual
Page 23
Advanced topics 23
Flashing the ROM in a Windows PE environment
You can run the Online ROM Flash Smart Components to flash system and option ROMs in the Windows®
PE environment, but you must ensure that a writable area is available for the component to use. You can use
the Online ROM Flash Smart Components as part of a scripted installation before the operating system
installation portion of the deployment.
Be sure to download the latest Online ROM Flash Smart Components for the system or option to be flashed.
Be sure that the component number and the server name correspond. The latest ROM flash components are
available from the HP software and drivers website
With flash system and option ROMs, you can create a script file to perform the following tasks:
•
Use HPDISCOVERY and IFHW to determine the current system or option ROM.
•
Run the Online ROM Flash Smart Component.
•
Verify the error level.
The following script is provided as an example only and must be modified for your particular environment.
Additional checks can be added as needed. Lines in bold type must be modified to customize the script.
System\hpdiscovery -f hpdiscovery.xml
System\ifhw hpdiscovery.xml System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G2"
if errorlevel 1 goto NEXT1
REM ----
REM This section performs the System ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp004648.exe /INSTPATH:S:\ROMScratcharea
REM ----
REM Check the error code returned to determine Success or Failure
REM ----
if errorlevel 3 goto HWNOTFOUND
if errorlevel 2 goto REBOOTREQUIRED
if errorlevel 1 goto NEXT2
goto end
NEXT1:
REM Try next system type
System\ifhw hpdiscovery.xml System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G3"
if errorlevel 1 goto NEXT2
REM ----
REM This section performs the System ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp005041.exe /INSTPATH:S:\ROMScratcharea
REM ----
REM Check the error code returned to determine Success or Failure
REM ----
if errorlevel 3 goto HWNOTFOUND
if errorlevel 2 goto REBOOTREQUIRED
if errorlevel 1 goto NEXT2
goto end
NEXT2:
REM ----
REM Example of Option Rom Flash for a SmartArray 5i Controller