efi
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
efi [2012-11-04 13:23] – created jajcus | efi [2013-10-25 10:09] (current) – glen | ||
---|---|---|---|
Line 9: | Line 9: | ||
Requirements: | Requirements: | ||
- | * (U)EFI platform (e.g. an IBM xSeries server with recent firmware) | + | * (U)EFI platform (e.g. an IBM xSeries server with recent firmware |
* A disk with [[GUID Partition Table]] | * A disk with [[GUID Partition Table]] | ||
* EFI bootloader (e.g. GRUB2 built for EFI platform, ELILO or Xen or Linux kernel built as an EFI image) | * EFI bootloader (e.g. GRUB2 built for EFI platform, ELILO or Xen or Linux kernel built as an EFI image) | ||
Line 27: | Line 27: | ||
Not every boot loader is capable of booting from EFI firmware and it is not even necessary to use a dedicated boot loader to start Linux kernel. | Not every boot loader is capable of booting from EFI firmware and it is not even necessary to use a dedicated boot loader to start Linux kernel. | ||
- | The boot loaders with EFI support are: **ELILO** and **GRUB2**. ELILO needs the linux kernel and initrd images present on the EFI System Partition. GRUB2 can load them from a Linux file system (/boot partition, or even the root partition on LVM). | + | The boot loaders with EFI support are: **ELILO** and **GRUB2**. |
- | Recent Linux kernel can boot directly from EFI with no extra boot loader. See below. | + | === No bootloader === |
+ | |||
+ | Recent Linux kernel | ||
+ | |||
+ | === ELILO === | ||
+ | |||
+ | ELILO needs the linux kernel and initrd images present on the EFI System Partition. Specific paths and other options can be | ||
+ | configured in the ' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ELILO can also be used for network (PXE) boot from the EFI firmware. | ||
+ | |||
+ | === GRUB2 === | ||
+ | |||
+ | GRUB2 can load the kernel and initramfs file or any other image to boot from a Linux file system (/boot partition, or even the root partition on LVM). The GRUB core image is installed at the EFI system partition by the '' | ||
+ | |||
+ | To install GRUB2 bootloader for (U)EFI booting: | ||
+ | |||
+ | * install the **grub2** and **grub2-platform-efi** and **efibootmgr** packages. Most probably the x86_64 version of **grub2-platform-efi** package will be needed, as most modern EFI firmwares run 64-bit. | ||
+ | * make sure your EFI system partition is mounted at /boot/efi | ||
+ | * issue '' | ||
+ | |||
+ | If the '' | ||
+ | |||
+ | GRUB can also be used for network booting, but version 2.00-1 times out on large initramfs images (this makes PLD Rescue boot impossible). | ||
+ | |||
+ | === The default bootloader location === | ||
+ | |||
+ | Normally the EFI firmware holds a list of configured boot loaders, can present them as a list of boot options or try them automatically in a pre-defined order. This can be managed from Linux using the [[# | ||
+ | |||
+ | Unfortunately, | ||
==== EFI-compatible kernel ==== | ==== EFI-compatible kernel ==== | ||
Line 40: | Line 71: | ||
PLD Linux kernels have all those features enabled. | PLD Linux kernels have all those features enabled. | ||
+ | |||
+ | == Configuring standard PLD kernel boot == | ||
+ | |||
+ | To set up kernel boot via EFI with no other boot loader: | ||
+ | |||
+ | * install your kernel and make sure you have a valid ''/ | ||
+ | * install [[# | ||
+ | * update / | ||
+ | * run [[# | ||
=== Xen === | === Xen === | ||
Line 56: | Line 96: | ||
More information in the [[http:// | More information in the [[http:// | ||
+ | |||
+ | ===== efi-shell ===== | ||
+ | |||
+ | Instead of loading a boot loader and starting the operating system one may wish to enter the EFI shell. The EFI shell is often not | ||
+ | included in the system firmware and must be installed separately. For convenience, | ||
+ | |||
efi.1352031786.txt.gz · Last modified: 2012-11-04 13:23 by jajcus