Limine Bare Bones: Difference between revisions

Misc updates for Limine 5.x
[unchecked revision][unchecked revision]
mNo edit summary
(Misc updates for Limine 5.x)
Line 7:
It provides cutting edge features such as 5-level paging support, 64-bit [[Long Mode]] support, and direct higher half kernel loading.
 
The Limine boot protocol is firmware and architecture agnostic. The Limine bootloader supports x86-64, IA32IA-32, aarch64, and aarch64riscv64.
 
This article will demonstrate how to write a small x86-64 higher half Limine-compliant kernel in [[C]], and boot it using the [[Limine]] bootloader.
Line 368:
<source lang="bash">
# Download the latest Limine binary release.
git clone https://github.com/limine-bootloader/limine.git --branch=v4v5.x-branch-binary --depth=1
 
# Build limine-deploy utility.
make -C limine
 
Line 377:
 
# Copy the relevant files over.
cp -v myos.elf limine.cfg limine/limine-bios.sys \
limine/limine-bios-cd.bin limine/limine-cduefi-eficd.bin iso_root/
 
# Create the EFI boot tree and copy Limine's EFI executables over.
Line 385:
 
# Create the bootable ISO.
xorriso -as mkisofs -b limine-bios-cd.bin \
-no-emul-boot -boot-load-size 4 -boot-info-table \
--efi-boot limine-cduefi-eficd.bin \
-efi-boot-part --efi-boot-image --protective-msdos-label \
iso_root -o image.iso
 
# Install Limine stage 1 and 2 for legacy BIOS boot.
./limine/limine bios-deployinstall image.iso
</source>
 
Line 415:
 
# Download the latest Limine binary release.
git clone https://github.com/limine-bootloader/limine.git --branch=v4v5.x-branch-binary --depth=1
 
# Build limine-deploy utility.
make -C limine
 
# Install the Limine BIOS stages onto the image.
./limine/limine bios-deployinstall image.hdd
 
# Mount the loopback device.
Line 435:
# Copy the relevant files over.
sudo mkdir -p img_mount/EFI/BOOT
sudo cp -v myos.elf limine.cfg limine/limine-bios.sys img_mount/
sudo cp -v limine/BOOT*.EFI img_mount/EFI/BOOT/
 
Anonymous user