Skip to content

Commit

Permalink
Add Alpine 3.8 for RPi Model B, B+ and Zero
Browse files Browse the repository at this point in the history
  • Loading branch information
eugulixes committed Jul 9, 2018
1 parent 9cbc2a5 commit 9656c7b
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,19 @@ The built image will be located in the `build` directory. By the way, you can sp

## Documentation

| | Alpine 3.7 | Devuan 1 «Jessie» | Raspbian 9 «Stretch» | Ubuntu 16.04 «Xenial Xerus» | Ubuntu 18.04 «Bionic Beaver» |
|---------------------------------------------------------------------------------------------|:--------------:|:---------------------:|:---------------------:|:---------------------------:|:----------------------------:|
| Raspberry Pi [Model B and B+](https://www.raspberrypi.org/products/raspberry-pi-1-model-b/) | | | 32bit | | |
| Raspberry Pi [2 Model B](https://www.raspberrypi.org/products/raspberry-pi-2-model-b/) | 32bit | 32bit | 32bit | 32bit | 32bit |
| Raspberry Pi [3 Model B](https://www.raspberrypi.org/products/raspberry-pi-3-model-b/) | 32bit | 32bit | 32bit | | 32bit, 64bit |
| Raspberry Pi [Zero](https://www.raspberrypi.org/products/raspberry-pi-zero/) | | | 32bit | | |
| | Alpine 3.7 | Alpine 3.8 | Devuan 1 «Jessie» | Raspbian 9 «Stretch» | Ubuntu 16.04 «Xenial Xerus» | Ubuntu 18.04 «Bionic Beaver» |
|---------------------------------------------------------------------------------------------|:--------------:|:-----------:|:---------------------:|:---------------------:|:---------------------------:|:----------------------------:|
| Raspberry Pi [Model B and B+](https://www.raspberrypi.org/products/raspberry-pi-1-model-b/) | | 32bit | | 32bit | | |
| Raspberry Pi [2 Model B](https://www.raspberrypi.org/products/raspberry-pi-2-model-b/) | 32bit | | 32bit | 32bit | 32bit | 32bit |
| Raspberry Pi [3 Model B](https://www.raspberrypi.org/products/raspberry-pi-3-model-b/) | 32bit | | 32bit | 32bit | | 32bit, 64bit |
| Raspberry Pi [Zero](https://www.raspberrypi.org/products/raspberry-pi-zero/) | | 32bit | | 32bit | | |

The operating system of the target image is specified via the `OS` environment variable. The next table maps full names of the supported operating systems to their short name intended for using as values of `OS`.

| Full name | Short name |
|----------------------------------------------------------------------------------------------------------------------|------------------------|
| Alpine [3.7](https://alpinelinux.org/posts/Alpine-3.7.0-released.html) (32-bit) | alpine-3.7-armhf |
| Alpine [3.8](https://alpinelinux.org/posts/Alpine-3.8.0-released.html) (32-bit) | alpine-3.8-armhf |
| Devuan 1 «[Jessie](https://lists.dyne.org/lurker/message/20170525.180739.f86cd310.en.html#devuan-announce)» (32-bit) | devuan-jessie-armhf |
| Raspbian 9 «[Stretch](https://raspberrypi.org/blog/raspbian-stretch/)» (32-bit) | raspbian-stretch-armhf |
| Ubuntu 16.04 «[Xenial Xerus](https://wiki.ubuntu.com/XenialXerus/ReleaseNotes)» (32-bit) | ubuntu-xenial-armhf |
Expand Down
67 changes: 67 additions & 0 deletions devices/rpi-b/alpine-3.8-armhf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Alpine Linux is a lightweight, independently developed and non-commercial Linux distribution. `rpi-b/alpine-3.8-armhf` allows building custom 32-bit Alpine [3.8](https://alpinelinux.org/posts/Alpine-3.8.0-released.html) images for Raspberry Pi [Model B and B+](https://www.raspberrypi.org/products/raspberry-pi-1-model-b/) and Raspberry Pi [Zero](https://www.raspberrypi.org/products/raspberry-pi-zero/).

## What's in the distribution?

<table>
<tr>
<td>Package</td>
<td>Version</td>
</tr>
<tr>
<td colspan="2"><b>Essential components</b></td>
</tr>
<tr>
<td>Linux kernel</td>
<td>4.14</td>
</tr>
<tr>
<td>musl</td>
<td>1.1.19</td>
</tr>
<tr>
<td>GCC</td>
<td>6.4.0</td>
</tr>
<tr>
<td>OpenRC</td>
<td>0.35.5</td>
</tr>
<tr>
<td colspan="2"><b>Development tools</b></td>
</tr>
<tr>
<td>Go</td>
<td>1.10.1</td>
</tr>
<tr>
<td>PHP</td>
<td>7.2.7</td>
</tr>
<tr>
<td>Python</td>
<td>3.6.4</td>
</tr>
<tr>
<td>Ruby</td>
<td>2.5.1</td>
</tr>
<tr>
<td colspan="2"><b>Server software</b></td>
</tr>
<tr>
<td>Apache HTTP Server</td>
<td>2.4.33</td>
</tr>
<tr>
<td>Nginx</td>
<td>1.14.0</td>
</tr>
<tr>
<td>PostgreSQL</td>
<td>10.4</td>
</tr>
<tr>
<td>MariaDB</td>
<td>10.2.15</td>
</tr>
</table>
1 change: 1 addition & 0 deletions devices/rpi-b/alpine-3.8-armhf/cmdline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 fsck.repair=yes rw rootwait quiet
17 changes: 17 additions & 0 deletions devices/rpi-b/alpine-3.8-armhf/config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
disable_splash=1
boot_delay=0
gpu_mem=256
gpu_mem_256=64

hdmi_drive=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

[pi]
kernel=vmlinuz-rpi
initramfs initramfs-rpi

[all]
include usercfg.txt
24 changes: 24 additions & 0 deletions devices/rpi-b/alpine-3.8-armhf/pieman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Maintainer: Evgeny Golyshev <eugulixes@gmail.com>

alpine-3.8-armhf:
repos:
- http://dl-cdn.alpinelinux.org/alpine/
boot:
- cmdline.txt
- config.txt
- /boot/initramfs-rpi
- /boot/vmlinuz-rpi
- /usr/lib/linux-*-rpi/bcm2835-rpi-b.dtb
- /usr/lib/linux-*-rpi/bcm2835-rpi-zero.dtb
- /usr/lib/linux-*-rpi/bcm2708-rpi-b-plus.dtb
- /usr/lib/linux-*-rpi/overlays
- https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin
- https://github.com/raspberrypi/firmware/raw/master/boot/fixup.dat
- https://github.com/raspberrypi/firmware/raw/master/boot/fixup_cd.dat
- https://github.com/raspberrypi/firmware/raw/master/boot/fixup_x.dat
- https://github.com/raspberrypi/firmware/raw/master/boot/start.elf
- https://github.com/raspberrypi/firmware/raw/master/boot/start_cd.elf
- https://github.com/raspberrypi/firmware/raw/master/boot/start_x.elf
base: tzdata
kernel:
package: linux-rpi
1 change: 1 addition & 0 deletions devices/rpi-zero/alpine-3.8-armhf

0 comments on commit 9656c7b

Please sign in to comment.