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 |
:myOS (KASLR on) |
||
# We use the Limine boot protocol. |
# We use the Limine boot protocol. |
||
PROTOCOL=limine |
PROTOCOL=limine |
||
⚫ | |||
⚫ | |||
# 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 |
# Same thing, but without KASLR. |
||
:myOS (KASLR |
:myOS (KASLR off) |
||
PROTOCOL=limine |
PROTOCOL=limine |
||
⚫ | |||
⚫ | |||
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/ |
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/ |
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. |