Booting Alpine Linux on the Raspberry Pi Compute Module

In our project for a client we are using the Raspberry Pi Compute Module, along with a custom compute module carrier board (called the PCCB – Pi Control Carrier Board) which provides RS485, CAN, RS232, LAN, USB and a step-down for input voltages of 6 – 24 V. (If you are interested in customized hardware [...]

By | Juli 7th, 2019|Alpine Linux, Raspberry Pi Embedded Development|Kommentare deaktiviert für Booting Alpine Linux on the Raspberry Pi Compute Module

Alpine 3.9.0 initramfs init changes

Alpine 3.9.0 ships a new version of the init script in it’s initramfs.left: Alpine 3.9.0, right: Alpine 3.8.2There are a number of interesting changes:better and earlier networking support for the boot process, with an additional kernel parameter for cmdline.txt: BOOTIF, allowing you to specify the device interface you want to use for boot purposesnetworking is [...]

By | Februar 2nd, 2019|Alpine Linux|Kommentare deaktiviert für Alpine 3.9.0 initramfs init changes

Using nuitka compiler for python3 on Alpine Linux ARMHF (musl)

Motivationpidoctor is written in Python (as there was no easy way to get Crystal to work on ARMHF / musl). This means a dependency on Python – which adds overhead. I suspect that this overhead is the reason that pidoctor will not run on 256 MB Raspberry Pi’s – because the RAM is exhausted by [...]

By | Januar 31st, 2019|Alpine Linux, Development|Kommentare deaktiviert für Using nuitka compiler for python3 on Alpine Linux ARMHF (musl)

Debugging the Alpine boot process

As discussed in my previous post, Alpine Linux goes through several stages when it boots. Just after mounting the boot media, and scanning it for apkovl’s (with nlplug-findfs), there is an option for you to get a console, by setting $SINGLEMODE to yes. Setting SINGLEMODE to yes is easy, you simply add the word “single” [...]

By | Januar 22nd, 2019|Alpine Linux|Kommentare deaktiviert für Debugging the Alpine boot process

Alpine boot process on the Raspberry Pi

Today we will have a look at the Alpine Linux boot process on a Raspberry Pi in some detail.The picture shows the contents of a "virgin" SD card with the Alpine image, which has not been booted yet.This picture shows the contents of the boot folder.Initial boot Stages on the Raspberry Pi Refer to this [...]

By | Januar 10th, 2019|Alpine Linux|Kommentare deaktiviert für Alpine boot process on the Raspberry Pi

nlplug-findfs documentation

nlplugfs-findfsusage: %s [options] DEVICEoptions:-a OUTFILE add paths to found apkovls to OUTFILE-b OUTFILE add found boot repositories to OUTFILE-c CRYPTDEVICE run cryptsetup luksOpen when CRYPTDEVICE is found-h show this help-H HEADERDEVICE use HEADERDEVICE as the LUKS header-k CRYPTKEY path to keyfile-m CRYPTNAME use CRYPTNAME name for crypto device mapping-o OFFSET cryptsetup payload offset-D allow discards [...]

By | Januar 9th, 2019|Alpine Linux, Raspberry Pi Embedded Development|Kommentare deaktiviert für nlplug-findfs documentation

Crystal & Alpine on the Raspberry Pi

Bringing together two interesting technologies:Alpine Linux – a small-size and security oriented Linux distributionCrystal – a compiled language with a nice syntax (similar to Ruby)on the Raspberry Pi (armhf / ARMv6, which would also support the Pi Zero W)is not possible currently, as of 21.12.2018.There is no (at least no easy) way to cross-compile Crystal [...]

By | Dezember 21st, 2018|Alpine Linux, Crystal Language, Raspberry Pi Embedded Development|Kommentare deaktiviert für Crystal & Alpine on the Raspberry Pi

Alpine Linux first steps

Here’s a short primer to Alpine Linux, specifically for the Raspberry Pi platformWhy Alpine Linux?it’s smallit can be installed by copying files on the FAT partition of the SDit can run from RAM, the filesystem will remain read-only (persisting changes is of course possible)this is very good for embedded systems where power can be cut [...]

By | Oktober 24th, 2018|Alpine Linux, Raspberry Pi Embedded Development|Kommentare deaktiviert für Alpine Linux first steps

WiFi Channel 13 & 14 on Alpine Linux aka I can’t connect to my router aka crda configuration

SummaryWhile developing an embedded, read-only test system for a Pi Zero W WLAN port modification we have done for a customer, I ran into an interesting issue.The Pi Zero W suddenly stopped connecting to our router.After some investigation, I managed to find the reason, and fix. The reason: WLAN regulatory domainsIn different countries, different WiFi [...]

By | August 6th, 2018|Alpine Linux, Raspberry Pi Embedded Development|Kommentare deaktiviert für WiFi Channel 13 & 14 on Alpine Linux aka I can’t connect to my router aka crda configuration