2017年10月25日 星期三

EFI/UEFI Shell Command

EFI/UEFI Shell Command

Lists the commands supported by the EFI Shell interface on EFI/UEFI.
The EFI Shell is accessible from an nPartition console when the nPartition is in an active state but has not booted an operating system.
For details on these commands, enter help command at the EFI shell prompt.


The following categories of commands are available:
    “Boot Commands — EFI Shell”.
    “Configuration Commands — EFI Shell”.
    “Device, Driver, and Handle Commands — EFI Shell”.
    “Filesystem Commands — EFI Shell”.
    “Memory Commands — EFI Shell”.
    “Shell Navigation and Other Commands — EFI Shell”.
    “Shell Script Commands / Programming Constructs — EFI Shell”.


CommandDescription
Boot Commands — EFI Shell. Commands related to nPartition booting.
autobootSet/view autoboot timeout variable.
bcfgDisplay/modify the driver/boot configuration.
boottestSet/view BootTest bits.
dbprofileDisplay/modify direct boot profiles for use by lanboot.
lanbootBoot over the LAN.
reconfigresetReset the system (nPartition) for reconfiguration; the nPartition remains inactive, in the shutdown for reconfig state.
resetReset the system (nPartition).
searchConnect drivers for bootables devices.
Configuration Commands — EFI Shell. Commands for changing and retrieving system (nPartition) information.
acpiconfigSet/view ACPI configuration mode.
cellconfigDeconfigure/reconfigure cells. (Set cell use-on-next-boot values.)
cpuconfigDeconfigure/reconfigure processors and processor cores..
dateDisplay the current date or set the date of the system (nPartition).
dimmconfigDeconfigure/reconfigure memory (DIMMs).
errDisplay/change the error level.
errdumpView/clear logs.
fruView FRU data.
infoDisplay hardware information.
monarchSet/view a monarch processor.
palprocMake a PAL call.
romdriversEnable/disable PCI expansion ROM drivers.
rootcellSet/view preferred root cells. (Set nPartition core cell choices.)
salprocMake a SAL call.
tftpPerforms TFTP operation to a bootp/DHCP enabled Unix boot server.
timeDisplay the current time or set the time of the system (nPartition). EFI time is set and presented in GMT (Greenwich mean time).
variableSave/restore specific EFI variables.
verDisplay the version information.
Device, Driver, and Handle Commands — EFI Shell. Commands for managing devices, drivers, and handles.
baudView serial port com settings.
connectBind a driver to a device.
dblkHex dump of BlkIo devices.
devicesDisplay devices managed by EFI drivers.
devtreeDisplay tree of devices.
dhDump handle info.
disconnectDisconnect driver(s) from device(s).
driversDisplay list of drivers.
drvcfgInvoke the Driver Config Protocol.
drvdiagInvoke the Driver Diagnostics Protocol.
guidDump known GUID IDs.
lanaddressDisplay MAC address.
loadLoad EFI drivers.
mapMap shortname to device path.
openinfoDisplay the open protocols for given handle.
pciDisplay PCI devices or PCI function configuration space.
reconnectReconnect driver(s) from a device.
unloadUnload a protocol image.
Filesystem Commands — EFI Shell. Commands for managing files, directories, and attributes.
attribDisplay/change the attributes of files/directories.
cdUpdate/view the current directory.
compCompare the contents of two files.
cpCopy one or more files/directories to another location.
editEdit an ASCII or UNICODE file in full screen.
eficompressCompress infile and write to outfile.
efidecompressDecompress infile and write to outfile.
hexeditEdit a file, block device, or memory region using hex.
lsDisplay a list of files and subdirectories in a directory.
mkdirCreate one or more directories.
mountMount a filesystem on a block device.
rmDelete one or more files/directories.
setsizeSet the size of a file.
touchUpdate time of file/directory with current time.
typeDisplay the contents of a file.
volDisplay volume information of the file system.
Memory Commands — EFI Shell. Commands for listing and managing memory, EFI variables, and NVRAM details.
defaultSet the default NVRAM values.
dmemDump memory or memory mapped IO.
dmpstoreDisplay all EFI variables.
memmapDisplay the memory map.
mmDisplay/modify MEM/IO/PCI.
pdtView/clear nPartition or cell memory page deallocation table (PDT).
Shell Navigation and Other Commands — EFI Shell. Commands for basic EFI Shell navigation and customization.
aliasSet/get alias settings.
clsClear the standard output with an optional background color.
exitExit EFI Shell environment.
getmtcDisplay current monotonic counter value.
help or ?Display help.
modeDisplay the mode of the console output device.
setSet/Get environment variable.
xcharTurn on/off extended character features.
Shell Script Commands / Programming Constructs — EFI Shell. EFI shell-script commands.
echoEcho message to stdout or toggle script echo.
elseScript-only: Use with IF THEN.
endforScript-only: Delimiter for FOR loop construct.
endifScript-only: Delimiter for IF THEN construct.
forScript-only: Loop construct.
gotoScript-only: Jump to label location in script.
ifScript-only: IF THEN construct.
inputTake user input and place in EFI variable.
pauseScript-only: Prompt to quit or continue.
stallStall the processor for some microseconds.

Resets the system.

RESET [-w [string]]
RESET [-s [string]]


    -w       - Performs a warm reset
    -s       - Performs a shutdown
    string   - String to be passed to reset service


Note:
   1. Not all systems support the '-w' option.
   2. Reset will be guaranteed to reset the chipset as well as the processor
      when cold reset is called.
   3. This command does not support output redirection.

沒有留言:

張貼留言