The Extensible Firmware Interface (EFI) is a specification that defines a software interface between an operating system and platform firmware. EFI is a much larger, more complex,[1][2]:4 replacement for the older BIOS firmware interface present in all IBM PC-compatible personal computers.[2]
The EFI specification was originally developed by Intel, and has been managed since 2005 by the Unified EFI Forum as the Unified Extensible Firmware Interface (UEFI).
Contents |
The original motivation for EFI came during early development of the first Intel-HP Itanium systems in the mid-1990s. PC BIOS limitations (16-bit processor mode, 1 MB addressable space, PC AT hardware dependencies, etc.) were seen as clearly unacceptable for the larger server platforms Itanium was targeting.[3] The effort to address these concerns was initially called Intel Boot Initiative and was later renamed to EFI.[4]
In 2005, the UEFI Forum was created, and is now responsible for EFI development[5] and promotion.
Version 2.1 of the UEFI (Unified Extensible Firmware Interface) specification was released on January 7, 2007. As of March 2007, it added cryptography, network authentication, and the User Interface Architecture (Human Interface Infrastructure in UEFI).
The interface defined by the EFI specification includes data tables that contain platform information, and boot and runtime services that are available to the OS loader and OS. UEFI firmware[6] provides several technical advantages:
Some existing enhancements to PC BIOS, such as the Advanced Configuration and Power Interface (ACPI) and System Management BIOS (SMBIOS), are also present in EFI, as they do not rely on a 16-bit runtime interface.
In addition to the standard PC disk partition scheme, which uses a Master boot record (MBR), EFI adds support for a new partitioning scheme: GUID Partition Table (GPT). GPT does not suffer from many of the limitations of MBR. In particular, the MBR limits on the number and size of disk partitions (up to 4 partitions per disk, up to 2.2 TB (2.2 x 1012 bytes) per partition) are relaxed.[7] GPT allows for a maximum disk and partition size of 9.4 ZB (9.4 x 1021 bytes).[7][8] The EFI specification does not prescribe any particular file system.
The BIOS is limited to a 16-bit processor mode and 1 MB of addressable space due to the design being based on the IBM 5150 which used the 16-bit Intel 8088.[3][9] In comparison the UEFI processor mode can be either 32-bit (x86-32) or 64-bit (x86-64 and Itanium).[3][10] 64-bit UEFI supports long mode which allows applications in the pre-boot execution environment to have direct access to all of the memory using 64-bit addressing.[11]
EFI defines two types of services: boot services and runtime services. Boot services include text and graphical console support on various devices, bus, block, and file services. Runtime services include services such as date, time, and NVRAM.
EFI defines protocols as set of software interfaces used for communication between two binary modules. All EFI drivers must provide services to others via protocols.
In addition to standard architecture-specific device drivers, the EFI specification provides for a processor-independent device driver environment, called EFI Byte Code or EBC. System firmware is required by the UEFI specification to carry an interpreter for any EBC images that reside in or are loaded into the environment. In that sense, EBC is similar to Open Firmware, the hardware-independent firmware used in PowerPC-based Apple Macintosh and Sun Microsystems SPARC computers, amongst others.
Some architecture-specific (non-EBC) EFI device driver types can have interfaces for use from the operating system. This allows the OS to rely on EFI for basic graphics and network support until OS specific drivers are loaded.
An EFI boot manager is also used to select and load the operating system, removing the need for a dedicated boot loader mechanism (the OS boot loader is an EFI application).
EFI supports a shell environment.[12] The shell can be used to execute other EFI applications.
Extensions to EFI can be loaded from virtually any non-volatile storage device attached to the computer. For example, an original equipment manufacturer (OEM) can distribute systems with an EFI partition on the hard drive, which would add additional functions to the standard EFI firmware stored on the motherboard’s ROM.
Intel's implementation of EFI is the Intel Platform Innovation Framework, code named “Tiano”. Tiano runs on Intel's XScale, Itanium and IA32 processors, and is proprietary software, although a portion of the code has been released under the BSD license or Eclipse Public License as the "TianoCore project". [13] Phoenix Technologies currently sells Phoenix SecureCore Tiano and Phoenix MicroCore Bios supporting UEFI.[14]
Intel’s first Itanium workstations and servers, released in 2000, supported EFI 1.02.
Hewlett-Packard’s first Itanium 2 systems, released in 2002, supported EFI 1.10; they were able to boot Windows, Linux, FreeBSD and HP-UX; OpenVMS added support in June, 2003.
All Itanium and Itanium 2 systems ship with EFI compliant firmware.
In November 2003, Gateway introduced the Gateway 610 Media Center, the first x86 Windows-based computer system to use firmware based on the Framework, Insyde Software's InsydeH2O. It still used BIOS to boot Windows.
In January 2006, Apple Inc. shipped its first Intel-based Macintosh computers. These systems use EFI and the Framework instead of Open Firmware, which had been used on its previous PowerPC-based systems.[15] On April 5, 2006, Apple first released Boot Camp, which produces a Windows drivers disk and a non-destructive partitioning tool to allow the installation of Windows XP or Vista without requiring a reinstallation of Mac OS X. A firmware update was also released that added BIOS support to its EFI implementation. Subsequent Macintosh models shipped with the newer firmware. All current Macintosh systems are also able to boot BIOS Operating Systems such as Windows XP and Vista. (With the exception of the Xserve platform)
The grand majority of Intel motherboards ship with Framework-based firmware. During 2005, more than one million Intel systems shipped with the Framework.[16] New mobile, desktop and server products, using the Framework, started shipping in 2006. For instance, all boards that use the Intel 945 chipset series use the Framework. Production firmware usually does not include EFI support, and instead uses BIOS.[17]
Since 2005, EFI has also been implemented on non-PC architectures, such as embedded systems based on XScale cores.[18]
The EDK includes an NT32 target, which allows EFI firmware and EFI applications to run within a Windows application. But no direct hardware access is allowed by EDK NT32. This means only a subset of EFI application and drivers can be executed at the EDK NT32 target.
In 2008, more x64 systems have adopted the UEFI technology. While many of these systems still only support booting the BIOS-based OSes via the Compatibility Support Module (CSM) (thus does not appear to the user that the system is UEFI based), other systems started to support booting UEFI-based OSes. For example, IBM x3450 server, MSI motherboards with ClickBIOS, all HP EliteBook Notebook and Tablet PCs, newer HP Compaq Notebook PCs (e.g., 6730b, 6735b, etc.).
In 2009, IBM ships System x machines (x3550 M2, x3650 M2, iDataPlex dx360 M2) and BladeCenter HS22 with UEFI support. Dell ships PowerEdge T610, R610, R710, M610, M710 servers with UEFI support. More commercially available systems are mentioned in a UEFI whitepaper.[19]
Most ASUS laptops released in 2010 have AMI Aptio UEFI bioses. They have a classical user interface. These bioses are larger than 1 MB in size compressed.
An operating system that supports being booted from a (U)EFI is called a (U)EFI-aware OS, defined by (U)EFI specification. Here the term booted from a (U)EFI means directly booting the system using a (U)EFI OS loader stored on any storage device. The default location for the OS loader is \EFI\BOOT\[architecture name]\boot[architecture name].efi, where the architecture name can be e.g. IA32, X64 or IA64. Some OS vendors may have their own OS loader. They may also change the default boot location.
EFI supports graphical menus and features, such as is implemented on Aptio or Great Wall UEFI.[27]
There are two graphics output protocols defined by EFI specifications. The first one is UGA, which stands for Universal Graphic Adapters. The second one is GOP, which stands for Graphic Output Protocol. The two are similar. UGA is only supported at EFI 1.1 or older specs. EFI does not define how a system should look. This depends fully on the implementation by BIOS vendors. Currently most EFI enabled machines only have a legacy BIOS-like UI.
EFI has been criticized for bringing more complexity to the system, without bringing significant advantages[1] and disabling fully open-source BIOS replacements like OpenBIOS and Coreboot.[28] It does not solve any of BIOS's long standing problems of requiring two different drivers - one for the BIOS and one for the operating System - for most hardware.[29] It is not clear why it is beneficial to have two completely different operating systems running concurrently and doing similar things, or why a new operating system has to be created from scratch.[29]
The Free Software Foundation has criticized Intel for pretending to open up their platform, and for preventing interoperability: "It won't run, and doesn't bring us any closer to a BIOS that does run. It is just a distraction."[13]
Note however that TianoCore or GNUFI can be ported as a payload of coreboot, to make a fully-free firmware based on EFI.