Hobby kernel + userspace, built mostly from scratch. Composited GUI, dynamically linked ELF binaries, networking, Python applications, and more. https://toaruos.org/
|K. Lange 7609912b03 v1.99.4||1 year ago|
|.github||1 year ago|
|apps||1 year ago|
|base||1 year ago|
|boot||1 year ago|
|build||1 year ago|
|kernel||1 year ago|
|kuroko @ 9435cbf442||1 year ago|
|lib||1 year ago|
|libc||1 year ago|
|linker||1 year ago|
|modules||1 year ago|
|util||1 year ago|
|.gitignore||1 year ago|
|.gitmodules||1 year ago|
|AUTHORS||3 years ago|
|LICENSE||1 year ago|
|Makefile||1 year ago|
|README.md||1 year ago|
ToaruOS is a "complete" operating system for x86-64 PCs with plans for ports to other platforms.
While many independent, hobby, and research OSes aim to experiment with new designs, ToaruOS is intended as an educational resource, providing a representative microcosm of functionality found in major desktop operating systems.
The OS includes a kernel, bootloader, dynamic shared object linker, C standard library, its own composited windowing system, a dynamic bytecode-compiled programming language, advanced code editor, and dozens of other utilities and example applications.
There are no external runtime dependencies and all required source code, totalling roughly 80,000 lines of (primarily) C, is included in this repository, save for Kuroko, which lives separately.
ToaruOS has been in development for over ten years, and the goals of the project have changed through out its life time.
When it was initiated in December 2010, the OS was a personal project, and its focus was on the individual learning of its author.
With time, ToaruOS's relatively advanced graphical interface and other features have inspired new hobby OSes, and the goals of the project shifted towards providing a reliable learning resource.
From its initial release through the middle of 2018, ToaruOS's userspace was built on top of the Newlib C standard library implementation as well as various third-party libraries such as Cairo and Freetype.
Since the release of 1.6.x, all third-pary runtime dependencies have been removed or replaced, and ToaruOS has been entirely "in-house".
In April 2021, work began on ToaruOS 2.0, which brings a rewritten kernel for x86-64 (and potentially other architectures) and support for SMP. The new "Misaka" kernel was merged upstream at the end of May.
dlopening of additional libraries.
The following projects are currently in progress:
General users hoping to build ToaruOS from source are recommended to use our prebuilt Docker image, which contains all the necessary tools:
git clone --recursive https://github.com/klange/toaruos cd toaruos docker pull toaruos/build-tools:1.99.x docker run -v `pwd`:/root/misaka -w /root/misaka -e LANG=C.UTF-8 -t toaruos/build-tools:1.99.x util/build-in-docker.sh
After building like this, you can run the various utility targets (
make run, etc.). Try
make shell to run a ToaruOS shell using a serial port with QEMU.
Makefile uses a Kuroko tool,
auto-dep.krk, to generate additional Makefiles for the userspace applications and libraries, automatically resolving dependencies based on
In an indeterminate order, the C library, kernel, userspace librares and applications are built, combined into a compressed archive for use as a ramdisk, and then packaged into an ISO9660 filesystem image.
base/usr/include, as well as graphical resources for the compositor and window decorator.
qemu-system-x86_64 -M q35 -enable-kvm -m 1G -soundhw ac97 -cdrom image.iso
The legacy BIOS loader has been tested in VirtualBox and VMWare. For both, set up a virtual machine with an "Other (64-bit)" guest OS and attach the CD image. A least 32MB of display memory and 1GB of RAM are recommended. Some hardware configurations may not be supported.
For testing with EFI systems or on real hardware, GRUB is recommended until the native EFI loader is rewritten.
ToaruOS is regularly mirrored to multiple Git hosting sites.
#toaruos on Libera (
Currently, in the development of ToaruOS 2.0, self-hosting builds have not been tested and some utilities may be missing.
Previously, with a capable compiler toolchain, ToaruOS 1.x was able to build its own kernel, userspace, libraries, and bootloader, and turn these into a working ISO CD image.
ToaruOS is not currently capable of building most of its ports, due to a lack of a proper POSIX shell and Make implementation. These are eventual goals of the project.
ToaruOS is a completely independent project, and all code in this repository - which is the entire codebase of the operating system, including its kernel, bootloaders, libraries, and applications - is original, written by the ToaruOS developers over the course of eight years. The complete source history, going back to when ToaruOS was nothing more than a baremetal "hello world" can be tracked through this git repository.
ToaruOS has taken inspiration from Linux in its choice of binary formats, filesystems, and its approach to kernel modules, but is not derived in any way from Linux code. ToaruOS's userspace is also influenced by the GNU utilities, but does not incorporate any GNU code.