UEFI Shell命令详解,自写一个UEFI Shell命令

这篇具有很好参考价值的文章主要介绍了UEFI Shell命令详解,自写一个UEFI Shell命令。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

首先,我们从BIOS进入Shell,输入help命令查看帮助信息

Shell:help

acpiview      - Display ACPI Table information.
alias         - Displays, creates, or deletes UEFI Shell aliases.
attrib        - Displays or modifies the attributes of files or directories.
bcfg          - Manages the boot and driver options that are stored in NVRAM.
cd            - Displays or changes the current directory.
cls           - Clears the console output and optionally changes the background and foreground color.
comp          - Compares the contents of two files on a byte-for-byte basis.
connect       - Binds a driver to a specific device and starts the driver.
cp            - Copies one or more files or directories to another location.
date          - Displays and sets the current date for the system.
dblk          - Displays one or more blocks from a block device.
devices       - Displays the list of devices managed by UEFI drivers.
devtree       - Displays the UEFI Driver Model compliant device tree.
dh            - Displays the device handles in the UEFI environment.
disconnect    - Disconnects one or more drivers from the specified devices.
dmem          - Displays the contents of system or device memory.
dmpstore      - Manages all UEFI variables.
drivers       - Displays the UEFI driver list.
drvcfg        - Invokes the driver configuration.
drvdiag       - Invokes the Driver Diagnostics Protocol.
dumpfdt       - Dump current Flat Device Tree (FDT)
echo          - Controls script file command echoing or displays a message.
edit          - Provides a full screen text editor for ASCII or UCS-2 files.
eficompress   - Compresses a file using UEFI Compression Algorithm.
efidecompress - Decompresses a file using UEFI Decompression Algorithm.
else          - Identifies the code executed when 'if' is FALSE.
endfor        - Ends a 'for' loop.
endif         - Ends the block of a script controlled by an 'if' statement.
exit          - Exits the UEFI Shell or the current script.
for           - Starts a loop based on 'for' syntax.
getmtc        - Gets the MTC from BootServices and displays it.
goto          - Moves around the point of execution in a script.
help          - Displays the UEFI Shell command list or verbose command help.
hexedit       - Provides a full screen hex editor for files, block devices, or memory.
if            - Executes commands in specified conditions.
ifconfig      - Modifies the default IP address of the UEFI IPv4 Network Stack.
load          - Loads a UEFI driver into memory.
loadpcirom    - Loads a PCI Option ROM.
ls            - Lists the contents of a directory or file information.
map           - Displays or defines file system mappings.
memmap        - Displays the memory map maintained by the UEFI environment.
mkdir         - Creates one or more new directories.
mm            - Displays or modifies MEM/MMIO/IO/PCI/PCIE address space.
mode          - Displays or changes the console output device mode.
mv            - Moves one or more files to a destination within or between file systems.
openinfo      - Displays the protocols and agents associated with a handle.
parse         - Retrieves a value from a standard format output file.
pause         - Pauses a script and waits for an operator to press a key.
pci           - Displays PCI device list or PCI function configuration space and PCIe extended
configuration space.
ping          - Ping the target host with an IPv4 stack.
reconnect     - Reconnects drivers to the specific device.
reset         - Resets the system.
rm            - Deletes one or more files or directories.
sermode       - Sets serial port attributes.
set           - Displays or modifies UEFI Shell environment variables.
setfdt        - Define and/or re-install a Flat Device Tree (FDT)
setsize       - Adjusts the size of a file.
setvar        - Displays or modifies a UEFI variable.
shift         - Shifts in-script parameter positions.
smbiosview    - Displays SMBIOS information.
stall         - Stalls the operation for a specified number of microseconds.
tftp          - Download a file from TFTP server.
time          - Displays or sets the current time for the system.
timezone      - Displays or sets time zone information.
touch         - Updates the filename timestamp with the current system date and time.
type          - Sends the contents of a file to the standard output device.
unload        - Unloads a driver image that was already loaded.
ver           - Displays UEFI Firmware version information.
vol           - Displays or modifies information about a disk volume.

Help usage:help [cmd|pattern|special] [-usage] [-verbose] [-section name][-b]

中文释义

命令 功能 命令 功能
acpiview 显示ACPI表相关信息 ifconfig 配置IP地址
alias 显示,创建,删除别名 load 加载UEFI驱动
attrib 显示,更改文件或目录属性 loadpcirom 加载PCI ROM
bcfg 管理启动项 ls 列出目录内容或文件信息
cd 更改当前目录 map 显示Mapping
cls 清空标准输出 memmap 显示目录映射
comp 比较两个文件 mkdir 创建目录
connect 将driver绑定到指定的设备并启动driver mm 列出或修改MEM/MMIO/IO/PCI/PCIE地址空间
cp 将文件或文件夹复制到另一个位置 mode 列出或修改输出设备的模式
date 显示或设置日期 mv 移动文件或目录
dblk 显示块设备里的块 openinfo 显示Protocols打开信息
devices 列出所有设备 parse 从标准格式输出文件检索值
devtree 显示设备树 pause 暂停执行脚本,等待用户输入
dh 显示设备句柄 pci 显示PCI设备
disconnect 从指定设备卸载驱动 ping ping
dmem 显示系统或设备内存的内容 reconnect 重新连接驱动与设备
dmpstore 管理UEFI NVRAM变量 reset 重启系统
drivers 显示设备驱动 rm 删除文件或目录
drvcfg 配置驱动 sermode 设置串口属性
drvdiag 调动Driver Disgnostis Protocol set 显示或修改Shell中的环境变量
dumpfdt 调用驱动程序配置 setfdt 定义和/或重新安装平面设备树(FDT)
echo 回显 setsize 调整文件大小
edit 编辑ASCII或UCS-2文件 setvar 设置UEFI变量
eficompress 压缩文件 shift 移动脚本内参数的位置
efidecompress 解压文件 smbiosview 显示SMBIOS信息
else 标识当’if’为FALSE时执行的代码 stall 在指定的时间内暂停执行
endfor 结束“for”循环 tftp 从TFTP服务器下载文件
endif 结束由’if’语句控制的脚本块 time 显示/设置时区
exit 退出Shell或脚本 timezone 显示/设置时区
for 开始一个“for”循环 touch 更新文件时间设置
getmtc 从BootServices获取MTC并显示它 type 显示文件类型
goto 在脚本的执行点周围移动 unload 卸载驱动
help 显示帮助信息 ver 显示UEFI固件版本信息
hexedit 二进制编辑器,可编辑文件,块设备或内存 vol 显示/设置卷标
if 开始一个“if”语句

Shell命令通用选项

命令行参数 作用
-b,-break 输出信息分屏显示
-q,-quit 不输出任何信息
-sfo 用标准格式输出
-t,-terse 用简洁格式输出信息
-v,-verbose 输出辅助信息
-? 输出帮助信息

自己写一个UEFI Shell 命令(基于开源EDK2代码)

…待补充文章来源地址https://www.toymoban.com/news/detail-415909.html

到了这里,关于UEFI Shell命令详解,自写一个UEFI Shell命令的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Node.js:execSync执行一个shell命令

    默认输出是Buffer对象 需要转为字符串 参考文章 https://www.runoob.com/nodejs/nodejs-process.html https://blog.csdn.net/weixin_43972437/article/details/130643741

    2024年02月15日
    浏览(41)
  • 【Shell 命令集合 系统管理 】Linux 创建一个新的用户组 groupadd 命令 使用指南

    Shell 命令专栏:Linux Shell 命令全解析 groupadd命令用于在Linux系统中创建一个新的用户组。它可以创建一个本地用户组,也可以创建一个系统用户组。 创建一个用户组可以帮助管理员更好地管理用户和文件的权限。用户组可以将一组用户组织在一起,并为他们提供共享的权限设

    2024年02月03日
    浏览(48)
  • 【Linux】Shell命令运行原理和权限详解

    tar指令(重要): 打包/解包,不打开它,直接看内容 语法:tar [-cxtzjvf] 文件与目录 … 参数: 常用的为: (1)-c :建立一个压缩文件的参数指令(create 的意思); (2)-z :是否同时具有 gzip 的属性?亦即是否需要用 gzip 压缩 (3)-f :使用档名,请留意,在 f 之后要立即接

    2024年03月14日
    浏览(95)
  • shell脚本之“sort“、“uniq“、“tr“、“cut“命令详解

    以行为单位对文件内容进行排序 ,也可以根据不同的数据类型来排序. 比较原则 :从首字符向后,依次 按ASCII码值进行比较 ,最后将他们 按升序输出 . 语法格式 常用选项 选项 命令含义 -n 按照数字进行排序,默认按照升序排序 -r 反向排序,按照降序排序 -u 等同于uniq,表示

    2024年02月03日
    浏览(26)
  • 中柏 EZpad 8 Windows 平板电脑 |驱动备份|系统优化|不能调节显示器亮度|进入Bios/uefi 快捷键 |蓝牙扫描不到设备|CPU占用过高解决方案

              之前一直使用的这个平板,但是有个很严重的问题就是性能实在太差了,每次都是CPU百分百,Mem 百分之50% 这个结果真的很意外, 但是又无可奈何,后面花时间做了一些优化包括 进程限制  启动优化  内存页面优化  但结果都不尽人意,一启动程序就卡顿 ..........  中间又

    2024年02月09日
    浏览(88)
  • 大数据与云计算——让我们进入数字化的新纪元

    当谈论大数据和云计算时,我们进入了一个数字化时代的新纪元。这两个领域在科技和商业领域都有着深远的影响,改变了我们如何处理和存储数据,以及如何进行计算和分析。本文将探讨大数据和云计算的基本概念,它们的关系以及它们在不同领域的应用。 大数据是指大规

    2024年02月09日
    浏览(29)
  • 运维Shell脚本小试牛刀(三)::$(cd $(dirname $0); pwd)命令详解

    运维Shell脚本小试牛刀(一) 运维Shell脚本小试牛刀(二) 运维Shell脚本小试牛刀(三)::$(cd $(dirname $0); pwd)命令详解 运维Shell脚本小试牛刀(四): 多层嵌套if...elif...elif....else fi_蜗牛杨哥的博客-CSDN博客 path = $(cd $(dirname $0); pwd)解析: 1、取当前运行脚本的所在路径: $0 2、取当前脚本所

    2024年02月10日
    浏览(40)
  • SHELL 基础 入门(三) Bash 快捷键 命令执行顺序,详解通配符

    目录 Bash 常用快捷键  输入输出重定向  用法  输出重定向  命令执行顺序  ;  分号 ||  通配符  传统通配符  ? \\\'  *  \\\'  [  ]   [ - ]   [ ^ ] 常用字符  强调 : {  }   生成序列  Ctrl + A    把光标移动到命令行开头 Ctrl + E    把光标移动到命令行尾  Ctrl + D    退出当前

    2024年02月11日
    浏览(52)
  • 无法从命令行或调试器启动服务,必须首先安装Windows服务....。在“安装”阶段发生异常。 System.Security.SecurityException:未找到源

    此处一共两个问题,第一个问题完整描述是: 无法从命令行或调试器启动服务,必须首先安装Windows服务(使用installutil.exe),然后用ServerExplorer、Windows服务器管理工具或NET START命令启动它。 第二个问题是: Windows Service服务 出现System.Security.SecurityException: 未找到源,但未能搜索

    2023年04月15日
    浏览(72)
  • Linux exit命令教程:如何优雅地退出你的Shell(附案例详解和注意事项)

    Linux的exit命令用于退出当前运行的shell。它可以接受一个参数[N],并以状态N退出shell。如果没有提供n,则它只返回最后执行的命令的状态。 exit命令是内置在所有Linux发行版中的,包括但不限于Ubuntu、Debian、Fedora、RHEL、SUSE、Arch等。因此,无论你使用哪个Linux发行版,你都可以

    2024年02月04日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包