Anonymous user
Limine Bare Bones: Difference between revisions
Jump to navigation
Jump to search
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,
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=
# Build limine
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-
# 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-
-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-
</source>
Line 415:
# Download the latest Limine binary release.
git clone https://github.com/limine-bootloader/limine.git --branch=
# Build limine
make -C limine
# Install the Limine BIOS stages onto the image.
./limine/limine bios-
# 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/
|