升级linux内核

最近因为实习需要不停的和linux打交道,学到东西也不少,先写下如何升级linux内核的过程吧

2.1                       Preparation

2.1.1      Download a Kernel source code

You can download the kernel source code from the website http://www.kernel.org/

2.1.2      Decompress Kernel source code

First, you should put the source code package into the folder /usr/src.

Then you type: cd /usr/src

                         tar xvfj linux-*.tar.bz2 (* is the rest part of your source code package’s name)

                               cd linux-* (for example: cd linux-2.6.10)

2.2                       Configuration

In this part, it will relate to several important modules. Please be careful.

      Normally using make menuconfig to configure the kernel.

2.2.1      File systems

You must select ext3 file system.

File systemsà[*] Ext3 journalling file system support

                        [*] Ext3 Security label

                        [*] (ext3) debugging support

These three items must be selected, also must be build (mark *). It is very important.

If you miss these, you will get the following error when you running kernel: pivotroot: pivot (/sysroot, /sysroot/initrd) failed.

2.2.2      Network card drivers

You must compile the drivers which fits for your network card. The general network card is realtek 8139, below configuration is consulted.

2.3                       Compiling Process

You can compile according to below commands. It will take around one hour. You can relax J

make bzImage

make modules

make modules_install

make install

Then reboot the computer. Now you can see two kenerls in grub starting screen. You can choose one which you want.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值