Ubuntu 12.04 编译内核

  1. sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev linux-source qt3-dev-tools libqt3-mt-dev libncurses5 libncurses5-dev fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge kernel-package
  2. wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.4.tar.xz
  3. xz -d linux-3.8.4.tar.xz
  4. tar xvf linux-3.8.4.tar
  5. cd linux-3.8.4/
  6. cp -vi /boot/config-3.5.0-26-generic .config
  7. make oldconfig
  8. make localmodconfig
  9. make menuconfig
  10. make -jN(N最大是你的机器CPU线程数)
  11. sudo make modules_install
  12. sudo make install

参考:http://mitchtech.net/compile-linux-kernel-on-ubuntu-12-04-lts-detailed/

刚编译完3.8.4,3.8.5出来了…

 

(1167)

发表评论