- 论坛徽章:
- 0
|
我的系统是RedHat AS 4 U3 ,内核是2.6.9-34,我在http://kernel.org/pub/linux/kernel/v2.6/下载linux-2.6.20.tar.gz内核包
我的大致操作是:
1. 把下载的包复制到/usr/src目录下,并解压,建立链接文件
ln -s linux-2.6.20 linux (在/usr/src目录下)
2. 配置和编译内核
make menuconfig
我的选项是:
Device Drivers --->;Network device support --->Ethernet (10 or 100Mbit) ---><*> AMD PCnet32 PCI support
File system--->(以下9个选项是关于ext2和ext3文件系统配置,全部选上)
Second extended fs support
Ext2 extended attributes
Ext2 POSIX Access Control Lists
Ext2 Security Labels
Ext3 journalling file system support
Ext3 extended attributes
Ext3 POSIX Access Control Lists
Ext3 Security Labels
JBB (ext3) debugging support
File system--->DOS/FAT/NT Filesystems --->选上“NTFS file system support
其它都是默认选项,没有改变
3. make bzImage,make modules,make modules_install,make install
以上操作没有报错
4. # cp /usr/src/linux-2.6.20/arch/i386/boot/bzImage /boot/vmlinuz-2.6.120
# cp /usr/src/linux-2.6.20/System.map /boot/System.map-2.6.20
# cd /boot (进入boot目录)
# rm –rf System.map (删除原来的连接)
# ln –s System.map-2.6.18 System.map (重新建立连接)
5 . 修改grub.conf文件
我的配置是:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p2
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.20)
root (hd0,0)
kernel /vmlinuz-2.6.20 ro root=LABEL=/dev/cciss/c0d0p2 rhgb quiet
initrd /initrd-2.6.20.img
title Red Hat Enterprise Linux AS (2.6.9-34.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.EL.img
(/dev/cciss/c0d0p2是我的/分区)
6 . 重启系统,选择2.6.20内核,报错,见下图
[ 本帖最后由 zhangjian7879 于 2007-3-14 17:06 编辑 ] |
|