SilverRainZ / Os67
Licence: gpl-3.0
An unix-like toy kernel
Stars: ✭ 531
Programming Languages
c
50402 projects - #5 most used programming language
Projects that are alternatives of or similar to Os67
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
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
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
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
Cardinal
Operating system designed to be fast and secure.
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)
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 inMakefile
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
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
- MIT 6.828 xv6
- xv6 中文文档
- Bran's Kernel Developments Toturial
- Bran's Kernel Developments Toturial - 译言网
- wiki.osdev.org
- hurlex-doc
- fleurix
- Minix File System - Dr.John C.S.Lui
- 《Linux 内核完全注释》
- 《30天自制操作系统》
- 《Orange's 一个操作系统的实现》
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].