当前位置: 技术问答>linux和unix
rethat内核升级的2.6.8遇到的问题
来源: 互联网 发布时间:2015-07-25
本文导语: 执行完make config ; make 均正确无误 在执行make install 的时候提示了一大堆类似 depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irnet/irnet.ko depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irda.ko depmod:...
执行完make config ; make 均正确无误
在执行make install 的时候提示了一大堆类似
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irnet/irnet.ko
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irda.ko
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irlan/irlan.ko
的错误,然后执行make install 的时候提示:
[root@localhost linux-2.6.8]# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.8/arch/i386/boot/install.sh 2.6.8 arch/i386/boot/bzImage System.map ""
No module sym53c8xx found for kernel 2.6.8
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
升级内核失败,是什么原因阿,如何纠正?
在执行make install 的时候提示了一大堆类似
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irnet/irnet.ko
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irda.ko
depmod: *** Unresolved symbols in /lib/modules/2.6.8/kernel/net/irda/irlan/irlan.ko
的错误,然后执行make install 的时候提示:
[root@localhost linux-2.6.8]# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.8/arch/i386/boot/install.sh 2.6.8 arch/i386/boot/bzImage System.map ""
No module sym53c8xx found for kernel 2.6.8
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
升级内核失败,是什么原因阿,如何纠正?
|
先安装module-init-tools-3.0.tar.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
# configure --prefix=/
# make moveold
# make all install
# ./generate-modprobe.conf /etc/modprobe.conf
到站点http://people.redhat.com/arjanv/2.6/RPMS.kernel/去下载最新的mkinitrd-3.5.15.1-2.i386.rpm包. 由于mkinitrd程序包依赖于device-mapper包, 而device-mapper包又倚赖于lvm2包, 因此你还要同时下载device-mapper-1.00.07-1.i386.rpm包和lvm2-2.00.08-2.i386.rpm包
#make menuconfig
# make bzImage
# make modules
# make modules_install
# make install
修改etc/grub.conf
增加
title Red Hat Linux (2.6.8)
root(hd0, x) x和老的一样
kernel /boot/vmlinuz-2.6.8 ro root=LABEL=/ 如果这里不认,就改成root=/dev/hdax+1
initrd /boot/initrd-2.6.8.img
http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
# configure --prefix=/
# make moveold
# make all install
# ./generate-modprobe.conf /etc/modprobe.conf
到站点http://people.redhat.com/arjanv/2.6/RPMS.kernel/去下载最新的mkinitrd-3.5.15.1-2.i386.rpm包. 由于mkinitrd程序包依赖于device-mapper包, 而device-mapper包又倚赖于lvm2包, 因此你还要同时下载device-mapper-1.00.07-1.i386.rpm包和lvm2-2.00.08-2.i386.rpm包
#make menuconfig
# make bzImage
# make modules
# make modules_install
# make install
修改etc/grub.conf
增加
title Red Hat Linux (2.6.8)
root(hd0, x) x和老的一样
kernel /boot/vmlinuz-2.6.8 ro root=LABEL=/ 如果这里不认,就改成root=/dev/hdax+1
initrd /boot/initrd-2.6.8.img
|
try make modules_install first
|
make menuconfig;
make;
make modules_install;
make install;
注意你的内核ext2,ext3文件系统的配置。
make;
make modules_install;
make install;
注意你的内核ext2,ext3文件系统的配置。
|
是initrd的配置问题
1。man mkinitrd 学习命令的使用
2。lsmod 查看需要的启动模块
3。手动执行mkinitrd,copy结果到boot目录
sample:
# lsmod
Module Size Used by Not tainted
e1000 50924 2
microcode 5184 0 (autoclean)
keybdev 2976 0 (unused)
mousedev 5656 0 (unused)
hid 22308 0 (unused)
input 6208 0 [keybdev mousedev hid]
usbcore 82592 1 [hid]
ext3 73376 3
jbd 56336 3 [ext3]
mptscsih 39408 6
mptbase 43040 3 [mptscsih]
sd_mod 13452 12
scsi_mod 110488 2 [mptscsih sd_mod]
mptscsih 39408 6
mptbase 43040 3 [mptscsih]
sd_mod 13452 12
scsi_mod 110488 2 [mptscsih sd_mod]
ext3 73376 3
jbd 56336 3 [ext3]
mkinitrd --with=mptscsih --with=sd_mod --with=ext3 initrd-2.4.20-8.img 2.4.20-8
1。man mkinitrd 学习命令的使用
2。lsmod 查看需要的启动模块
3。手动执行mkinitrd,copy结果到boot目录
sample:
# lsmod
Module Size Used by Not tainted
e1000 50924 2
microcode 5184 0 (autoclean)
keybdev 2976 0 (unused)
mousedev 5656 0 (unused)
hid 22308 0 (unused)
input 6208 0 [keybdev mousedev hid]
usbcore 82592 1 [hid]
ext3 73376 3
jbd 56336 3 [ext3]
mptscsih 39408 6
mptbase 43040 3 [mptscsih]
sd_mod 13452 12
scsi_mod 110488 2 [mptscsih sd_mod]
mptscsih 39408 6
mptbase 43040 3 [mptscsih]
sd_mod 13452 12
scsi_mod 110488 2 [mptscsih sd_mod]
ext3 73376 3
jbd 56336 3 [ext3]
mkinitrd --with=mptscsih --with=sd_mod --with=ext3 initrd-2.4.20-8.img 2.4.20-8