- Sector 0 : Protective MBR with BIOS Boot Code(Limine Stage 1 ),
- Sector 1 : GPT header,
- Sector 2: Partition Entries,
- ....
- Sector 32: Partition Entries,
- Sector 33: Is this place for Limine Stage 2 Bootloader code?
- ...
- Sector 2048: Fat32 File System ,
- limine-bios-cd.bin, limine-bios.sys, limine-uefi-cd.bin, kernel.bin, limine.conf, user_main.elf, BOOTX64.EFI
- Sector n-33 : Backup Partition Entry,
- ......,
- Sector n-2: Backup Partition Entry,
- Sector n-1: Backup GPT Header
Fat filesystem have following files and directories,
Code: Select all
.
├── BOOT.CAT
├── EFI
│ └── BOOT
│ ├
│ └── BOOTX64.EFI
└── boot
├── boot_loader_wallpaper.bmp
├── kernel.bin
├── limine
│ ├── limine-bios-cd.bin
│ ├── limine-bios.sys
│ └── limine-uefi-cd.bin
├── limine.conf
└── user_main.elf
I also have seen compiled limine-9.2.3 have following files:
Code: Select all
.
├── BOOTAA64.EFI
├── BOOTIA32.EFI
├── BOOTLOONGARCH64.EFI
├── BOOTRISCV64.EFI
├── BOOTX64.EFI
├── LICENSE
├── Makefile
├── install-sh
├── limine
├── limine-bios-cd.bin
├── limine-bios-hdd.h
├── limine-bios-pxe.bin
├── limine-bios.sys
├── limine-uefi-cd.bin
├── limine.conf
├── limine.exe
└── limine.h
Code: Select all
bool kebla_disk_read(int disk_no, uint64_t lba, uint32_t count, void* buf);
bool kebla_disk_write(int disk_no, uint64_t lba, uint32_t count, void* buf);
My Code is installer.c
output:
Code: Select all
Checking if KeblaOS is installed on disk 1...
Successfully Disk initialization in Disk 1
Successfully Disk initialization in Disk 0
Successfully initialized VFS in Disk 0
Successfully initialized VFS in Disk 1
Disk 0 Status ok
Disk 1 Status ok
✓ Protective MBR found
✓ GPT header found
✓ FAT32 filesystem mounted successfully
✓ Found: 1:/boot.cat (2048 bytes)
✓ Found: 1:/boot/limine/limine_bios_cd.bin (22528 bytes)
✓ Found: 1:/boot/limine/limine_bios_hdd.sys (211588 bytes)
✓ Found: 1:/boot/limine/limine_uefi_cd.bin (2949120 bytes)
✓ Found: 1:/boot/boot_loader_wallpaper.bmp (9830538 bytes)
✓ Found: 1:/boot/kernel.bin (969048 bytes)
✓ Found: 1:/boot/limine.conf (714 bytes)
✓ Found: 1:/boot/user_main.elf (457488 bytes)
✓ Found: 1:/efi/boot/bootx64.efi (245760 bytes)
✅ KeblaOS installation verified successfully on disk 1
KeblaOS is already installed on Disk 0.
I have following questions
- Q1: Does "const uint8_t binary_limine_hdd_bin_data[]" array have Stage 1 & Stage 2 Code what present in limine-bios-hdd.h file?
- Q2: What is functionality of "limine-bios.sys"?
- Q3: If Sector 33 have Limine Stage 2 Code then where it should be mentioned I mean how does limine stage 1 boot loader or anything know sector 33 have the stage 2 code?
- Q4: If Only UEFI boot then just have bootx64.efi in efi/boot is sufficient ?

