Code Monkey home page Code Monkey logo

ligmaos's Introduction

LigmaOS

A 32bit operating system for i686 systems.

Getting dependencies to build and develop

The easy way

  1. Install the Nix package manager.
  2. Run this command: nix --experimental-features "nix-command flakes" develop ./flake.nix

This will give you a shell with all that is required to build and run this OS on a linux system. It might take some time to build the cross compiler so you will have to be patient.

The hard way

Install these packages such that the versions match those of the nixpkgs repo at the commit in flake.lock.

  • grub2
  • xorriso
  • gnumake
  • nasm
  • gdb
  • gf
  • qemu
  • fish

Once this is done you will have to build a cross compiler for i686. Here's a guide on how to do it. If you don't have a cross compiler the operating system will not work.

Building and running

We use gnu make to automate the build of the OS and qemu to run it in a VM.

To build the OS you can run this command from the root of the repo make.

To build and run the OS you can use this command from the root of the repo make run.

To debug the OS run make debug from the root of the repo. This should open the debugger and the OS in qemu. The debugger is setup to break on the first line of KernelMain(void). Once the bootloader is done you should be able to step through the OS. If you reach the end execution or have to restart the OS you can close the qemu window and reopen it again with make debug. To reattach the debugger to this new VM window you can type g mnemonic for "go" in the debugger. Then you can step through the OS again without loosing your debuggin session.

ligmaos's People

Contributors

leg7 avatar

Watchers

 avatar

Forkers

lumin0rph

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.