Previous Topic

Next Topic

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:

  1. Use HPDISCOVERY and IFHW to determine the current system or option ROM.
  2. Run the Online ROM Flash Smart Component.
  3. Check 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 HWL: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 HWL: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

REM ----

System\ifhw hpdiscovery.xml System\allboards.xml PCI:"Smart Array 5i Controller"

if errorlevel 1 goto NEXT3

REM ----

REM This section performs the Option ROM Flash. Online Flash components

REM are kept in a directory called Roms

REM ----

Roms\cp002238.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 NEXT3

goto end

NEXT3:

REM ----

REM DONE

REM ----

REBOOTREQUIRED:

System\reboot PXE

HWNOTFOUND:

End:

For more information about Online ROM Flash Smart Components, see the HP Online ROM Flash User Guide in the HP Software and Driver Downloads website.