All Projects → 29jm → Snowflakeos

29jm / Snowflakeos

Licence: mit
"It is very special"

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Snowflakeos

LudOS
A toy monolithic kernel written in C++
Stars: ✭ 38 (-80%)
Mutual labels:  kernel, os, osdev
Cyjon
A simple, clean code, multi-tasking operating system written in pure assembly language for 64-bit processors from the AMD64 family.
Stars: ✭ 184 (-3.16%)
Mutual labels:  kernel, os, osdev
Toaruos
A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
Stars: ✭ 4,687 (+2366.84%)
Mutual labels:  kernel, os, osdev
MandelbrotOS
A community driven OS by the youth
Stars: ✭ 172 (-9.47%)
Mutual labels:  kernel, os, osdev
Dennix
Dennix is a unix-like hobbyist operating system written from scratch.
Stars: ✭ 53 (-72.11%)
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 (-87.89%)
Mutual labels:  kernel, os, osdev
Reactos
A free Windows-compatible Operating System
Stars: ✭ 10,216 (+5276.84%)
Mutual labels:  kernel, os, osdev
KnutOS
An x86_64 hobbyist OS written in C and Assembly
Stars: ✭ 16 (-91.58%)
Mutual labels:  kernel, os, osdev
Os2
x86_64 OS kernel with completely async userspace and single address space [WIP; but basic kernel functionality implemented]
Stars: ✭ 25 (-86.84%)
Mutual labels:  kernel, os, osdev
Os67
An unix-like toy kernel
Stars: ✭ 531 (+179.47%)
Mutual labels:  kernel, os, osdev
Monkos
an experimental 64-bit operating system
Stars: ✭ 100 (-47.37%)
Mutual labels:  kernel, os, osdev
Unikraft
Unikraft is an automated system for building specialized POSIX-compliant OSes known as unikernels. (Core repository)
Stars: ✭ 183 (-3.68%)
Mutual labels:  kernel, os, osdev
nightingale
A small operating system where I experiment and learn osdev.
Stars: ✭ 86 (-54.74%)
Mutual labels:  kernel, os, osdev
Tofita
🍬 All-new kernel for @GreenteaOS
Stars: ✭ 112 (-41.05%)
Mutual labels:  kernel, os, osdev
Sigma
Abandoned overcomplicated Microkernel using modern x86_64 features
Stars: ✭ 36 (-81.05%)
Mutual labels:  kernel, os, osdev
Wingos
a little 64bit operating system written in c++ with smp support
Stars: ✭ 361 (+90%)
Mutual labels:  kernel, os, osdev
os
x86-64 assembly µkernel
Stars: ✭ 15 (-92.11%)
Mutual labels:  kernel, os, osdev
poplar
Microkernel and userspace written in Rust exploring modern ideas
Stars: ✭ 217 (+14.21%)
Mutual labels:  kernel, os, osdev
Aquila
AquilaOS: UNIX-like Operating System
Stars: ✭ 413 (+117.37%)
Mutual labels:  kernel, os, osdev
Toaru Nih
NOTICE: The ToaruOS-NIH Project has been MERGED UPSTREAM. This repository is now archived.
Stars: ✭ 66 (-65.26%)
Mutual labels:  kernel, os, osdev

SnowflakeOS

A picture is worth, like, a few words

A hobby OS to help me learn about kernel stuff, to eventually get into linux kernel developement. Currently it supports:

  • booting in higher half
  • paging
  • memory management
  • handling IRQs
  • 80x25 text mode
  • serial output
  • PS/2 keyboard
  • PS/2 mouse
  • PIC timer
  • usermode process loading
  • preemptive multitasking
  • VBE graphics
  • window management
  • custom GUI toolkit
  • ext2 support

I aim to make the code readable and well-organized. A blog follows the development of this project, here https://jmnl.xyz/, and the wiki provides more information about the project and its internals.

Building & running

Dependencies

Install the following packages:

  • xorriso for Debian/Ubuntu; libisoburn on Archlinux
  • grub
  • mtools
  • imagemagick
  • qemu (recommended)
  • bochs (optional)
  • clang + development packages, e.g. base-devel on Archlinux (optional)

Cross-compiler

Building your own

Run

make toolchain

to build the cross-compiler needed to compile SnowflakeOS. This command will download and run build scripts for gcc and binutils from GNU FTP servers, and install the cross-compiler in toolchain/compiler.

Using clang directly

Instead of building your own toolchain, you can compile SnowflakeOS with your system's clang: simply uncomment the following group of lines in the main Makefile:

# CC=clang
# LD=ld
# AR=ar
# AS=as
# CFLAGS+=-target i386-pc-none-eabi -m32
# CFLAGS+=-mno-mmx -mno-sse -mno-sse2

Using a preinstalled cross-compiler

If your distro provides you with a cross compiler, you may want to save time and use it. To do so, you must edit the following variables in the main Makefile so that they match the executables of your cross compiler:

AR=$(HOST)-ar
AS=$(HOST)-as
LD=$(HOST)-ld
CC=$(HOST)-gcc --sysroot=$(SYSROOT) -isystem=/$(INCLUDEDIR)

You may edit HOST, or hardcode the executables names directly.

Running SnowflakeOS

Run either

make qemu # or
make bochs

to test SnowflakeOS in a VM. See the edit/debug cycle for more options on how to compile and run SnowflakeOS.

Testing this project on real hardware is possible. You can copy SnowflakeOS.iso to an usb drive using dd, like you would when making a live usb of another OS, and boot it directly.
Note that this is rarely ever tested, who knows what it'll do :) I'd love to hear about it if you try this, on which hardware, etc...

Contributing

Contributions are most welcome, in any form! Consult CONTRIBUTING.md and this project's wiki for guidance.

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].