Alpine with pre-built applications


To simplify maintenance and distribution of the pre-built applications described in the Red Pitaya notes, I’ve put together a bootable SD card image based on the lightweight Alpine Linux distribution.

Getting started

The default password for the root account is changeme.

Network configuration

Wi-Fi is by default configured in hotspot mode with the network name (SSID) and password both set to RedPitaya. When in hotspot mode, the IP address of Red Pitaya is

The wired interface is by default configured to request an IP address via DHCP. If no IP address is provided by a DHCP server, then the wired interface falls back to a static IP address

The configuration of the IP addresses is in /etc/dhcpcd.conf. More information about /etc/dhcpcd.conf can be found at this link.

From systems with enabled DNS Service Discovery (DNS-SD), Red Pitaya can be accessed as rp-f0xxxx.local, where f0xxxx are the last 6 characters from the MAC address written on the Ethernet connector.

In the local networks with enabled local DNS, Red Pitaya can also be accessed as rp-f0xxxx.

Useful commands

The Alpine Wiki contains a lot of information about administrating Alpine Linux. The following is a list of some useful commands.

Switching to client Wi-Fi mode:

# configure WPA supplicant
wpa_passphrase SSID PASSPHRASE > /etc/wpa_supplicant/wpa_supplicant.conf

# configure services for client Wi-Fi mode

# save configuration changes to SD card
lbu commit -d

Switching to hotspot Wi-Fi mode:

# configure services for hotspot Wi-Fi mode

# save configuration changes to SD card
lbu commit -d

Changing password:


lbu commit -d

Installing packages:

apk add gcc make

lbu commit -d

Editing WSPR configuration:

# make SD card writable

# edit
nano apps/sdr_transceiver_wspr/

# make SD card read-only


It is normal that there are no blinking LEDs after booting the Red Pitaya board with this SD card image.

The boot process can be checked using the USB/serial console as explained at this link.

The getting started instructions are known to work with a freshly unpacked factory formatted (single partition, FAT32 file system) micro SD card.

If the micro SD card was previously partitioned and formatted for other purposes, then the following commands can be used to format it:

parted -s /dev/mmcblk0 mklabel msdos
parted -s /dev/mmcblk0 mkpart primary fat32 4MiB 100%
mkfs.vfat -v /dev/mmcblk0p1

where /dev/mmcblk0 is the name of the device corresponding to the micro SD card.

It is also possible to write an empty SD card image with a single FAT32 partition instead of using partitioning and formatting commands. For example, a repository with several empty SD card images can be found at this link.

If the Ethernet interface of the Red Pitaya board is directly connected to the Ethernet interface of a computer, then the Ethernet interface of the computer should be configured to have an IP address in the same 192.168.1.x sub-network. For example, Instructions on how to set a static IP address in Windows can be found at this link.