Git Product home page Git Product logo

diy-linux-guide's Introduction

Building a small Raspberry Pi System from Scratch

What you are looking at right now is a collection of instructions on how to bootstrap a tiny system for a Raspberry Pi 3 board.

We will bootstrap the system by building our own cross compiler toolchain and then using it to cross compile everything we need for a working Linux based OS.

In contrast to similar guides, I try to explain why we are doing the things the way we are doing them, instead of just throwing a bunch of copy-paste command lines around (I'm looking at you, LFS).

This guide is divided into the following parts:

  • Basic Setup. Lists some tools that you should have installed and walks through the steps of setting up the directory tree that we work in, as well as a few handy environment variables.
  • Building a cross compiler toolchain.
  • Cross compiling a statically linked BusyBox and the kernel. The BusyBox is packaged into a small initramfs. We will make it boot on the Rapsberry Pi and explore some parts of the Linux boot process.
  • Building a simple userland. Mostly a Linux-From-Scratch-Style walkthrough to building some packages for a simple GNU userland. The userland is packed into a SquashFS image. The BusyBox based initrd is modified to mount it and switch into it.

diy-linux-guide's People

Contributors

agentd avatar

Stargazers

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

Watchers

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