Unoffical, minimal, pure and up-to-date vanilla Debian/Ubuntu Linux SD card images for various ARM-based single board computers (SBCs). https://github.com/johang/sd-card-images | https://sd-card-images.johang.se/boards
Go to file
Johan Gunnarsson dbe067fa35 test: Resize /dev/vda2 as well 2022-12-30 18:06:55 +01:00
.github/workflows github: Resize image to 8 GB before running test 2022-12-26 21:22:08 +01:00
2nd-stage-files Add support for Ubuntu images 2021-08-24 19:39:57 +02:00
docs docs: Document how to extend root filesystem 2022-12-27 17:46:50 +01:00
metascripts docs: Rewrite install instructions and downloads list 2021-10-24 12:36:51 +02:00
patches/u-boot patches: Add 0001-rockchip-Fix-u-boot-rockchip.bin-build.patch 2021-08-01 22:51:13 +02:00
scripts build-image: Add a friendly text file in the empty FAT32 partition 2022-10-30 18:58:06 +01:00
test test: Resize /dev/vda2 as well 2022-12-30 18:06:55 +01:00
Dockerfile Dockerfile: Install awscli from Zip file 2022-08-01 19:50:41 +02:00
LICENSE Initial commit 2019-03-12 17:57:56 +01:00
README.md README: Simplify build instructions 2022-08-05 18:19:08 +02:00
boards.csv build-boot-meson: Tweak Amlogic board names 2022-08-17 22:52:03 +02:00
chips.csv chips: Fix Amlogic chip names 2022-08-09 22:32:08 +02:00
debians-arm.csv debians: Add Ubuntu Kinetic 2022-12-12 16:46:46 +01:00
debians-x86.csv debians: Add Ubuntu Kinetic 2022-12-12 16:46:46 +01:00

README.md

Debian SD card images

This repository is a bunch of scripts to build SD card images that various single-board computers (SBC) can boot. Emphasis is on pureness; pure Debian and pure mainline U-boot.

Pre-built images

Pre-built images ready for download are availble at sd-card-images.johang.se.

Usage

The generated SD card images are made up of two separate images:

  • boot-BOARD.bin: Boot image that contains partition table, U-Boot and chip-specific code. The boot image will only work on the board it's built for. The filename indicates which board it's built for.
  • debian-ARCH-VERSION-PASSWORD.bin: Debian ext4 root filesystem image that contains a complete Debian installation, including kernel, initrd and device tree. This Debian image is generic and will work on all chips and boards with the CPU architecture it's built for. The filename indicates Debian version, CPU architecture and default root password.

These two images are the concatenated to a single image, which is then written to SD card, for example like this:

$ zcat boot-raspberrypi_3b.bin.gz debian-buster-arm64-XXXXXX.bin.gz > sd-card.img
# dd if=sd-card.img of=/dev/sdXXX

Build your own boot image

To build a boot image for Raspberry Pi 3 B:

docker build -t sd-images https://github.com/johang/sd-card-images.git sd-images
mkdir -p /tmp/sd-images
docker run --rm -v /tmp/sd-images:/artifacts sd-images build-boot raspberrypi_3b bcm2837 rpi_3_defconfig aarch64-linux-gnu

The image will end up in /tmp/sd-images on the host.

Build your own Debian ext4 root filesystem image

To build a Debian ext4 root filesystem image for arm64:

docker build -t sd-images https://github.com/johang/sd-card-images.git sd-images
mkdir -p /tmp/sd-images
docker run --rm -v /tmp/sd-images:/artifacts sd-images build-debian debian arm64 buster

The image will end up in /tmp/sd-images on the host.