All Projects → RobertCsordas → arch-efiboot

RobertCsordas / arch-efiboot

Licence: other
Boot EFISTUB linux kernels on UEFI systems not supporting kernel command line

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to arch-efiboot

Docker To Linux
Make bootable Linux disk image abusing Docker
Stars: ✭ 257 (+634.29%)
Mutual labels:  linux-kernel, bootloader
uefi-elf-bootloader
UEFI ELF Bootloader example
Stars: ✭ 40 (+14.29%)
Mutual labels:  bootloader, uefi-boot
virtblkiosim
Virtual Linux block device driver for simulating and performing I/O.
Stars: ✭ 30 (-14.29%)
Mutual labels:  linux-kernel, arch-linux
linux-grsec
Arch Linux package for the Linux Kernel and modules with grsecurity/PaX patches.
Stars: ✭ 19 (-45.71%)
Mutual labels:  linux-kernel, arch-linux
novaboot
A tool that automates booting of operating systems on target hardware or in qemu
Stars: ✭ 32 (-8.57%)
Mutual labels:  linux-kernel, bootloader
apple-bce-arch
Arch Linux package for the Apple BCE driver required for T2-equipped devices.
Stars: ✭ 24 (-31.43%)
Mutual labels:  linux-kernel, arch-linux
Nintendo-Switch-JoyCon-Hack
Hardwiring a push button in a JoyCon to grant bootloader access
Stars: ✭ 44 (+25.71%)
Mutual labels:  bootloader
SuperShaper-SOHO
Packet filtering / QoS setup for typical home/small office
Stars: ✭ 14 (-60%)
Mutual labels:  linux-kernel
TravorOS
A simple OS running on Intel x86 architecture | No longer updating
Stars: ✭ 24 (-31.43%)
Mutual labels:  bootloader
kocherga
Robust platform-agnostic Cyphal/DroneCAN bootloader for deeply embedded systems
Stars: ✭ 21 (-40%)
Mutual labels:  bootloader
kbdashboard
Tool to configure, build and install multiple linux kernels.
Stars: ✭ 14 (-60%)
Mutual labels:  linux-kernel
XPS15-9560-Monterey
XPS15-9560-Catalina, Q群:161385229
Stars: ✭ 268 (+665.71%)
Mutual labels:  xps15
optiboot flash
Optiboot subtree for MightyCore, MegaCore, MiniCore and MajorCore
Stars: ✭ 48 (+37.14%)
Mutual labels:  bootloader
pacman-for-termux
Special configured pacman for termux.
Stars: ✭ 24 (-31.43%)
Mutual labels:  arch-linux
GAN-Project-2018
GAN in Tensorflow to be run via Linux command line
Stars: ✭ 21 (-40%)
Mutual labels:  linux-kernel
Sphinx-Dipper
Sphinx Custom Kernel for Mi 8 (Dipper)
Stars: ✭ 17 (-51.43%)
Mutual labels:  linux-kernel
linux kernel wiki
linux内核学习资料:200+经典内核文章,100+内核论文,50+内核项目,500+内核面试题,80+内核视频
Stars: ✭ 1,653 (+4622.86%)
Mutual labels:  linux-kernel
stoomboot
An x86 real mode multiboot-ish ELF bootloader
Stars: ✭ 19 (-45.71%)
Mutual labels:  bootloader
run qemu
A script to create bootable OS images, and run qemu with a locally built kernel.
Stars: ✭ 16 (-54.29%)
Mutual labels:  linux-kernel
HPS2FPGAmapping
SoCFPGA: Mapping HPS Peripherals, like I²C or CAN, over the FPGA fabric to FPGA I/O and using embedded Linux to control them (Intel Cyclone V)
Stars: ✭ 27 (-22.86%)
Mutual labels:  bootloader

EFI-bootable kernel image builder for Arch Linux

Linux supports EFISTUB booting, where the UEFI can load the kernel directly without any bootloader. This can be done by setting up the boot entries with efibootmgr command (https://wiki.archlinux.org/index.php/EFISTUB). The problem is that some systems (like Dell XPS laptops) doesn't support passing kernel command line arguments. This results in failing to boot.

This script builds single-file bootable efi modules, which includes the kernel, command line strings, initramfs and microcode.

EFISTUB booting should not have any negative consequences to anything (hibernation, power management, etc). For my Dell XPS 9560, everything works just fine.

How it works

Objcopy can be used to merge all the files in single bootable image. See https://wiki.archlinux.org/index.php/systemd-boot, section "Preparing kernels for /EFI/Linux" for more details. You do not have to use systemd-boot for this to work.

If you have multiple initrds (ucode and initramfs), then you have to concatenate them to a single file before embedding.

The problem remaining is that this manually builds the kernel, but does not run if you update. Here is where the pacman hooks come handy. It is possible to set up hooks for updating the kernels or the microcode and run the build script automatically (see kernel-update.hook).

How to install

AUR

Note: this method is only suited for systems with EFI partition mounted as /boot (as recommended in https://wiki.archlinux.org/index.php/EFI_system_partition) and with kernels installed there. For other setups, see manual installation instructions.

Install the AUR package.

Manual installation

Download the repository onto your system.

If your EFI partition is mounted as /boot and your kernels are installed there, run

sudo install.sh

If not, please edit build_kernel.sh and install it manually. You can do it by running

cp build_kernel.sh to /opt
mkdir -p /etc/pacman.d/hooks/
cp kernel-update.hook /etc/pacman.d/hooks

EFI boot entries

When completed, you can use efibootmgr to setup the boot item, or your BIOS settings might have an option to chose the file from the ESP partition (as with Dell XPS 9560). It works either way.

Custom command line parameters

By default, when you run the script, it extract your current kernel command line to /boot/cmdline.txt. Change it and rerun to include the new paramters. If the file exists, it will not overwrite it.

It is also possible to have different command lines for different kernels. You can do this by placing cmdline-.txt in your /boot folder, where the is the part after "vmlinuz-" of your kernel. For example for vmlinuz-linux it is cmdline-linux.txt, for vmlinuz-linux-lts it is cmdline-linux-lts.txt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].