没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
UEFI Shell Specification
September 25, 2008
Revision 2.0
ii Version 2.0
The material contained herein is not a license, either expressly or impliedly, to any intellectual property owned or controlled by
any of the authors or developers of this material or to any contribution thereto. The material contained herein is provided on an
"AS IS" basis and, to the maximum extent permitted by applicable law, this information is provided AS IS AND WITH ALL
FAULTS, and the authors and developers of this material hereby disclaim all other warranties and conditions, either express,
implied or statutory, including, but not limited to, any (if any) implied warranties, duties or conditions of merchantability, of
fitness for a particular purpose, of accuracy or completeness of responses, of results, of workmanlike effort, of lack of viruses
and of lack of negligence, all with regard to this material and any contribution thereto. Designers must not rely on the absence
or characteristics of any features or instructions marked "reserved" or "undefined." The Unified EFI Forum, Inc. reserves any
features or instructions so marked for future definition and shall have no responsibility whatsoever for conflicts or
incompatibilities arising from future changes to them. ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET
ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THE
SPECIFICATION AND ANY CONTRIBUTION THERETO.
IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR ANY CONTRIBUTION THERETO BE LIABLE TO ANY
OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF
DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT,
WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS DOCUMENT,
WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
Copyright 2008 Unified EFI, Inc. All Rights Reserved
Version 2.0
iii
Contents
1 Introduction.....................................................................................................1
1.1 Overview ..............................................................................................1
1.2 Related Information................................................................................1
1.3 Terms...................................................................................................1
2 Code Definitions ...............................................................................................3
2.1 Introduction ..........................................................................................3
2.2 EFI_SHELL_PROTOCOL............................................................................3
EFI_SHELL_PROTOCOL ...........................................................................3
EFI_SHELL_PROTOCOL.BatchIsActive() .....................................................8
EFI_SHELL_PROTOCOL.CloseFile()............................................................9
EFI_SHELL_PROTOCOL.CreateFile() ........................................................10
EFI_SHELL_PROTOCOL.DeleteFile() ........................................................12
EFI_SHELL_PROTOCOL.DeleteFileByName().............................................13
EFI_SHELL_PROTOCOL.DisablePageBreak() .............................................14
EFI_SHELL_PROTOCOL.EnablePageBreak() ..............................................15
EFI_SHELL_PROTOCOL.Execute()...........................................................16
EFI_SHELL_PROTOCOL.FindFiles()..........................................................18
EFI_SHELL_PROTOCOL.FindFilesInDir()...................................................19
EFI_SHELL_PROTOCOL.FlushFile()..........................................................20
EFI_SHELL_PROTOCOL.FreeFileList() ......................................................21
EFI_SHELL_PROTOCOL.GetCurDir() ........................................................22
EFI_SHELL_PROTOCOL.GetDeviceName()................................................23
EFI_SHELL_PROTOCOL.GetDevicePathFromMap() .....................................25
EFI_SHELL_PROTOCOL.GetDevicePathFromFilePath()................................26
EFI_SHELL_PROTOCOL.GetEnv()............................................................27
EFI_SHELL_PROTOCOL.GetFileInfo().......................................................28
EFI_SHELL_PROTOCOL.GetFilePathFromDevicePath()................................29
EFI_SHELL_PROTOCOL.GetFilePosition()..................................................30
EFI_SHELL_PROTOCOL.GetFileSize().......................................................31
EFI_SHELL_PROTOCOL.GetHelpText().....................................................32
EFI_SHELL_PROTOCOL.GetMapFromDevicePath() .....................................34
EFI_SHELL_PROTOCOL.GetPageBreak() ..................................................35
EFI_SHELL_PROTOCOL.IsRootShell() ......................................................36
EFI_SHELL_PROTOCOL.OpenFileByName() ..............................................37
EFI_SHELL_PROTOCOL.OpenFileList().....................................................39
EFI_SHELL_PROTOCOL.OpenRoot() ........................................................41
EFI_SHELL_PROTOCOL.OpenRootByHandle() ...........................................42
EFI_SHELL_PROTOCOL.ReadFile() ..........................................................43
EFI_SHELL_PROTOCOL.RemoveDupInFileList().........................................44
EFI_SHELL_PROTOCOL.SetAlias()...........................................................45
EFI_SHELL_PROTOCOL.SetCurDir() ........................................................46
EFI_SHELL_PROTOCOL.SetEnv() ............................................................47
EFI_SHELL_PROTOCOL.SetFileInfo().......................................................48
EFI_SHELL_PROTOCOL.SetFilePosition()..................................................49
EFI_SHELL_PROTOCOL.SetMap()............................................................50
EFI_SHELL_PROTOCOL.WriteFile()..........................................................51
iv Version 2.0
2.3 EFI_SHELL_PARAMETERS_PROTOCOL .....................................................52
EFI_SHELL_PARAMETERS_PROTOCOL.....................................................52
3 UEFI Shell Features.........................................................................................55
3.1 Levels Of Support.................................................................................55
3.2 Invocation...........................................................................................56
3.3 Initialization ........................................................................................57
3.3.1 Finding startup.nsh..................................................................58
3.3.2 Supported Profiles...................................................................58
3.4 Command-Line ....................................................................................58
3.4.1 Special Characters...................................................................59
3.4.2 Escape Characters...................................................................59
3.4.3 Quoting .................................................................................59
3.4.4 Redirection.............................................................................60
3.5 Current Directory .................................................................................62
3.6 Variables.............................................................................................62
3.6.1 Environment Variables .............................................................63
3.6.2 Positional Parameters ..............................................................65
3.6.3 Index Parameters....................................................................65
3.6.4 Aliases...................................................................................65
3.7 File Names ..........................................................................................66
3.7.1 Wildcard Expansion .................................................................66
3.7.2 Mappings ...............................................................................67
3.7.3 Consistent File System Mapping ................................................67
3.8 Scripts................................................................................................67
3.9 Nesting the Shell..................................................................................68
3.10 Interactive Features..............................................................................68
3.10.1 Key History Support ................................................................68
3.10.2 Execution Interrupt Support......................................................68
3.10.3 Output Streaming Control.........................................................69
3.10.4 Scroll Back Buffer Support........................................................69
3.11 Shell Applications.................................................................................69
3.11.1 Installation.............................................................................69
3.11.2 Command-Line Help ................................................................70
4 Scripts ..........................................................................................................71
4.1 Comments ..........................................................................................71
4.2 Error Handling .....................................................................................71
4.3 Script Nesting......................................................................................72
4.4 Output and Echoing..............................................................................72
4.5 Limitations ..........................................................................................72
5 Shell Commands.............................................................................................73
5.1 Overview ............................................................................................73
5.1.1 Explanation of Command Description Layout...............................77
5.1.2 Shell Command-Line Options ....................................................77
5.2 Shell Command Profiles.........................................................................78
5.3 Shell Commands..................................................................................78
alias ............................................................................................78
attrib ............................................................................................81
bcfg ............................................................................................83
cd ............................................................................................86
Version 2.0
v
cls ............................................................................................88
comp ............................................................................................89
connect ............................................................................................91
cp ............................................................................................93
date ............................................................................................96
dblk ............................................................................................98
del .......................................................................................... 102
devices ..........................................................................................103
devtree ..........................................................................................105
dh ..........................................................................................106
dir .......................................................................................... 109
disconnect ........................................................................................110
dmem ..........................................................................................112
dmpstore..........................................................................................115
drivers ..........................................................................................117
drvcfg ..........................................................................................120
drvdiag ..........................................................................................124
echo ..........................................................................................126
edit .......................................................................................... 128
eficompress ......................................................................................129
efidecompress ...................................................................................130
exit .......................................................................................... 131
for ..........................................................................................132
getmtc ..........................................................................................134
goto ..........................................................................................135
guid ..........................................................................................136
help .......................................................................................... 137
hexedit .......................................................................................... 139
if ..........................................................................................140
ifconfig .......................................................................................... 145
ipconfig ..........................................................................................147
load ..........................................................................................148
loadpcirom........................................................................................150
ls .......................................................................................... 151
map ..........................................................................................155
md ..........................................................................................158
mem ..........................................................................................159
memmap..........................................................................................160
mkdir .......................................................................................... 163
mm .......................................................................................... 165
mode ..........................................................................................168
mv .......................................................................................... 170
openinfo .......................................................................................... 172
parse ..........................................................................................173
pause ..........................................................................................175
pci .......................................................................................... 176
ping ..........................................................................................180
reconnect .........................................................................................181
reset ..........................................................................................183
rm .......................................................................................... 184
sermode .......................................................................................... 186
set ..........................................................................................188
setsize .......................................................................................... 190
setvar ..........................................................................................191
shift .......................................................................................... 193
剩余237页未读,继续阅读
资源评论
sunweizhong1024
- 粉丝: 108
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现用有限元法计算电磁场的Matlab工具 .rar
- 基于matlab实现有限元算法 计算电磁场问题 边界条件包括第一类边界和第二类边界.rar
- 基于matlab实现用于计算不同车重下的电动汽车动力性和经济性.rar
- 基于matlab实现遗传算法求解多车场车辆路径问题 有多组算例可以用.rar
- 浏览器.apk
- 基于matlab实现是一个matlab中的power system 中搭建的一个模型
- 基于JSP毕业设计-教学管理系统(源代码+论文).zip
- 基于JSP毕业设计-家政管理系统-毕业设计.zip
- 基于Python实现淘宝商品评论采集(含逆向)源代码
- 基于matlab实现多目标进化算法NSGAⅡ&Matlab讲解.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功