Skip to content
프로젝트

소개

An educational 32-bit linux-like Operating System, with public bachelor- and master-level course slides.

학습 및 교육

이 수치를 측정하는 방법

What you can do

  • ✅ Process management (fork, exec, wait, signals)
  • ✅ Memory management (paging, buddy system, slab allocator)
  • ✅ File systems (VFS, EXT2, procfs)
  • ✅ Device drivers (keyboard, ATA, RTC, video)

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

MentOS

Mentoring Operating System — an educational 32-bit Linux-like operating system

Learn the kernel. Understand the system. Shape it.

forthebadge forthebadge forthebadge

Core CI Ubuntu macOS Documentation

Compatibility Compiler Compatibility macOS Compatibility

📢 Note: The default branch is develop. Pull requests go there; main only ever receives release merges.


What is MentOS?

MentOS (Mentoring Operating System) is an open-source educational operating system designed for learning OS development. It provides a realistic yet understandable environment that follows Linux design patterns.

Why MentOS?

  • ✅ Follows Linux guidelines - Similar data structures and algorithms
  • ✅ Beginner-friendly - Well-documented, easy to understand
  • ✅ Fully functional - Real processes, filesystems, drivers, and syscalls
  • ✅ Fast to compile - Builds in seconds on modern hardware
  • ✅ Hands-on learning - Modify and extend real OS features

Quick Start

# Clone the repository
git clone https://github.com/mentos-team/MentOS.git
cd MentOS

# Build
mkdir build && cd build
cmake ..
make

# Create filesystem
make filesystem

# Run in QEMU
make qemu

Login: Use root or user (from filesystem/etc/passwd)

The build is freestanding: the kernel and the userspace programs are linked against the C library in lib/, and never against the host's. A host gcc that cannot produce a 32-bit hosted binary — no crti.o, no Scrt1.o — is not a problem here, and gcc-multilib is not a prerequisite.

📚 Documentation

All documentation is in the Wiki:

Getting Started

Understanding the Codebase

Development

Changing a subsystem

The wiki introduces the system; docs/maintainer/ is the reference for changing it. It lives in the repository so that it moves with the code, and it is written for whoever is about to touch a subsystem rather than for whoever is learning what it does.

Project Structure

mentos/
├── boot/              ← Bootloader (first code executed)
├── kernel/            ← Core OS (processes, memory, drivers, syscalls)
├── lib/               ← C library + system call wrappers
├── userspace/         ← User programs (40+) and tests (60+)
├── filesystem/        ← Root filesystem content (becomes rootfs.img)
├── iso/               ← GRUB boot configuration
├── scripts/           ← Test runners (run-qemu-test, tapview)
├── cmake/             ← Cross-toolchain file
├── docs/              ← Maintainer documentation
└── CMakeLists.txt     ← Build configuration

Features

  • ✅ Process management (fork, exec, wait, signals)
  • ✅ Memory management (paging, buddy system, slab allocator)
  • ✅ File systems (VFS, EXT2, procfs)
  • ✅ Device drivers (keyboard, ATA, RTC, video)
  • ✅ System calls (60+ POSIX-like syscalls)
  • ✅ IPC (semaphores, message queues, shared memory)
  • ✅ Multiple schedulers (RR, Priority, CFS, EDF, RM, AEDF)
  • ✅ User/group management (passwd, shadow, permissions)
  • ✅ Shell with pipes and job control
  • ✅ 40+ userspace programs (ls, cat, ps, etc.)
  • ✅ 60+ test programs

See Features for the complete list of implemented features and roadmap.

Debugging

# GDB debugging (two terminals needed)
make qemu-gdb          # Terminal 1: Start QEMU
gdb --command=gdb.run  # Terminal 2: Attach GDB

See the Debugging Guide for details.

Contributing

We welcome contributions! Please see the Contributing Guide.

Quick contribution steps

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Make your changes following our coding guidelines
  4. Commit using Conventional Commits: git commit -m "feature(scope): description"
  5. Push and open a Pull Request

Contributors

Project Manager: Enrico Fraccaroli

Developers: Alessandro Danese, Luigi Capogrosso, Mirco De Marchi, Andrea Cracco, Linda Sacchetto, Marco Berti, Daniele Nicoletti, Filippo Ziche, and many valuable contributors.

Credits

Parts of MentOS are inherited or inspired by DreamOS by Ivan Gualandri.

License

See LICENSE.md for details.


Happy hacking! 🎉

관련 프로젝트 살펴보기

불러오는 중…