Fancier limine and WAY faster boot

This commit is contained in:
boreddevnl 2026-02-26 22:11:46 +01:00
parent 34ceff4290
commit a34aaa1070
8 changed files with 16 additions and 9 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored
View file

@ -21,3 +21,5 @@ limine 2/limine.exe
boredos.dump boredos.dump
qemu-debug.log qemu-debug.log
build/ build/
iso_root/
limine

View file

@ -108,6 +108,7 @@ $(ISO_IMAGE): $(KERNEL_ELF) limine.conf limine-setup
# Copy Wallpaper (if it exists) # Copy Wallpaper (if it exists)
@if [ -f src/kernel/wallpaper.ppm ]; then cp src/kernel/wallpaper.ppm $(ISO_DIR)/; fi @if [ -f src/kernel/wallpaper.ppm ]; then cp src/kernel/wallpaper.ppm $(ISO_DIR)/; fi
@if [ -f splash.jpg ]; then cp splash.jpg $(ISO_DIR)/; fi
# Copy Limine Bootloader Files (flat structure in binary branch) # Copy Limine Bootloader Files (flat structure in binary branch)
cp limine/limine-bios.sys $(ISO_DIR)/ cp limine/limine-bios.sys $(ISO_DIR)/

BIN
boredos.iso Normal file

Binary file not shown.

BIN
disk.img

Binary file not shown.

View file

@ -1,7 +1,13 @@
timeout: 3 timeout: 3
# Graphics mode and Splash screen
term_palette: ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff
term_background: #00000000
# Hide terminal by placing it out of view or making it very small initially if possible,
# but Limine's wallapper will be the main background.
wallpaper: boot():/splash.jpg
/BoredOS /BoredOS
protocol: limine protocol: limine
kernel_path: boot():/boredos.elf kernel_path: boot():/boredos.elf
#resolution: 1280x720

View file

@ -15,6 +15,12 @@ SECTIONS
*(.rodata*) *(.rodata*)
} }
.requests : {
KEEP(*(.requests_start))
KEEP(*(.requests))
KEEP(*(.requests_end))
}
.data : { .data : {
*(.data*) *(.data*)
} }
@ -24,14 +30,6 @@ SECTIONS
*(.bss*) *(.bss*)
} }
/* Limine requests section */
.requests : {
KEEP(*(.requests_start))
KEEP(*(.requests))
KEEP(*(.requests_end))
}
/* Discard unnecessary sections */
/DISCARD/ : { /DISCARD/ : {
*(.eh_frame) *(.eh_frame)
*(.note .note.*) *(.note .note.*)

BIN
splash.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB