Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
(Make PIE kernel)
mNo edit summary
Line 344: Line 344:


# The entry name that will be displayed in the boot menu.
# The entry name that will be displayed in the boot menu.
:myOS (KASLR off)
:myOS (KASLR on)
# We use the Limine boot protocol.
# We use the Limine boot protocol.
PROTOCOL=limine
PROTOCOL=limine

# Disable KASLR (it is enabled by default for relocatable kernels)
KASLR=no


# Path to the kernel to boot. boot:/// represents the partition on which limine.cfg is located.
# Path to the kernel to boot. boot:/// represents the partition on which limine.cfg is located.
KERNEL_PATH=boot:///myos.elf
KERNEL_PATH=boot:///myos.elf


# Same thing, but with KASLR.
# Same thing, but without KASLR.
:myOS (KASLR on)
:myOS (KASLR off)
PROTOCOL=limine
PROTOCOL=limine

# Disable KASLR (it is enabled by default for relocatable kernels)
KASLR=no


KERNEL_PATH=boot:///myos.elf
KERNEL_PATH=boot:///myos.elf
Line 393: Line 393:
# Create the EFI boot tree and copy Limine's EFI executables over.
# Create the EFI boot tree and copy Limine's EFI executables over.
mkdir -p iso_root/EFI/BOOT
mkdir -p iso_root/EFI/BOOT
cp -v limine/BOOT*.EFI iso_root/EFI/BOOT/
cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/
cp -v limine/BOOTIA32.EFI iso_root/EFI/BOOT/


# Create the bootable ISO.
# Create the bootable ISO.
Line 447: Line 448:
sudo mkdir -p img_mount/EFI/BOOT
sudo mkdir -p img_mount/EFI/BOOT
sudo cp -v myos.elf limine.cfg limine/limine-bios.sys img_mount/
sudo cp -v myos.elf limine.cfg limine/limine-bios.sys img_mount/
sudo cp -v limine/BOOT*.EFI img_mount/EFI/BOOT/
sudo cp -v limine/BOOTX64.EFI img_mount/EFI/BOOT/
sudo cp -v limine/BOOTIA32.EFI img_mount/EFI/BOOT/


# Sync system cache and unmount partition and loopback device.
# Sync system cache and unmount partition and loopback device.