下面具体来看一下,在HREL6.1上如何重新编译内核,并升级到3.0.4的详细步骤:
1、到http://www.doczj.com/doc/ad2f31b9dd3383c4bb4cd260.html上下载相应的内核源码包
[root@yufei kernel]# wget
http://www.doczj.com/doc/ad2f31b9dd3383c4bb4cd260.html/pub/linux/kernel/v3.0/linux-3.0.4.tar.bz2
--2011-09-06 10:41:45--
http://www.doczj.com/doc/ad2f31b9dd3383c4bb4cd260.html/pub/linux/kernel/v3.0/linux-3.0.4.tar.bz2 Resolving http://www.doczj.com/doc/ad2f31b9dd3383c4bb4cd260.html... 130.239.17.5, 149.20.4.69, 199.6.1.165, ... Connecting to http://www.doczj.com/doc/ad2f31b9dd3383c4bb4cd260.html|130.239.17.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76759291 (73M) [application/x-bzip2]
Saving to: “linux-3.0.4.t ar.bz2”
100%[========================================= ==============>] 76,759,291 207K/s in 6m 44s
2011-09-06 10:48:32 (185 KB/s) - “linux-3.0.4.tar.bz2” saved [76759291/76759291]
2、确认你的系统中已经具备了编译软件的基本条件,也就是要安装make gcc gcc-c++ ncurses-devel和库工具等等