Howto: Compile and package Linux kernel 3.4.7
2012-08-07 22:08
288 查看
Compiling kernel - and packaging it the Debian way -
The latest stable Linux kernel is 3.4.7Prerequisites:
The user should belong to group src and the following packages should be installed:
wget tar bzip2 build-essential libncurses-dev kernel-package fakeroot
Compiling and packaging:
cd /usr/src/ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.7.tar.bz2 tar jxvf linux-3.4.7.tar.bz2 cp /boot/config-$(uname -r) /usr/src/linux-3.4.7/.config cd linux-3.4.7; make menuconfig make-kpkg clean fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image kernel-headers sudo dpkg -i ../linux-image-3.4.7_custom.1.0_i386.deb
Tips:
To optimize your kernel further you might like to try make localmodconfig instead ofmake menuconfig, it should strip unused modules from your kernel config.
Caution: unplugged devices won't have support in kernel anymore.
If your machine has multiple cores you might also want to add the following line to/etc/kernel-pkg.conf before compiling:
CONCURRENCY_LEVEL=3 ##LEVEL can be set to number of cores x2
相关文章推荐
- how to compile and install linux kernel
- (编译适用于ARM的linux内核并进行QEMU仿真)Compile Linux kernel 3.2 for ARM and emulate with QEMU
- linux kernel API and google android compile guide
- HOWTO: Create and submit your first Linux kernel patch using GIT
- HOWTO: Create and submit your first Linux kernel patch using GIT
- Milestone/A853/XT702/umts_sholes Compile your own Android ROM and Customize your own linux kernel
- HOWTO_Compile Linux kernel Documentation for manpages
- HOWTO: Create and submit your first Linux kernel patch using GIT
- Howto Compile and Install Linux Kernel 3.3rc / 3.2 / 3.1 / 3.0 in Ubuntu 11.10, 11.04, 10.10 and 10.
- Linux kernel and Android suspend/resume
- Kinect sensor and Linux kernel driver
- CPU frequency and voltage scaling code in the Linux(TM) kernel
- unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make a
- Linux kernel scaling: Ports and port Cycling
- Debian / Ubuntu linux install kernel headers package
- linux kernel compile
- What is the difference between the Linux Kernel and the Android Kernel?
- Create Jffs2 for Linux Kernel 2.4(for arm and mips)
- Linux Kernel Testing and Debugging
- Basic Data Structures and Algorithms in the Linux Kernel