Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
no edit summary
[unchecked revision][unchecked revision]
mNo edit summary
No edit summary
Line 39:
// See specification for further info.
 
static volatile LIMINE_BASE_REVISION(1);
 
// The Limine requests can be placed anywhere, but it is important that
// the compiler does not optimise them away, so, in Cusually, they should
// be made volatile or equivalent, _and_ they should be accessed at least
// NOT be made "static".
// once.
 
static volatile struct limine_framebuffer_request framebuffer_request = {
.id = LIMINE_FRAMEBUFFER_REQUEST,
.revision = 0
Line 364 ⟶ 365:
 
# Path to the kernel to boot. boot:/// represents the partition on which limine.cfg is located.
KERNEL_PATH=boot:///boot/myos
 
# Same thing, but without KASLR.
Line 373 ⟶ 374:
KASLR=no
 
KERNEL_PATH=boot:///boot/myos
</source>
 
Line 402 ⟶ 403:
git clone https://github.com/limine-bootloader/limine.git --branch=v7.x-binary --depth=1
 
# Build "limine" utility.
make -C limine
 
Line 409 ⟶ 410:
 
# Copy the relevant files over.
mkdir -p iso_root/boot
cp -v bin/myos limine.cfg limine/limine-bios.sys \
cp -v limine/limine-bios-cd.bin limine/limine-uefi-cd.binmyos iso_root/boot/
mkdir -p iso_root/boot/limine
cp -v bin/myos limine.cfg limine/limine-bios.sys limine/limine-bios-cd.bin \
limine/limine-uefi-cd.bin iso_root/boot/limine/
 
# Create the EFI boot tree and copy Limine's EFI executables over.
Line 418 ⟶ 422:
 
# Create the bootable ISO.
xorriso -as mkisofs -b boot/limine/limine-bios-cd.bin \
-no-emul-boot -boot-load-size 4 -boot-info-table \
--efi-boot boot/limine/limine-uefi-cd.bin \
-efi-boot-part --efi-boot-image --protective-msdos-label \
iso_root -o image.iso
Line 446 ⟶ 450:
git clone https://github.com/limine-bootloader/limine.git --branch=v7.x-binary --depth=1
 
# Build "limine" utility.
make -C limine
 
Line 455 ⟶ 459:
mformat -i image.hdd@@1M
 
# Make relevant subdirectories.
# Make /EFI and /EFI/BOOT an MSDOS subdirectory.
mmd -i image.hdd@@1M ::/EFI ::/EFI/BOOT ::/boot ::/boot/limine
 
# Copy over the relevant files.
mcopy -i image.hdd@@1M bin/myos limine.cfg limine/limine-bios.sys ::/boot
mcopy -i image.hdd@@1M limine.cfg limine/limine-bios.sys ::/boot/limine
mcopy -i image.hdd@@1M limine/BOOTX64.EFI ::/EFI/BOOT
mcopy -i image.hdd@@1M limine/BOOTIA32.EFI ::/EFI/BOOT
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu