Giter Site home page Giter Site logo

rustberry's Introduction

Rustberry OS

This is a WIP kernel for RaspberryPi 3 written in Rust. Some code is taken from this Stanford class.

Requirements

You will nedd a nightly Rust installation. The fastest way is to use rustup. You will also need some tools, you can install the whole toolchain with:

$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ rustup component add rust-src llvm-tools-preview
$ cargo install cargo-xbuild cargo-binutils

Building

  • To build a debug kernel: DEBUG=1 make
  • To build a release kernel: make

Running

QEMU

To run the kernel in QEMU you can either run (you will need QEMU):

  • make run
  • qemu-system-aarch64 -kernel build/kernel8.img -M raspi3 -serial null -serial mon:stdio

Testing (WIP)

make test

rustberry's People

Contributors

sh4d1 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

rustberry's Issues

Scheduler not working correctly

When only one process is scheduled the scheduler is working, breakpoints are working, everything is okay. However when a second process is scheduled, the first time the scheduler is called it works, the second process have the CPU, but as soon as an exception occurs, the kernel freezes. (Breakpoint, timer exception, ...)

cannot use make

Building target/aarch64-none-elf/release/rustberry
RUST_TARGET_PATH="/home/josselin/develop/rustberry" cargo xbuild --release --target=aarch64-none-elf 
WARNING: the sysroot can't be built for the Stable channel. Switch to nightly.
   Compiling tock-regs v0.1.0 (https://github.com/tock/tock.git?rev=8b64ec2#8b64ec27)
   Compiling spin v0.4.8
   Compiling volatile v0.2.4
   Compiling once v0.3.3
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `once`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `volatile`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `tock-regs`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `spin`.

To learn more, run the command again with --verbose.
Makefile:32 : la recette pour la cible « target/aarch64-none-elf/release/rustberry » a échouée
make: *** [target/aarch64-none-elf/release/rustberry] Erreur 101

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.