linux kernel compile update etc
2011-05-18 15:15
232 查看
1. get source
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.6.tar.bz2
2. unzip the source
tar xvjf linux-2.6.38.6.tar.bz2
cd linux-2.6.38.6
Now you can start kernel configuration by typing any one of the command:
$ make menuconfig - Text based color menus, radiolists & dialogs. This option also useful on remote server if you wanna compile kernel remotely.
$ make xconfig - X windows (Qt) based configuration tool, works best under KDE desktop
$ make gconfig - X windows (Gtk) based configuration tool, works best under Gnome Dekstop.
3. compile kernel
3.1 make menuconfig
3.2 make
3.3 make modules
3.4 make modules_install
3.5 make install
3.6 make initrd
cd /boot
mkinitramfs -v -k 2.6.38.6 -o initrd.img-2.6.38.6
4. Configuring GRUB
4.1 (SKIP IF USING GRUB 2 )
vi /boot/grub/menu.lst
title Debian GNU/Linux, kernel 2.6.38.6
root (hd0,1)
kernel /boot/vmlinuz-2.6.38.6 root=/dev/sda2 ro quiet vga=791
initrd /boot/initrd.img-2.6.38.6
4.2 GRUB 2
update-grub2
5. Notes
Please do with root priviledge.
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.6.tar.bz2
2. unzip the source
tar xvjf linux-2.6.38.6.tar.bz2
cd linux-2.6.38.6
Now you can start kernel configuration by typing any one of the command:
$ make menuconfig - Text based color menus, radiolists & dialogs. This option also useful on remote server if you wanna compile kernel remotely.
$ make xconfig - X windows (Qt) based configuration tool, works best under KDE desktop
$ make gconfig - X windows (Gtk) based configuration tool, works best under Gnome Dekstop.
3. compile kernel
3.1 make menuconfig
3.2 make
3.3 make modules
3.4 make modules_install
3.5 make install
3.6 make initrd
cd /boot
mkinitramfs -v -k 2.6.38.6 -o initrd.img-2.6.38.6
4. Configuring GRUB
4.1 (SKIP IF USING GRUB 2 )
vi /boot/grub/menu.lst
title Debian GNU/Linux, kernel 2.6.38.6
root (hd0,1)
kernel /boot/vmlinuz-2.6.38.6 root=/dev/sda2 ro quiet vga=791
initrd /boot/initrd.img-2.6.38.6
4.2 GRUB 2
update-grub2
5. Notes
Please do with root priviledge.
相关文章推荐
- linux/errno.h: No such file or directory (kernel compile error)
- Compile linux kernel source
- How to: Compile Linux kernel 2.6.XX
- Compile the latest Kernel(linux-3.1-rc4) On Ubuntu Plateform
- Howto Compile and Install Linux Kernel 3.3rc / 3.2 / 3.1 / 3.0 in Ubuntu 11.10, 11.04, 10.10 and 10.
- Cross compile linux kernel
- Android—Step by step - Compile kernel module for Samsung Galaxy S3 (Linux)
- when you update linux kernel you need recompile virtual kernel,otherwise it couldn't work
- How to: Compile Linux kernel 2.6
- how to compile the linux kernel
- Android 4.0 x86 Linux3.0.8内核编译简介/Compile kernel for Android-x86
- Compile Linux kernel
- How to: Compile Linux kernel 2.6
- The VirtualBox kernel modules do not match this version of VirtualBox 解决 (linux update,nvidia失败)
- How-to: Update the Linux kernel
- linux kernel API and google android compile guide
- linux kernel stable compile on ubuntu
- (编译适用于ARM的linux内核并进行QEMU仿真)Compile Linux kernel 3.2 for ARM and emulate with QEMU
- Update Linux Kernel from 2.4.29 to 2.6. 16.8
- How to: Compile Linux kernel 2.6