Skip to content

Binux is an Operating System Kernel based on POSIX principles and based some components slightly on the first version of Linux

License

Notifications You must be signed in to change notification settings

Juoelenis/Binux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5

Binux

Binux is a minimal, POSIX-compliant operating system kernel written from scratch in C and Assembly. It aims to provide a simple and educational platform for understanding OS design, with a basic terminal interface and support for core POSIX syscalls.

Features

  • VT102-compatible terminal interface
  • Basic POSIX syscalls (read, write, open, close, execve, etc.)
  • Kernel trap and exception handling
  • Bootloader for switching to protected mode
  • Simple userland process initialization

Requirements

  • GCC (C compiler)
  • Binutils (for linking/assembly)
  • QEMU or VirtualBox (for running Binux)
  • Make

How to Compile

  1. Clone the repository:

    git clone https://github.com/Juoelenis/Binux.git
    cd Binux
  2. Build the kernel and boot image:

    make

    This will compile the kernel and produce a bootable image (e.g., binux.img).

How to Run Binux

Using QEMU

qemu-system-i386 -drive file=binux.img,format=raw

Or, if your build produces a floppy/ISO image:

qemu-system-i386 -fda binux.img

Using VirtualBox

  1. Create a new VM (choose "Other" or "Linux (32-bit)").
  2. Add a new virtual hard disk and attach binux.img as a virtual floppy or hard disk.
  3. Start the VM.

Notes

  • Binux is not a Linux distribution or a userland application. It's a standalone kernel intended for learning, hacking, and experimentation.
  • You may need to provide your own userland programs for full shell/coreutils functionality.
  • For development, Ubuntu 16.04 or newer is recommended as a build environment.

License

MIT

About

Binux is an Operating System Kernel based on POSIX principles and based some components slightly on the first version of Linux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published