linux kernel compile update etc

来源:互联网 发布:最好的短线炒股软件 编辑:程序博客网 时间:2024/05/22 00:26

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.

 

 

 

 

原创粉丝点击