Build a minimal Raspberry Pi OS from source


The focus of the (det)LFS process is to create a small, compact system without complex dependencies for running stably and reliably in critical situations. Of interest to normal users is that once the cross-compile toolchain is up and running, a new kernel can be created within a short time. Moreover, detLFS simplifies the process of porting available software as source code that is not (yet) available in the Debian or Raspberry Pi OS repositories.

Cross compiling is worth the work because a desktop Linux still runs far faster than even the fastest Raspberry Pi 4. However, if you prefer calm and slow, you can work through the detLFS process on a Pi. A manual on the PiLFS project page [4] closely follows the LFS manual. This project also provides scripts for a simplified semi-automated process. Although it will take hours to run, at least you don't have to watch the small-board computer do its work.

The Author

Bernhard Bablok works at Allianz Technology SE as an SAP HR developer. When he's not listening to music, cycling or walking, he deals with topics related to Linux, programming and small computers. He can be reached at

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More