Giter Club home page Giter Club logo

deb-rpi3's Introduction

deb-rpi3

Debian arm64 on Raspberry Pi 3 (ARM Cortex-A53)

VERY PRELIMINARY DRAFT

Introduction

This is a set of tools and notes for building a Debian arm64 image for Raspberry Pi 3.

The top-level directory structure is:

  • README.md - this file
  • boot subdir - bootloader configuration
  • docs subdir - project documentation
  • kernel subdir - Linux kernel configuration
  • rootfs subdir - root filesystem configuration
  • build subdir - build temporary work and final products

The current distributed binary is a zip file of the boot and rootfs partitions, suitable for unzip onto a microSD card, and easy boot-up. The binary zip file is about 680+ MB, and expands into a 4 GB image.

deb-rpi3's People

Contributors

kwan0xfff avatar kwanrj avatar

Watchers

James Cloos avatar  avatar

deb-rpi3's Issues

Need lighter alternative to sparse checkout of Pi repo for boot contents

Debian RPi3 image currently utilizes files from the boot partition of generic RPi. These are available in the RPi firmware repo. The boot subtree content only takes about 22 MB. But to get there, git remote add has to first bring down 8 GB of Git objects.

This is way too much overhead; it should not be performed on a regular basis. A lighter alternative is sought.

Steps to set up sparse checkout:
PIFIRMREPO=https://github.com/raspberrypi/firmware.git
cd ${TARGETDIR}
git init
git remote add -f origin ${PIFIRMREPO}

Example report of above operations:
git remote add -f origin https://github.com/raspberrypi/firmware.git
Updating origin
remote: Counting objects: 704913, done.
remote: Total 704913 (delta 0), reused 0 (delta 0), pack-reused 704913
Receiving objects: 100% (704913/704913), 7.87 GiB | 3.46 MiB/s, done.
Resolving deltas: 100% (558580/558580), done.
At this point, 8+ GB of disk space have been consumed.

To do the sparse checkout:
git config core.sparseCheckout true
echo boot >> .git/info/sparse-checkout
echo git pull --depth=4 origin master
Result:
remote: Counting objects: 7620, done.
remote: Compressing objects: 100% (4171/4171), done.
remote: Total 7620 (delta 4577), reused 4106 (delta 2813), pack-reused 0
Receiving objects: 100% (7620/7620), 54.71 MiB | 2.74 MiB/s, done.
Resolving deltas: 100% (4577/4577), completed with 6 local objects.
This gets a boot directory of about 22 MB.

Missing vcgencmd in rootfs

vcgencmd is need to gather/confirm certain types of info about the Broadcom CPU chip. In the standard Raspbian image, it resides at: /opt/vc/bin/vcgencmd
This was discovered while migrating rootfs from microSD to USB flash; used to confirm that boot will take place from USB instead of microSD.

More info at: https://www.elinux.org/RPI_vcgencmd_usage

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.