GithubHelp home page GithubHelp logo

parvos's Introduction

ParvOS

A really stupid operating system. Planning to get something that works to some very limited degree on a Raspberry Pi (and also QEMU emulating one, which will require a few differences), and a PC.

Raspberry Pi QEMU is the first target.

Toolchain

ARM / Raspberry Pi

We need the ARM cross-compiler from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads -- it is assumed to be installed into the .gitignored directory toolchain, subdirectory rpi, such that (from the directory containing this file) ./toolchain/rpi/bin/arm-none-eabi-gcc is the GCC compiler.

PC

We need a cross-compiler as per https://wiki.osdev.org/GCC_Cross-Compiler installed into the .gitignored directory toolchain, subdirectory i686

The following steps worked on my Arch and Ubuntu machines:

cd toolchain/
mkdir i686
cd i686
wget https://mirror.koddos.net/gnu/binutils/binutils-2.31.tar.gz
wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.gz
export PREFIX=`pwd`
export TARGET=i686-elf
export PATH="$PREFIX/bin:$PATH"
tar xf binutils-2.31.tar.gz
mkdir build-binutils
cd build-binutils/
../binutils-2.31/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
make
make install
cd ..
mkdir build-gcc
tar xf gcc-8.2.0.tar.gz
cd build-gcc/
../gcc-8.2.0/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc

parvos's People

Contributors

gpjt avatar

Watchers

 avatar  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.