Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Install AOSC OS on Raspberry Pi 2

Mingcong Bai edited this page Oct 10, 2016 · 1 revision

Distribution formats

Currently AOSC OS for Raspberry Pi 2/3 only comes in the form of tarballs, we are expecting SD card images to roll-in in relatively short order. This guide will focus on the installation with tarballs.

You may get tarballs for Raspberry Pi (and soon images as well) on our Community Portal.

Preparing the SD card

Raspberry Pi only supports booting from a SD card with at least two partitions, listed below:

  • A VFAT (FAT32) partition for /boot;
  • A Linux-capable partition for / (we recommend ext4);

Using parted, cfdisk, gparted, or anything available or to your preference for partitioning is fine.

Now format the two partitions (assuming the device file to your SD card is /dev/mmcblk0):

# mkfs.vfat -F 32 /dev/mmcblk0p1
# mkfs.ext4 /dev/mmcblk0p2

Mounting the partitions

Let's get started by mounting the SD card partitions in /mnt.

Mounting the root (/) partition.

# mount /dev/mmcblk0p2 /mnt

Then, create a mount point for the boot (/boot) partition, and mount the partition there.

# mkdir /mnt/boot
# mount /dev/mmcblk0p1 /mnt/boot

Unpacking system tarball

Now we are ready to deploy the tarball. Let's do that all at once.

# cd /mnt
# tar pxvf /path/to/tarball/tarball.tar.xz

Just to make sure.

# sync

You may unmount the partitions now.

# umount /mnt/boot
# umount /mnt

Et voila, you are good to go.