Linux Kernel Building How-To

Very Basic Kernel Building Steps


Note: All of this should be done as root to avoid any potential conflicts...

Configuring

  • make mrproper
  • make xconfig
    • config, menuconfig are alternatives if you're not running X

Building

  • make dep
  • make clean
  • make boot
  • make modules

Installing

  • rm -rf /lib/modules/*
    • if you have other modules in there be careful as this removes them all
  • make modules_install
  • mv vmlinux /boot/
    • Make sure to save your old kernel
    • Back it up because if the new one fails you're screwed without it
  • reboot