mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
1.5 KiB
1.5 KiB
CLeonOS Stage7
Stage Goal
- Add user-space foundation under
/cleonos/with C + Rust mixed development. - Build first ELF app set:
/shell/shell.elf,/system/elfrunner.elf,/system/memc.elf. - Add user syscall wrapper (
int 0x80) and minimal user runtime entry (_start). - Integrate user ELF packaging into ramdisk build pipeline.
Acceptance Criteria
- Kernel boots and prints
CLEONOS STAGE7 START. - FS and userland framework initialize without panic.
- Kernel logs
USERLAND FRAMEWORK ONLINE. - Kernel can probe and inspect all required ELF files:
/shell/shell.elf/system/elfrunner.elf/system/memc.elf
make userappsoutputs 3 ELF files andmake isopacks them into ramdisk.
Build Targets
make setupmake userappsmake 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
missing tool: rustcinmake setup:- Install Rust toolchain or set
RUSTCto valid executable path.
- Install Rust toolchain or set
- User ELF linking fails:
- Verify
USER_CC,USER_LD, andcleonos/c/user.ldare valid.
- Verify
USERLAND INIT FAILEDat boot:- Confirm ramdisk contains
shell.elf,elfrunner.elf,memc.elfin expected directories.
- Confirm ramdisk contains
ELF INSPECT FAILEDon user files:- Ensure built apps are ELF64 and not stripped into unsupported format.
- Ramdisk missing user apps:
- Run
make userappsthenmake iso; check staging pathbuild/x86_64/ramdisk_root.
- Run