Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 1.68 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.68 KB

Zylix

An open-source, hobby/research kernel and operating system.

Before contributing, make sure to check the coding style and the source code license.

Build Instructions

Zylix provides a script known to work under WSL and Ubuntu to download and compile a toolchain. Run tools/toolchain/build.sh. Required programs, and steps to follow if the script breaks on your system are there.

By default, the build scripts and Makefiles generate x86_64 binaries. To change the target architecture just change references of x86_64-pc-zylix to i686-pc-zylix for 32-bit builds. Automatic toolchain support for more architectures is coming but I'm sure it's possible to whip up an unpatched cross compiler for any architecture.

Dependencies

To build Zylix and the toolchain the following software packages must be present in your system.

binutils (2.28 confirmed working)
gcc (7.1.0 confirmed working)
genext2fs (1.4.1 confirmed working) for hard disk image creation.
grub 2.0 for grub-mkrescue.
patch, wget, tar and GNU make for auto toolchain script.
cdrkit
xorriso
mkisofs

Emulation

You can edit the arguments passed to the emulator in the top level Makefile. Some sample choices for different machines are listed below.

i386:
qemu-system-i386 -kernel ./sysroot/boot/zykernel -m 1024 -k en-us -show-cursor -vga std -net nic,model=rtl8139 -net user -rtc base=localtime

Raspberry Pi (Models 1 to 3):
qemu-system-arm -kernel ./sysroot/boot/zykernel -cpu arm1176 -m 256 -M raspi -serial stdio

Licensing

See the file LICENSE.md for licensing information.