Skip to content

foroughkoohi/LFS

Repository files navigation

Linux From Scratch (LFS) Build Journey

LFS Logo

Project Overview

This repository documents my journey building Linux From Scratch (LFS) version 12.3. This is a hands-on project.

What is Linux From Scratch?

Linux From Scratch (LFS) is a project that provides you with step-by-step instructions for building your own custom Linux system, entirely from source code. It's an excellent way to learn about the inner workings of Linux systems.

Progress Status

Current Status: Completed Chapter 5 - Constructing Cross-Compilation Tools

Build Documentation

Phase 1: Disk Preparation & Environment Setup

Phase 2: Cross-Compilation Tools (Chapter 5)

  • binutils.md - Building Binutils 2.44 (Pass 1) - COMPLETED

Technical Details

Host System

  • Host OS: Ubuntu/Linux
  • Architecture: x86_64
  • Target: Custom LFS system

Disk Configuration

  • Disk: /dev/sdb
  • Partition Scheme: GPT
  • Filesystems: EXT2 (boot), EXT4 (root)
  • Mount Point: /mnt/lfs

Key Components Built

  • Binutils 2.44 - First pass compilation completed
  • GCC - Next in queue
  • Glibc - To be built
  • Cross-compilation toolchain - In progress

Screenshots

All build steps include terminal screenshots documenting the process, outputs, and verification steps.

Build Process Highlights

Completed Steps:

  1. Disk partitioning with GPT and proper filesystems
  2. LFS user creation with secure environment setup
  3. Package management and source organization
  4. Host system verification for compatibility
  5. Binutils cross-compilation (First pass)

Upcoming Steps:

  • GCC cross-compilation
  • Glibc compilation
  • Cross-toolchain completion
  • Building temporary system
  • Installing core utilities

Learning Outcomes

Through this project, I've gained deep understanding of:

  • Linux boot process and disk partitioning
  • Cross-compilation techniques
  • Package management and dependency resolution
  • System configuration and environment variables
  • Build systems and compilation processes

Technical Skills Demonstrated

  • Shell scripting and command-line proficiency
  • System administration and disk management
  • Software compilation from source
  • Debugging and troubleshooting build issues
  • Documentation and process tracking

Resources Used

Project Goals

  • Understand Linux system internals
  • Build complete Linux system from source
  • Create custom Linux distribution
  • Learn advanced system administration
  • Gain low-level Linux knowledge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages