天天看点

Phoenix Bios 参数

 <b>phoenix winflash for uefi</b>

manufacturers like lenovo have recently used efi technology from phoenix.

the flashing tools:

winflash.exe for windows

and

pflash.exe for dos

both of them are using command lines:

<b>phoenix winflash for uefi command options</b>

code:

phoenix winflash for uefi command options

this section lists winflash command options and parameters.

syntax

winflash [options] [romfile] [@rspfile]

romfile        the new bios p_w_picpath name, eg: bios.fd

@rspfile       the response file (pflash.rsp by default) contains all command parameters in text format.

/? or /help or /h displays help screen

/all           flash the entire p_w_picpath including the descriptor region

/bak:filename backup rom to a file.

/bbl           program the boot block. by default, bootblock is not updated.

/bios          flash the bios region

/cs            verify bios.fd p_w_picpath checksum

/cvar          clear variables

/console       console mode (only progress bar)

/desc          flash the descriptor the region

/dmc:string    specify chassis manufacturer dmi string

/dmm:string    specify motherboard manufacturer dmi string

/dms:string    specify system manufacturer dmi string

/dpc:string    specify chassis asset tag number

/dpm:string    specify motherboard product id dmi string

/dps:string    specify system product id dmi string

/dsc:string    specify chassis serial number dmi string

/dsm:string    specify motherboard serial number dmi string

/dss:string    specify system serial number dmi string

/dus:string    specify uuid dmi string

/dvc:string    specify chassis version dmi string

/dvm:string    specify motherboard version dmi string

/dvs:string    specify system version dmi string

/ec            flash the ec region

/exit          exit without rebooting

/gbe           flash the gbe region

/hash          ??

/ls            reserve logos in bios rom

/logo:p_w_picpathfile replace the bios logo with an p_w_picpathfile in jpeg or bmp format.

/me            flash the me region

/mfg           manufacturing mode. automatically reboots without the need for pressing a key.

/mod:filename  updates the module in the bios with the module contained in the file (such as /mod:vga.ffs); the rest of the bios p_w_picpath remains unchanged.

/mode=n        specify dmi mode n = {0, 1, 2, 3}

        0: just update bios with new file, don’t update dmi variables.

        1: just update dmi variables, keep rom bios as before.

        2: update bios, merge rom dmi variables with command line(default).

               3: update bios, merge p_w_picpath variables with command line.

/noflash       perform all steps that do not update the flash part

/p             production mode (minimize messages and delays)

/pfaefv:filename loads and runs pfae modules in specified volume file

/raw:uuid:filename replace the raw module content.

/remote2       execute winflash without gui, allowing other applications or other computers to call winflash.

/ro[=name]     read contents of flash part and save to a file.

/v             verify each block after programming it.

/vcpu:filename update variable size cpu micocode

/vbl           show warning for microsoft bitlocker

/sm            skip all winflash messages

/swm           skip all winflash warning messages

/sd            skip bios date check.

/sn            skip bios part number check.

/sp            skip bios product code check.

/sv            skip bios version check.

/svs           skip bios same version check.

/sa            skip all bios checks.

<b>/slp:filename  replace slp marker (bin size=182 octets)</b>

<b>/spu:filename  replace slp pubkey (bin size=156 octets)</b>

/ss            use current slp

<b>phoenix pflash for uefi command options</b>

phoenix pflash for uefi command options

pflash [options] [romfile]

/doxx:string   specify the oemxx dmi string

/ioset:port,value set io port value after restart

/ls            reserve logos in bios rom     

/write:fname:phyaddr   write a binary file to specific physical address

/? or /help or /h      displays this help screen

/sa            skip all bios checks. 

/prog:start:end flash by address block

/endkey        press a key to continue after flashing

/shutdown      shutdown the system after flashing

/exit          return to dos after flashing

/cs            verify the checksum of ffs file

/logo:p_w_picpathfile:index  replace the current bios logo with an p_w_picpathfile in jpeg or bmp format.

/mod:filename  replace a ffs module

/raw:uuid:filename replace a raw module content.

/rsbr:guid,... preserve subregions with specified guids during bios update

/silent        silent operation (no beeps)

/force         update bios without modification

tips:

if using a moded bios the flash fails, open winflash.log

if you see the following errors, a hack of environment.dll is needed.

[0403/001701:info:utils.cpp(29)] <b>p_w_picpathdigest fail!</b>

[0403/001701:info:utils.cpp(29)]

  fail to authenticate p_w_picpath!

[0403/001701:info:utils.cpp(29)] <b>fail to authenticate p_w_picpath!</b>

fail: unsupported!

verified for winflash for uefi versions 1.4.64.0 to 1.4.83.0

in <b>environment.dll</b>

replace 

68 01 00 83 c4 0c 85 c0 74 15

by

68 01 00 83 c4 0c 85 c0 <b>eb</b> 15

to suppress "p_w_picpathdigest fail!" error

or

83 c4 14 89 45 e0 83 7d e0 00 74 31

83 c4 14 89 45 e0 83 7d e0 00 <b>eb</b> 31

to suppress "fail to authenticate p_w_picpath!" error

(this second hack is not necessary if first is applied)

<b>slic insertion/replacement</b>

these tools allow the marker and pubkey insertion by command line:

/slp:filename replace slp marker (bin size=182 octets)

/spu:filename replace slp pubkey (bin size=156 octets)

/ss use current slp

<b>bios recovery instructions</b> 

are explained in a packard bell document, but the needed files are not yet available on the net.

hope these informations will help modders

regards