UEFI 是如何工作的? [英] How does UEFI work?

查看:27
本文介绍了UEFI 是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在研究引导加载程序时正好遇到了 UEFI 这个词.我可以理解一些关于 UEFI 的事情.但是,带有 UEFI 的系统在什么模式下(Real、Protected、Long)启动?如果正常的引导加载程序无法与 UEFI 一起工作,那么在处理 UEFI 时引导加载程序的替代方案是什么?除了汇编之外,我还需要任何其他编程来创建它吗?

I was studying about bootloaders when exactly came upon the term UEFI. I can understand some things about UEFI. But still, In what mode(Real,Protected,Long) does a system with UEFI start? If normal boot loaders cant work with UEFI, Then what is the alternate of boot loader while dealing with UEFI? And do I need any other programming to create one, than assembly?

推荐答案

UEFI固件运行在64位平台的64位长模式和32位平台的平面模式;与 BIOS 不同,UEFI 具有自己的体系结构,独立于 CPU 和自己的设备驱动程序.UEFI 可以挂载分区并读取某些文件系统.

UEFI firmware runs in 64 bit long mode for 64 bit platforms and flat mode for 32 bit platforms; Unlike BIOS, UEFI features its own architecture, independent of the CPU, and its own device drivers. UEFI can mount partitions and read certain file systems.

当 x86 计算机配备 UEFI 时,该界面会在系统存储中搜索标有特定全局唯一标识符 (GUID) 的分区,该标识符将其标记为 EFI 系统分区 (ESP).顺便说一句,Windows 不会挂载此分区,您无法在操作系统中看到它.但是有一个技巧,你只需将 VBR 中的分区类型(使用 HexWorkshop)更改为常规的 FAT32 代码,它就会被挂载到操作系统中.

When an x86 computer equipped with UEFI, the interface searches the system storage for a partition labeled with a specific globally unique identifier (GUID) that marks it as the EFI System Partition (ESP). BTW Windows doesn't mount this partition and you cannot see it in the OS. But there is a trick, you simply change the partition type (using HexWorkshop) in VBR to regular FAT32 code and it will be mounted into the OS.

此分区包含为 EFI 架构编译的应用程序.一般来说,您不必处理汇编程序来编写 UEFI 应用程序/加载器,它只是一个常规的 C 代码.默认情况下,它位于EFI/BOOT/BOOTX64.EFI".当手动或自动选择引导加载程序时,UEFI 会将其读入内存并将引导过程的控制权交给它.

This partition contains applications compiled for the EFI architecture. In general you don't have to deal with assembler to write a UEFI application/loader, it's just a regular C code. By the default it is located at "EFI/BOOT/BOOTX64.EFI". When a bootloader is selected, manually or automatically, UEFI reads it into the memory and yields control of the boot process to it.

这篇关于UEFI 是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆