Hobby kernel + userspace, built mostly from scratch. Composited GUI, dynamically linked ELF binaries, networking, Python applications, and more. https://toaruos.org/
|K. Lange 6c0be3b5fa terminal: Fix behavior of newline at right gutter||4 years ago|
|apps||4 years ago|
|base||4 years ago|
|boot||4 years ago|
|ext||4 years ago|
|kernel||4 years ago|
|lib||4 years ago|
|libc||4 years ago|
|linker||4 years ago|
|modules||4 years ago|
|util||4 years ago|
|.gitignore||4 years ago|
|AUTHORS||4 years ago|
|LICENSE||4 years ago|
|Makefile||4 years ago|
|README.md||4 years ago|
ToaruOS-NIH has been merged. Some re-porting is still in progress, so not all functionality from ToaruOS 1.2.x is available yet.
ToaruOS a complete hobby operating system built from scratch. Its bootloader, kernel, modules, C library, and userspace applications and libraries are all written by the ToaruOS development team and direct contributors.
ToaruOS comes with a graphical desktop environment with a compositing window manager, a featureful terminal emulator, a shell, several command-line tools, a text editor (with syntax highlighting), a dynamic loader, and can host Python 3.6 (which is included in pre-built CD releases). The kernel and included drivers support ATA hard disks and CD drives, ext2 filesystems, ISO 9660 filesystems, PS/2 mice and keyboards, RS232 serial, Intel e1000, RTL8139, and AMD PCNet-series network chipsets, TCP/IPv4, several virtual graphical framebuffers (including Bochs/QEMU and VMware, and support for framebuffers initialized by EFI), advanced VM integration (including absolute pointing devices in VMware, QEMU, and VirtualBox, as well as automatic display resizing, "Seamless Desktop" and hardware cursors in VirtualBox specifically), an implementation of the
/proc virtual filesystem, Unix-style pipes and TTYs, shared memory, in-memory read-write temporary filesystem, Intel AC'97 audio (with a mixer), and more.
It is recommended that you run ToaruOS in an emulator - specifically Qemu or VirtualBox, though some testing has been done in VMware Workstation (reasonable, but missing driver support) and Bochs (not recommended).
1GB of RAM and an Intel AC'97 sound chip are recommended:
qemu-system-i386 -cdrom image.iso -serial mon:stdio -m 1G -soundhw ac97,pcspk -enable-kvm -rtc base=localtime
You may also use OVMF with the appropriate QEMU system target. Our EFI loader supports both IA32 and X64 EFIs:
qemu-system-x86_64 -cdrom image.iso -serial mon:stdio -m 1G -soundhw ac97,pcspk -enable-kvm -rtc base=localtime \ -bios /usr/share/qemu/OVMF.fd
qemu-system-i386 -cdrom image.iso -serial mon:stdio -m 1G -soundhw ac97,pcspk -enable-kvm -rtc base=localtime \ -bios /path/to/OVMFia32.fd
ToaruOS should function either as an "Other/Unknown" guest or an "Other/Uknown 64-bit" guest with EFI.
All network chipset options should work except for
virtio-net (work on virtio drivers has not yet begun).
It is highly recommended, due to the existence of Guest Additions drivers, that you provide your VM with at least 32MB of video memory to support larger display resolutions - especially if you are using a 4K display.
Ensure that the audio controller is set to ICH AC97 and that audio output is enabled (as it is disabled by default in some versions of VirtualBox).
Keep the system chipset set to PIIX3 for best compatibility. 1GB of RAM is recommended.
Support for VMWare is experimental.
As of writing, the following configuration has been tested as functioning:
Using Bochs to run ToaruOS is not advised; however the following configuration options are recommended if you wish to try it:
pcivgadevice is enabled or ToaruOS will not be able to find the video card through PCI.
e1000network device using the
sync=realtime, time0=local, rtc_sync=1are recommended.
All source code for the entire operating system is included in this repository.
ToaruOS 1.2.x and earlier shipped with GRUB, which provided a multiboot-compatible ELF loader. To that end, our native bootloader also implements multiboot. However, as writing a feature-complete bootloader is not a goal of this project, the native bootloader is very limited, supporting only ATAPI CDs on systems with El Torito "no-emulation" support. It is not guaranteed to work on real hardware, but has been tested in QEMU, Bochs, VirtualBox, and VMware Player.
The userspace includes a work-in-progress C standard library, the ToaruOS native libraries, the compositor (using only in-house graphics routines), and various other first-party utilities and applications.
First, ensure you have the necessary build tools:
genext2fs (with Debian patches),
mtools (for building FAT EFI payloads) and
gnu-efi to build the EFI bootloader (I'll explore implementing necessary headers and functionality myself in the future, but for now just pull in gnu-efi and make my life easier).
make and you will be prompted to build a toolchain. Reply
y and allow the toolchain to build.
There are instructions on building Python 3.6 available from the github wiki.
Freetype backends are available for the Terminal, decorator, and menu library.
Freetype should mostly build as-is, though libtool needs to be taught how to build a shared object for ToaruOS called
libfreetype.so - this is left as an exercise for the reader until I've had time to formalize the process.
Once freetype is built and installed to
make ext-freetype will build the extension library. Place the required fonts, which you can find here, in
With fonts available, the build scripts will build larger ramdisks to accomodate the additional files. The font server will automatically run on startup if a GUI boot target is selected, and the Terminal will automatically use the Freetype backend if it loads.
The compositor can use Cairo for rendering, which improves performance over the naïve in-house SSE-accelerated blitter.
Many ABI changes have been made since ToaruOS 1.2.x, as have several API changes. We expect to make several more API changes moving forward, leading up until an eventual stable 2.0 release.
base/usr/include, as well as graphical resources for the compositor and window decorator.
ToaruOS is regularly mirrored to multiple Git hosting sites.