mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 10:40:00 +00:00
1.4 KiB
1.4 KiB
CLeonOS Stage6
Stage Goal
- Add ramdisk filesystem foundation in CLKS based on the Limine module.
- Parse tar-format ramdisk and build hierarchical directory/file nodes.
- Provide VFS-style path interfaces for stat/read/list operations.
- Enforce required root layout:
/system,/shell,/temp,/driver.
Acceptance Criteria
- Kernel boots and prints
CLEONOS STAGE6 START. - Filesystem logs
RAMDISK VFS ONLINEand node/file statistics. - Root layout validation reports
/SYSTEM /SHELL /TEMP /DRIVER OK. clks_fs_count_children("/")returns non-zero and is logged.- Kernel continues to scheduler/ELF/syscall/interrupt init without panic.
Build Targets
make setupmake isomake runmake debug
QEMU Command
qemu-system-x86_64 -M q35 -m 1024M -cdrom build/CLeonOS-x86_64.iso -serial stdio
Common Bugs and Debugging
NO RAMDISK MODULE FROM LIMINE:- Verify
module_path: boot():/boot/cleonos_ramdisk.tarexists inconfigs/limine.conf.
- Verify
RAMDISK TAR PARSE FAILED:- Ensure ramdisk is packed as tar (
make ramdisk) and module size is not zero.
- Ensure ramdisk is packed as tar (
MISSING REQUIRED DIRECTORY:- Confirm ramdisk root contains
/system,/shell,/temp,/driver.
- Confirm ramdisk root contains
- Filesystem APIs always fail:
- Check
clks_fs_init()is called andclks_fs_is_ready()is true.
- Check
- Build failure on new symbols:
- Confirm
ramdisk.candfs.care present inC_SOURCES.
- Confirm