limine update

This commit is contained in:
boreddevnl 2026-03-01 18:51:54 +01:00
parent 67640ec8db
commit 22dd21c580
14 changed files with 24 additions and 23 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -34,7 +34,7 @@ LDFLAGS = -m elf_x86_64 -nostdlib -static -pie --no-dynamic-linker \
NASMFLAGS = -f elf64
# Limine Version
LIMINE_VERSION = 7.0.0
LIMINE_VERSION = 10.8.2
LIMINE_URL_BASE = https://github.com/limine-bootloader/limine/raw/v$(LIMINE_VERSION)
.PHONY: all clean run limine-setup
@ -86,21 +86,21 @@ $(KERNEL_ELF): $(OBJ_FILES)
$(MAKE) -C $(SRC_DIR)/userland
# Create ISO
$(ISO_IMAGE): $(KERNEL_ELF) limine.cfg limine-setup
$(ISO_IMAGE): $(KERNEL_ELF) limine.conf limine-setup
rm -rf $(ISO_DIR)
mkdir -p $(ISO_DIR)
mkdir -p $(ISO_DIR)/EFI/BOOT
# Copy Kernel and Config
cp $(KERNEL_ELF) $(ISO_DIR)/
# Build ISO limine.cfg natively with modules
cp limine.cfg $(ISO_DIR)/
# Build ISO limine.conf natively with modules
cp limine.conf $(ISO_DIR)/
mkdir -p $(ISO_DIR)/bin
@for f in $(SRC_DIR)/userland/bin/*.elf; do \
if [ -f "$$f" ]; then \
basename=$$(basename "$$f"); \
cp "$$f" $(ISO_DIR)/bin/; \
echo " MODULE_PATH=boot:///bin/$$basename" >> $(ISO_DIR)/limine.cfg; \
echo " module_path: boot():/bin/$$basename" >> $(ISO_DIR)/limine.conf; \
fi \
done
@ -113,7 +113,7 @@ $(ISO_IMAGE): $(KERNEL_ELF) limine.cfg limine-setup
if [ -f "$$f" ]; then \
basename=$$(basename "$$f"); \
cp "$$f" $(ISO_DIR)/Library/images/Wallpapers/; \
echo " MODULE_PATH=boot:///Library/images/Wallpapers/$$basename" >> $(ISO_DIR)/limine.cfg; \
echo " module_path: boot():/Library/images/Wallpapers/$$basename" >> $(ISO_DIR)/limine.conf; \
fi \
done
@if [ -f splash.jpg ]; then cp splash.jpg $(ISO_DIR)/; fi

View file

@ -109,7 +109,7 @@ qemu-system-x86_64 -m 2G -serial stdio -cdrom boredos.iso -boot d
- `iso_root/` - ISO filesystem layout (generated during build)
- `limine/` - Limine bootloader files (downloaded automatically)
- `linker.ld` - Linker script for x86_64 ELF
- `limine.cfg` - Limine bootloader configuration
- `limine.conf` - Limine bootloader configuration
- `Makefile` - Build configuration and targets

Binary file not shown.

Binary file not shown.

Binary file not shown.

2
limine

@ -1 +1 @@
Subproject commit 36783ec43af4db4841a1e80770355fd1e98f091b
Subproject commit 38ff2c855aabb92e4cfa2cc7ef0c8af665ecba94

View file

@ -1,11 +0,0 @@
# Copyright (c) 2023-2026 Chris (boreddevnl)
# This software is released under the GNU General Public License v3.0. See LICENSE file for details.
# This header needs to maintain in any file it is present in, as per the GPL license terms.
TIMEOUT=3
TERM_PALETTE=ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff;ffffff
TERM_BACKGROUND=00000000
WALLPAPER=splash.jpg
:BoredOS
PROTOCOL=limine
KERNEL_PATH=boot:///boredos.elf

15
limine.conf Normal file
View file

@ -0,0 +1,15 @@
# Copyright (c) 2023-2026 Chris (boreddevnl)
# This software is released under the GNU General Public License v3.0. See LICENSE file for details.
# This header needs to maintain in any file it is present in, as per the GPL license terms.
timeout: 3
verbose: yes
${WALLPAPER_PATH}=boot():/splash.jpg
wallpaper: ${WALLPAPER_PATH}
wallpaper_style: centered
backdrop: 000000
/BoredOS
protocol: limine
path: boot():/boredos.elf

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -1997,7 +1997,7 @@ static void create_ramfs_files(void) {
"- `iso_root/` - ISO filesystem layout (generated during build)\n"
"- `limine/` - Limine bootloader files (downloaded automatically)\n"
"- `linker.ld` - Linker script for x86_64 ELF\n"
"- `limine.cfg` - Limine bootloader configuration\n"
"- `limine.conf` - Limine bootloader configuration\n"
"- `Makefile` - Build configuration and targets\n\n"
"## License\n\n"
"Copyright (C) 2024-2026 boreddevnl\n\n"

Binary file not shown.

View file

@ -177,9 +177,6 @@ void kmain(void) {
if (fh && fh->valid) {
int written = fat32_write(fh, mod->address, mod->size);
fat32_close(fh);
serial_write("[DEBUG] Module successfully copied to RAMFS. Written bytes: ");
serial_write_num(written);
serial_write("\n");
} else {
serial_write("[DEBUG] ERROR: Failed to create file in RAMFS for module: ");
serial_write(clean_path);