TESA Developer Space
  • 👏Welcome
  • 📺TESA Podcast
  • ⭐Getting Started
    • Who we are?
    • What we do?
    • Who's our Networking?
  • 🏫TESA University Program
    • RT-Thread IoT OS
      • University Program
        • RT-Thread Architecture
          • Hardware supported
          • RT-Thread Layers
          • RT-Thread x Renesas
        • Edge AI Workshop
          • Installation & First Coding
          • External IRQ via Button
          • Enable Ulog for FinSH
          • Enable WiFi for FinSH
          • IoT Connectivity using MQTT
          • OpenMV IDE
          • MicroPython Programming
          • TFLite in OpenMV
          • AI Model Training via Edge Impulse
      • RT-Thread on RISC-V
    • FPGA Edge AI
      • Professional Courses
    • Problem-based Learning
      • STM32 Development Toolchain
  • 📚TESA Technical Contents
    • Linux OS
      • Zero to Linux Hero
        • Computer OS Architecture
        • Anatomy of Linux System
          • Busybox
          • Linux Environment for Developer
        • Anatomy of Linux Kernel
          • UNIX/Linux History
          • GNU Project
          • Linux OS Architecture
        • Anatomy of Linux Kernel
          • Linux Kernel Principles
    • Karel Robot
  • 🤘RECOMMENDED by TESA
    • Embedded Systems Roadmap
Powered by GitBook
On this page
  1. TESA Technical Contents
  2. Linux OS
  3. Zero to Linux Hero
  4. Anatomy of Linux System

Linux Environment for Developer

ติดตั้งเครื่องมือและไลบรารีที่เกี่ยวข้อง

sudo apt-get install git autoconf automake gdb fakeroot build-essential libtinfo6 libncurses6 libncursesw6 libncurses-dev xz-utils libssl-dev flex libffi-devel libelf-dev bisonsudo 
sudo su 
apt-get update -y
apt-get install -y yum
yum groupinstall "Development Tools"

หลังจากติดตั้งด้านบนสำเร็จให้รันคำสั่ง

  • autoconf

  • automake

  • gcc / g++

  • gdb

  • git

  • patch

  • flex

ตรวจสอบ kernel version ที่ใช้อยู่ เพื่อเลือก Linux Kernel Source ให้ใกล้เคียงที่สุด

uname -a                                                                                                      ─╯
Linux wiroon-ubuntu 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:58 UTC 2 aarch64 aarch64 aarch64 GNU/Linux

ดาวโหลด Linux Kernel Source (ในที่นี้จะเลือกเวอร์ชัน 5.19.1) เพื่อทำความเข้าใจโครงสร้างภายใน Linux OS

sudo wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.1.tar.gz
tar -xzvf linux-5.19.1.tar.gz
cd linux-5.19.1
cp /boot/config-$(uname -r) .config
make menuconfig
PreviousBusyboxNextAnatomy of Linux Kernel

Output จาก asciinema จากการรันคำสั่ง make menuconfig -->

📚
Link