Skip to content

nst-sdc/lfs-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LFS on Apple Silicon: Build Your Own Linux

LFS Host VM Guest

This repository is a practical, checkpoint-driven guide for building Linux From Scratch (arm64-r13.0-74, systemd edition) on Apple Silicon.

Reference book: https://www.linuxfromscratch.org/~xry111/lfs/view/arm64-systemd/

Why This Guide

  • Real host target: Apple Silicon + VMware + Debian ARM64.
  • Step-by-step structure by phases, not giant walls of text.
  • Verification points to catch failures early.
  • Written for repeatability and team sharing.

Build Pipeline

flowchart LR
  A[00 Setup] --> B[01 Environment]
  B --> C[02 Cross Toolchain]
  C --> D[03 Chroot]
  D --> E[04 System Packages]
  E --> F[05 Boot]
  F --> G[Bootable LFS]
Loading

Effort Split by Phase

pie title Relative Build Effort
  "Setup + Host Prep" : 10
  "Environment + Sources" : 10
  "Cross Toolchain" : 30
  "Chroot Entry" : 5
  "System Packages" : 30
  "Boot + Kernel + GRUB" : 15
Loading

Requirements Snapshot

Host machine

Requirement Minimum Recommended
Mac architecture Apple Silicon (M-series) Apple Silicon (M-series)
RAM 8 GB 12 GB
Free disk space on Mac 80 GB 100 GB

VMware Fusion VM

Item Value
VM software VMware Fusion 13
Guest OS Debian 13 Trixie ARM64
Primary disk 30 GB (Debian OS)
Secondary disk 40 GB (attached, unformatted)
Internet Required in VM

Repo Navigation

00 Setup

01 Environment

02 Cross Toolchain

03 Chroot

04 System Packages

05 Boot

Reference

Package Baseline

Component Version
Binutils 2.46.0
GCC 15.2.0
Glibc 2.43
Linux kernel 6.19.10
Systemd 260.1
GRUB 2.14

Guardrails

  • Use make -j$(nproc) unless a step says otherwise.
  • Remove each source directory after install.
  • Export LFS=/mnt/lfs in every relevant shell.
  • Run cross-toolchain steps as lfs, and full system steps as root inside chroot.
  • Do not skip verification commands; they prevent multi-day rework.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages