qLinux
… a distribution study
Next >> Preparations
Introduction
Preface
This is based on lfs 11.0, further commonly called the book. Readers should have build a lfs system already and have to be able to diverge from the steps in the book. The main differences are a significant different filesystem layout - even qLinux, which is neither FHS as well as not LSB compliant - and glibc will be replaced by the musl libc. The latter by itself is a requirement for the used filesystem layout.
Through the instructions there will be references to the lfs book. The format is for example '(6.6)', which means chapter 6.6 is the related reference in the book. Sometimes there is a reference to the book only. In such cases the (mostly trivial) instructions from the book can be used. However, readers should be able to solve small issues with privileges, missing files/directories, pathes and perhaps additional compiler options (mostly search pathes).
It is highly recommended to build qLinux in a virtual machine. The host system shall be an up-to-date Linux.
Some packages of the book will not be build, because they are not required for a minimal qLinux system. Even the order of building packages will not be strict covered.
Content
        Preparations
        Build the Cross-Toolchain
            Musl libc
        Temporary Tools Introduction
            Build Temporary Tools (Part I)
            Prepare the Chroot Environment
            Build Temporary Tools (Part II)
        Build the Basic System
            Core Packages
            Alternative Packages
            Optional Packages
        System Configuration
        Build the Linux kernel
        Make the System Bootable
        Reboot and Finish (TODO)
        Intermediate Result
        Additional Software
        The X Window System
Appendix
        Filesystem Hierarchy
        Notes for Debugging
        Patches
        How to change GNU autotools
                fix-dev-null
Credits
Much thanks to the (B)LFS development team for their work. Credits goes also to the Alpine and Gentoo developers, especially for their musl patches.
        
        
Next >> Preparations