Skip to content

andrewboring/alarm-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alarm-images

Arch Linux Arm Base Images for Raspberry Pi

This repository contains automated image builds of Arch Linux ARM for Raspberry Pi 2, 3, and 4.

These are not official images from, nor are they supported by the Arch Linux or Arch Linux ARM projects. They are provided by me, to you, as-is, with no warranty, blah blah blah.

Each image is built from upstream tarballs distributed by the Arch Linux ARM project, but written to a prepared 8GB image file. This image file can then be written to any SD Card 8GB+. The remaining space of the SD Card can be used as desired (expand partition and filesystem to fit, or create additional partitions).

Background

Installing Arch Linux ARM to an SD Card is as simple as following their instructions. However, it's a manual process that gets tiresome when you need to test installation/setup/deployment scripts. Building an image is better, but the conventional entry point for MicroSD Cards these days is 32GB. Writing an image from a 32GB card takes too much space, and writing that 32GB back to card (even when most of the data is empty) is too time consuming. An 8GB base image is much better.

But building sparse images on macOS to create BIOS partitions, write Ext4 filesystems, and unpack Arch Linux ARM with bsdtar is...challenging, at best.

So, building on the work documented by disconnected.systems in this blog post and this other blog post, I now have a set of default images that are 8GB in size that I can quickly write [and customize] as needed. And since they're generic Arch Linux ARM builds with nothing else added, you can use them too.

Just download, burn, and boot!

Releases

If you just want the downloads, head over to Releases and get the appropriate one for your Raspberry Pi. Or select the latest version from the Files section below.

Then follow the standard instructions for your operating system to burn the image to your SD Card.

Latest Files

[ to do: add more details on ARMv7 vs ARMv8 vs aarch32 vs aarch64 ]

Update Frequency

The Arch Linux ARM project releases updated tarballs, but not with the same frequency as Arch Linux. Therefore, these images may not be aligned with the latest tarball from Arch Linux ARM.

[ to do: add script to master control to check for upstream updates and trigger a new release on demand]

Requirements

To use this on Arch Linux, you need to install some build dependencies

pacman -Syu dosfstools parted wget

Source

The source repo includes a Vagrant file to boot a default Arch Linux box, and launches a script to automatically download the tarballs and build the releases. You'll need Vagrant and Virtualbox.

If you'd like to build a specific image yourself (eg, to change the image size or add additional software to the image), just edit the Vagrant file and comment out the shell stuff. The create-image file will be available in /tmp/vagrant for you to run manually to create a single image.

Once built, you'll need to copy the appropriate image out of the Vagrant box before deleting it.