Coder Social home page Coder Social logo

saiputravu / saios Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27 KB

Developing a custom kernel + bootloader in x86 (real, protected and long mode) and C for the fun of it

Dockerfile 1.25% Makefile 6.27% Assembly 39.30% C 46.49% C++ 0.37% Objective-C 6.32%
kernel bootloader

saios's Introduction

SaiOS

Building instructions

Windows change pwd to %cd%

Docker building

docker build -t linux-build-env .
docker run -it --rm -v `pwd`:/root/env linux-build-env
make 

Emulation

There are multiple options for emulators including, but not limited to:

  • QEMU (Which I picked)
  • Bochs
  • Oracle VMBox
  • VMWare
qemu-system-x86_64 -fda ./build/img/disk.img

Debugging

For debugging, I tried using gdb-multiarch, but radare2 dealt with it the best

# 0x9000 is kmain (Look at ./build/img/os.map for updated values)
qemu-system-x86_64 -fda ./build/img/disk.img -gdb tcp::9001 -S & \
    r2 -m 0x9000 -b 64 -d gdb://localhost:9001

Inside radare2

e dbg.bpinmaps=0 # Might not have to do this, it caused issues for me though
db 0x9000
dc
V!

# Step into
s
# Step over 
S 

# Seek to PC / RIP
.
# Commands 
:
# Help
?

saios's People

Contributors

saiputravu avatar

Watchers

 avatar

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.