Linux LPIC2 201
HomeCertifications
  • Welcome!
  • The Company
    • Vision and Values
    • Meet the Team!
  • Exam Info
    • Topics
    • Schedule the Exam
  • Linux Kernel and System Startup
    • uname
    • Files to Investigate
  • Linux Kernel Basics
    • Documentation
    • Kernel Files
    • Init RAM disks
      • InitRD
      • InitRAMfs
      • InitRD vs InitRAMfs
    • Kernel Source
  • Compiling Linux Kernel
    • Preparation
    • Download Kernel
    • Compile the Kernel
    • Grub Configuration
    • mkinitrd vs dracut
    • Kernel Runtime Tools
      • Load Kernel Modules
  • SysV init
    • History
    • /etc/inittab
    • Runlevels
      • Verify Current Runlevel
      • Change Runlevel
    • Create a SysV Init Script
    • Page 2
    • update-rc.d
  • SystemD
    • Page 1
Powered by GitBook
On this page

Was this helpful?

  1. Compiling Linux Kernel

Compile the Kernel

SymLink new Kernel dir into SRC

ln -s /usr/src/kernels/linux-5.16.14 /usr/src/linux
/usr/src/linux
yum grouplist "Development Tools"
yum groupinfo "Development Tools"
yum groupinstall "Development Tools"
yum install ncurses-devel

Folder /usr/src/linux

make mrproper
make menuconfig
make bzimage
make modules
make modules_install
make install
[root@server linux]# pwd -P
/usr/src/kernels/linux-5.16.14
make clean
make menuconfig
ls -la .config
make bzImage
make modules
make modules_install
PreviousDownload KernelNextGrub Configuration

Last updated 3 years ago

Was this helpful?