GithubHelp home page GithubHelp logo

andreaorru / zen Goto Github PK

View Code? Open in Web Editor NEW
401.0 21.0 25.0 254 KB

Experimental operating system written in Zig

License: BSD 3-Clause "New" or "Revised" License

Shell 7.26% GDB 1.99% Assembly 90.75%
zig kernel os operating-system

zen's Introduction

Zen Build Status

Experimental operating system written in Zig.

Build and test

To build the kernel, simply type:

zig build

You can run and debug the kernel straight away with Qemu:

# Run the kernel inside the emulator.
zig build qemu

# Wait for a GDB connection first (for debugging).
zig build qemu-debug
gdb

You can also generate a bootable ISO and try it on Bochs (or on real hardware if you feel like it):

./iso.sh    # Generate run/zen.iso
./bochs.sh

zen's People

Contributors

andreaorru avatar andrewrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zen's Issues

Plans for the OS

Is there a roadmap of features/ design goals for Zen? I see that there's a fork that appears to be working on getting it to compile against the latest Zig, I'd love to try to do some work adding some more basic features.

blog post series?

I've been following along with this project sort of commit by commit, and it's been a fantastic way of digging into Zig, as well as reenforcing things I've learned doing other small kernel experiments.

I was wondering if you'd be alright with me basing a series of blog posts on following along with this repo, sort of in the vein of Writing an OS in Rust by Philipp Oppermann (though almost guaranteed not as popular ;)).

I don't want to jump on the work you've done without asking your blessing, so let me know if you have concerns!

Thanks!

  • Jon

Zen does not build with Zig 0.6

Here is the build log:

./build.zig:23:27: error: array literal requires address-of operator to coerce to slice type '[][]const u8'
    const common_params = [][]const u8 {
                          ^
./build.zig:24:9: note: referenced here
        "qemu-system-i386",
        ^
./build.zig:48:11: error: no member named 'setOutputPath' in struct 'std.build.LibExeObjStep'
    kernel.setOutputPath("zen");
          ^
./build.zig:66:11: error: no member named 'setOutputPath' in struct 'std.build.LibExeObjStep'
    server.setOutputPath("servers/" ++ name ++ "/" ++ name);
          ^
./build.zig:11:33: note: called from here
    const terminal = buildServer(b, "terminal");
                                ^
./build.zig:6:32: note: called from here
pub fn build(b: *Builder) void {
                               ^
./build.zig:66:11: error: no member named 'setOutputPath' in struct 'std.build.LibExeObjStep'
    server.setOutputPath("servers/" ++ name ++ "/" ++ name);
          ^
./build.zig:12:33: note: called from here
    const keyboard = buildServer(b, "keyboard");
                                ^
./build.zig:6:32: note: called from here
pub fn build(b: *Builder) void {
                               ^
./build.zig:66:11: error: no member named 'setOutputPath' in struct 'std.build.LibExeObjStep'
    server.setOutputPath("servers/" ++ name ++ "/" ++ name);
          ^
./build.zig:14:33: note: called from here
    const shell    = buildServer(b, "shell");
                                ^
./build.zig:6:32: note: called from here
pub fn build(b: *Builder) void {

Can't Build

I got the following error when I tried to build the source.

build.zig:23:40: error: expected token 'Symbol', found '{'
    const common_params = [][]const u8.{
                                       ^

Anyone know what the problem could be?
Running Windows 10 Pro 64 bit, i3 7100T

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.