Difference between revisions of "Raspberry Pi"

From Alpine Linux
Jump to: navigation, search
m (Installation)
(Added See Also section)
Line 8: Line 8:
 
# [http://alpinelinux.org/downloads/ Download] Alpine for Raspberry Pi tarball which is named as <code>alpine-rpi-<version>-armhf.rpi.tar.gz</code>.  You will need version 3.2.0 or greater if you have a Raspberry Pi 2.
 
# [http://alpinelinux.org/downloads/ Download] Alpine for Raspberry Pi tarball which is named as <code>alpine-rpi-<version>-armhf.rpi.tar.gz</code>.  You will need version 3.2.0 or greater if you have a Raspberry Pi 2.
 
# Mount your SD card to your workstation
 
# Mount your SD card to your workstation
# Use [https://en.wikipedia.org/wiki/GNOME_Disks gnome-disks] or [http://linux.die.net/man/8/fdisk fdisk] to create a FAT32 partition.  If you are using fdisk, the FAT32 partition is named as W95 FAT32 (LBA) and its ID is 0xC.
+
# Use [https://en.wikipedia.org/wiki/GNOME_Disks gnome-disks] or [http://linux.die.net/man/8/fdisk fdisk] to create a FAT32 partition.  If you are using fdisk, the FAT32 partition type is called ''W95 FAT32 (LBA)'' and its ID is 0xC.
 
# Mark the newly created partition as bootable and save
 
# Mark the newly created partition as bootable and save
 
# Mount the previously created partition
 
# Mount the previously created partition
Line 19: Line 19:
  
 
# Insert the SD Card into the Raspberry Pi and turn it on
 
# Insert the SD Card into the Raspberry Pi and turn it on
# Login into the Alpine system
+
# Login into the Alpine system as root.  Leave the password empty.
 
# Type <code>setup-alpine</code>
 
# Type <code>setup-alpine</code>
 
# Once the installation is complete, commit the changes by typing <code>lbu commit</code>
 
# Once the installation is complete, commit the changes by typing <code>lbu commit</code>
  
 
Reboot to verify that the installation was indeed successful.
 
Reboot to verify that the installation was indeed successful.
 +
 +
== See Also ==
 +
 +
* [[Create a bootable SDHC from a Mac]]

Revision as of 15:59, 13 October 2015

This tutorial will help you install Alpine Linux on your Raspberry Pi.

Preparation

This section will help you format and partition your SD card:

  1. Download Alpine for Raspberry Pi tarball which is named as alpine-rpi-<version>-armhf.rpi.tar.gz. You will need version 3.2.0 or greater if you have a Raspberry Pi 2.
  2. Mount your SD card to your workstation
  3. Use gnome-disks or fdisk to create a FAT32 partition. If you are using fdisk, the FAT32 partition type is called W95 FAT32 (LBA) and its ID is 0xC.
  4. Mark the newly created partition as bootable and save
  5. Mount the previously created partition
  6. Extract the tarball contents to your FAT32 partition
  7. Unmount the SD Card.

Installation

Alpine Linux will be installed as diskless mode, hence you need to use Alpine Local Backup (lbu) to save your modifications between reboots. Follow these steps to install Alpine Linux:

  1. Insert the SD Card into the Raspberry Pi and turn it on
  2. Login into the Alpine system as root. Leave the password empty.
  3. Type setup-alpine
  4. Once the installation is complete, commit the changes by typing lbu commit

Reboot to verify that the installation was indeed successful.

See Also