Giter Club home page Giter Club logo

bare-metal-aarch64's Introduction

Bare-metal experimentation tutorial (aarch64, raspi3)

This repo is mostly intended as notes to myself, while I try to understand how to run bare-metal programs on the Raspberry Pi 3 (or raspi3), using a mix of Arm64 (aarch64) assembly and C code.

My initial goal is to understand how the exception levels (EL) work in order to come up with small, yet interesting pieces of assembly code that we will be able to formally verify (using a research tool under development). I'll try to explain all the concepts on the way, so that you can follow along.

How to follow along

Each step of this journey has a corresponding directory step-XX, including a README.md file with explanations and instructions. Each of these directories will be self-contained, and built on top of the previous step's directory. The explanations at any given step will however assume all knowledge gained during previous steps. (Comments in the code will however be kept as long as they are sensible, as reminders for certain points.)

My advice is hence to go through all the steps in order, reading corresponding README.md files, and looking at the source code. Of course, it may be a good idea to follow along by creating your own repo, and by making your code evolve at each step.

Index of available project steps

  • Step 0: installing a cross-compiler
  • Step 1: building and running a minimal image
  • Step 2: inspecting the machine state with GDB
  • Step 3: determining the exception level
  • Step 4: setting up a C environment
  • Step 5: debug printing (in C) via an UART
  • Step 6: a minimal debugging shell
  • Step 7: running our kernel at EL1
  • Step 8: a minimal hypervisor call interface

bare-metal-aarch64's People

Contributors

rlepigre avatar bensimner avatar

Watchers

James Cloos 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.