You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Joshua 1430310f99 Initial Commit 1 year ago
LICENSE Initial Commit 1 year ago Initial Commit 1 year ago Initial Commit 1 year ago

At this time, this script has only found success with the aarch64 variant of Alpine Linux. armhf failed entirely and armv7 has not been tested. Your mileage may vary. Please do not use this in production.


Simple script for installing Alpine in sys mode on a Raspberry Pi

This README file will be updated with a better explanation once the script reaches a working state.

SD Card Preparation


Using Rufus, wipe the card and create an empty FAT32 partition. This script only accounts for the FAT partition starting at sector 2048 so you must use Rufus for the time being to accurately format the card. Alternatively, you can use fdisk and manually create a FAT32 LBA partition starting at 2048 and format it with mkfs.vfat.

Prepping Alpine

Download the RPi archive of Alpine. Make sure you grab the version that is correct for your board's architecture. Extract the archive directly to the SD card--no need to use Etcher! Refer to Alpine's Wiki for more information.

Usage Instructions

Online instructions will come soon.

For an offline installation, use the following guide:

  1. Copy to the root of the SD card, where the Alpine archive was extracted.
  2. Eject the SD card and insert it into your Raspberry Pi.
  3. Power it on and get a keyboard ready. Login as root (no password).
  4. Execute /media/mmcblk0p1/ The Raspberry Pi will reboot.
  5. Login and execute /media/mmcblk0p1/ again. The script will begin installation of the system and will reboot once finished. You can safely ignore the warning about syslinux missing.

At this stage, Alpine is installed in a persistent state. You may have to run setup-interfaces to get networking up. If you plan on using the Wi-Fi module on compatible boards, you will need to add wpa_supplicant to the boot process:

# rc-update add wpa_supplicant boot