All Projects → SilverRainZ → Os67

SilverRainZ / Os67

Licence: gpl-3.0
An unix-like toy kernel

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Os67

Aquila
AquilaOS: UNIX-like Operating System
Stars: ✭ 413 (-22.22%)
Mutual labels:  kernel, os, osdev
poplar
Microkernel and userspace written in Rust exploring modern ideas
Stars: ✭ 217 (-59.13%)
Mutual labels:  kernel, os, osdev
beeos
A simple "Unix-like" kernel trying to be POSIX compliant
Stars: ✭ 103 (-80.6%)
Mutual labels:  kernel, os, osdev
duckOS
Yet another hobby x86 UNIX-like operating system written in C and C++. Features a dynamically linked userspace, an in-house c standard library, and more! And yes, it runs DOOM.
Stars: ✭ 250 (-52.92%)
Mutual labels:  kernel, os, osdev
MandelbrotOS
A community driven OS by the youth
Stars: ✭ 172 (-67.61%)
Mutual labels:  kernel, os, osdev
DentOS
Experimental Stand-alone 32-bit Kernel with Bootloader written in AT&T Assembly and Freestanding C
Stars: ✭ 32 (-93.97%)
Mutual labels:  kernel, os, osdev
os
x86-64 assembly µkernel
Stars: ✭ 15 (-97.18%)
Mutual labels:  kernel, os, osdev
SynapseOS
SynapseOS - модульная операционная система на языке C.
Stars: ✭ 93 (-82.49%)
Mutual labels:  kernel, os, osdev
nightingale
A small operating system where I experiment and learn osdev.
Stars: ✭ 86 (-83.8%)
Mutual labels:  kernel, os, osdev
Sigma
Abandoned overcomplicated Microkernel using modern x86_64 features
Stars: ✭ 36 (-93.22%)
Mutual labels:  kernel, os, osdev
SnowFlake
Technology is free, SnowFlakeOS
Stars: ✭ 38 (-92.84%)
Mutual labels:  kernel, os, osdev
Wingos
a little 64bit operating system written in c++ with smp support
Stars: ✭ 361 (-32.02%)
Mutual labels:  kernel, os, osdev
Macaron
A sweet hobby made operating system written in C++ for x86 CPUs with GUI
Stars: ✭ 34 (-93.6%)
Mutual labels:  kernel, os, osdev
LudOS
A toy monolithic kernel written in C++
Stars: ✭ 38 (-92.84%)
Mutual labels:  kernel, os, osdev
biefircate
Running x86-16 or x86-32 code from x86-64 UEFI; _very experimental_ • mirror of https://gitlab.com/tkchia/biefircate • developer notes at https://gitlab.com/tkchia/biefircate/-/blob/main/doc/NOTES.asciidoc
Stars: ✭ 47 (-91.15%)
Mutual labels:  kernel, os, osdev
kernel
Main kernel tree
Stars: ✭ 28 (-94.73%)
Mutual labels:  kernel, os, osdev
Cardinal
Operating system designed to be fast and secure.
Stars: ✭ 20 (-96.23%)
Mutual labels:  kernel, os, osdev
chaos-2
A hand-made SMP-aware kernel
Stars: ✭ 20 (-96.23%)
Mutual labels:  kernel, os, osdev
KnutOS
An x86_64 hobbyist OS written in C and Assembly
Stars: ✭ 16 (-96.99%)
Mutual labels:  kernel, os, osdev
RocketOS
RocketOS is a Unix based OS that uses legacy BIOS and GRUB and is written in C17. It is being developed for educational purposes primarily, but it still is a serious project. It is currently in its infancy.
Stars: ✭ 23 (-95.67%)
Mutual labels:  kernel, os, osdev

OS67

OS67 is a unix-like toy kernel, which comes with some user routines. (x86 based)

OS67

Build requirements

Platform: Linux

  • gnu make
  • nasm
  • gcc
  • binutils(ld, objcopy)
  • mkfs
  • bochs 2.6.7+

How to compile

git clone https://github.com/SilverRainZ/OS67.git
cd OS67
make init   # only for first time
make fs     # build root file system and user routines, root privilege required
make        # build kernel
make run    # run with bochs

Syscalls list

int _fork();
int _exit();
int _wait();
int _pipe(int *fd);
int _read(int fd, char *addr, uint32_t n);
int _kill(int pid);
int _exec(char *path, char **argv);
int _fstat(int fd, struct stat *stat);
int _chdir(char *path);
int _dup(int fd);
int _getpid();
int _sleep(uint32_t sec);
int _uptime();
int _open(char *path, uint32_t mode);
int _write(int fd, char *addr, uint32_t n);
int _mknod(char *path, uint32_t di);
int _unlink(char *path);
int _link(char *old, char *new);
int _mkdir(char *path);
int _close(int fd);

User routines list

  • sh: a simple shell, support IO redirect and pipe
  • ls: list files
  • cat: read from stdin and send it to stdout
  • mkdir: make directory
  • rm: remove file
  • ...

Write youself a user routine

  • add a new file in usr/: touch usr/newroutine.c
  • add a new value to UPROGS variable in Makefile as follow:
- UPROGS =  bin/cinit bin/sh bin/cat bin/ls bin/mkdir bin/rm
+ UPROGS =  bin/cinit bin/sh bin/cat bin/ls bin/mkdir bin/rm bin/newroutine
  • in newroutine.c you can use these header files:
    • usys.h: system call interfaces
    • uio.h: basic input output functions
    • string.h: basic string operate functions
  • make fs && make run then you can run your user routine

Bug report

See Issues · SilverRainZ/OS67

Please paste the kernel logs in the issue.

Uncomment macro __LOG_ON as follow to enable logging of specific file:

- // #define __LOG_ON 1
+ #define __LOG_ON 1

License

GNU General Public License Version 3

References

Thanks to

Just for fun.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].