kevinhu 發表於 2014-9-15 14:37:33

Kernel 3.12 Released – Install and Compile

本帖最後由 kevinhu 於 2015-5-24 11:03 編輯

The newly released Kernel 3.12 has several new features, including some new drivers for the NVIDIA Optimus, and the Radeon Kernel Graphics Driver. It also offers huge improvements to the EXT4 filesystem, and some updates to XFS and Btrfs.

for debian :

http://www.tecmint.com/kernel-compilation-in-debian-linux/

1.首先你的系統裡需要有安裝上 fakeroot kernel-package 兩個套件
#apt-get install fakeroot kernel-package
2.到 Linux kernel 網站上找你要的 kernel source code 的壓縮包下載到電腦上
# wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.tar.xz
3.解開壓縮包
# tar -xvJf linux-3.12.tar.xz
4.變更作業路徑到kernel soure code 目錄下
# cd linux-3.12
5.把原先的開機kenrnel 設定檔複製到目前的作業目錄下并更名為 .config
# cp /boot/config-'uname –r' .config
6.調整要新編的 kernel 參數設定
# apt-get install libncurses5-dev --> 使用 menuconfig 需要先安裝此套件
# make menuconfig
調整參數可能需要按你的需求來設定
7.重編前清除source tree
# make-kpkg clean
8.開始編kernel
# export CONCURRENCY_LEVEL=3 --> 使用多核CUP時可將參數設為 5
# fakeroot make-kpkg --append-to-version "-customkernel" --revision "1" --initrd kernel_image kernel_headers
9.編好的kernel上掛
# dpkg -i linux-image-3.12.0-customkernel_1_i386.deb linux-headers-3.12.0-customkernel_1_i386.deb
10.重開機選新的核心
11.必要是可把舊的kernel移除
# apt-get remove linux-image-(non-working-kernel)


註:切記要用root身份來做,編完有問題可以重新再設定參數再編直到滿意為止。
頁: [1]
查看完整版本: Kernel 3.12 Released – Install and Compile