8000 GitHub - gab4000/benos: Open-source 64-bit operating system.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gab4000/benos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BenOS - The Ben Operating System

BenOS is a small, hand-written, free and open-source 64-bit operating system.

What is BenOS?

BenOS is a small, hand-written, free and open-source 64-bit operating system still in active development. The goal of BenOS is not to become the new most used operating system in the world but to work. If it works, it is good.

Repository structure

This repository is very simple. It contains 3 branches:

  • Main (the last stable version)
  • Indev (the last unstable version)
  • Tofix (code that contains bugs that need to be fixed)

Every stable versions (and unstable versions since the 0.0.9-Indev1) can be downloaded as raw images (excepted after the 0.0.9-Indev2, which provides an ISO file) directly from the (releases)[https://github.com/thebenos/benos/releases].

Project structure

If the repository structure looks simple, the project structure is more complex.

  • boot/: this directory contains all the files required for the system to boot (excepted the GRUB configuration file, which is in iso/)
  • drivers/: this directory contains all the kernel drivers (used in the klibc or directly in the kernel)
  • iso/: this directory is used to make benos.iso. It contains grub.cfg
  • kernel/: this directory contains all the files directly related to the kernel
  • klibc/: this directory contains the headers of the klibc
  • klibdef/: this directory contains the source files of the klibc
  • build.sh: this file is used to compile BenOS and make benos.iso

Programming languages

BenOS uses the following programming languages:

  • x86_64 NASM
  • C
  • BASH

How to build it?

Building BenOS is a very simple process.

Before building

Make sure you have the following tools installed on your system:

  • gcc
  • nasm
  • ld
  • grub-mkrescue
  • grub-efi

Now we can build!

  1. Clone this repository:
git clone https://github.com/thebenos/benos
  1. Go into the BenOS directory:
cd benos
  1. Go inside the scripts/ folder:
cd scripts
  1. Execute the build script:
chmod +x build.sh
./build.sh

Congratulations! benos.iso should appear!

How to run it?

BenOS has not been tried on real hardware!

You can run BenOS in an emulator. In this example, we will use qemu (from scripts/).

qemu-system-x86_64 -m 512 -cdrom ../benos.iso -bios /usr/share/OVMF/OVMF_CODE.fd

How to contribute?

If you want to contribute to the project, please read CONTRIBUTING.md first!

About

Open-source 64-bit operating system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 71.1%
  • Shell 15.5%
  • Linker Script 7.2%
  • Assembly 6.2%
0