Linux内核源代码架构分析

Stage 2
Getting Started with the Kernel.
Objectives

 1. Obtaining the kernel source

Linux内核源代码架构分析

 2. Linux source tree

Linux内核源代码架构分析

 3. Building the kernel

Linux内核源代码架构分析

 4. Different nature

Linux内核源代码架构分析

  • 制作补丁和打补丁
  • 在虚拟机上安装自己编译的内核
  • 虚拟机上安装驱动模块
    - lsmod | grep
    - insmod
  • 查看内核信息,模块安装会打印信息
    - dmesg | less
    - vim /var/log/messages
    - dmesg -c