免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3078 | 回复: 11
打印 上一主题 下一主题

windows2003+VMware Workstation 5.5+Centos-4-3升级2.6.17有错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-04 15:23 |只看该作者 |倒序浏览
windows2003+VMware Workstation 5.5+Centos-4-3升级2.6.17有错误

我的编译过程是:
cd /usr/src/linux-2.6.17
make mrproper
make menuconfig(我什么都没有选择,默认原先的配置>
make
make modules
make modules_install

然后有人说要copy几个文件

# cp /usr/src/linux-2.6.17.6/arch/i386/boot/bzImage /boot/vmlinuz-2.6.17.6
# cp /usr/src/linux-2.6.17.6/System.map /boot/System.map-2.6.17.6
# cp /usr/src/linux-2.6.17.6/.config /boot/config-2.6.17.6

可还是不行

grub01.jpg (41.47 KB, 下载次数: 40)

grub01.jpg

grub02.jpg (84.69 KB, 下载次数: 34)

grub02.jpg

论坛徽章:
0
2 [报告]
发表于 2006-10-04 15:42 |只看该作者
init被灭了

论坛徽章:
0
3 [报告]
发表于 2006-10-04 16:01 |只看该作者
我想请教一下,我的编译是不是哪里有问题?这种方法正确吗?

是缺少了哪一个步骤,还是哪一步做错了,我希望得到帮助..

论坛徽章:
0
4 [报告]
发表于 2006-10-04 16:08 |只看该作者
make modules报如下错误:

2y.mod.o
  LD [M]  sound/usb/usx2y/snd-usb-usx2y.ko
[root@localhost linux-2.6.17]# make modules
  CHK     include/linux/version.h
  Building modules, stage 2.
  MODPOST
WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_init_one' (at offset 0xee) and 'he_remove_one'
WARNING: drivers/atm/horizon.o - Section mismatch: reference to .init.text: from .text between 'hrz_probe' (at offset 0x1487) and 'hrz_remove_one'
WARNING: drivers/atm/lanai.o - Section mismatch: reference to .init.text: from .text between 'sram_test_pass' (at offset 0x160) and 'sram_test_and_clear'
WARNING: drivers/block/cpqarray.o - Section mismatch: reference to .init.text: from .text between 'cpqarray_register_ctlr' (at offset 0x620) and 'alloc_cpqarray_hba'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_teles0 from .text between 'checkcard' (at offset 0x88e) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_s0box from .text between 'checkcard' (at offset 0x8a6) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_telespci from .text between 'checkcard' (at offset 0x8b2) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_avm_a1 from .text between 'checkcard' (at offset 0x8be) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_avm_pcipnp from .text between 'checkcard' (at offset 0x8d6) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_ix1micro from .text between 'checkcard' (at offset 0x8ee) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_diva from .text between 'checkcard' (at offset 0x8fa) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_asuscom from .text between 'checkcard' (at offset 0x906) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_TeleInt from .text between 'checkcard' (at offset 0x912) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_sportster from .text between 'checkcard' (at offset 0x92a) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_mic from .text between 'checkcard' (at offset 0x936) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_netjet_s from .text between 'checkcard' (at offset 0x942) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_hfcs from .text between 'checkcard' (at offset 0x94e) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_hfcpci from .text between 'checkcard' (at offset 0x95a) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_niccy from .text between 'checkcard' (at offset 0x96f) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_isurf from .text between 'checkcard' (at offset 0x97 and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_saphir from .text between 'checkcard' (at offset 0x981) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_bkm_a4t from .text between 'checkcard' (at offset 0x98a) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_sct_quadro from .text between 'checkcard' (at offset 0x993) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_gazel from .text between 'checkcard' (at offset 0x99c) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_w6692 from .text between 'checkcard' (at offset 0x9a5) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_netjet_u from .text between 'checkcard' (at offset 0x9ae) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_enternow_pci from .text between 'checkcard' (at offset 0x9b7) and 'HiSax_shiftcards'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .text between 'AVM_card_msg' (at offset 0x1e145) and 'hdlc_fill_fifo'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:init_ipacx from .text between 'Diva_card_msg' (at offset 0x23ecd) and 'ph_command'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inithfc from .text between 'TeleInt_card_msg' (at offset 0x268fe) and 'GetFreeFifoBytes'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'NETjet_S_card_msg' (at offset 0x2efca) and 'NETjet_ReadIC'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'NETjet_U_card_msg' (at offset 0x30932) and 'ph_command'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:clear_pending_icc_ints from .text between 'NETjet_U_card_msg' (at offset 0x30940) and 'ph_command'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:initicc from .text between 'NETjet_U_card_msg' (at offset 0x30947) and 'ph_command'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:init2bds0 from .text between 'hfcs_card_msg' (at offset 0x3190a) and 'dummyf'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .text between 'hfcpci_card_msg' (at offset 0x362b1) and 'fifo_select'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:clear_pending_jade_ints from .text between 'BKM_card_msg' (at offset 0x3b27e) and 'jade_write_indirect'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:initjade from .text between 'BKM_card_msg' (at offset 0x3b28c) and 'jade_write_indirect'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .text between 'w6692_card_msg' (at offset 0x3f4a4) and 'ReadByteAmd7930'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'enpci_card_msg' (at offset 0x3f637) and 'enpci_interrupt'
WARNING: drivers/net/82596.o - Section mismatch: reference to .init.text:i82596_probe from .text between 'init_module' (at offset 0x2097) and 'cleanup_module'
WARNING: drivers/net/pcnet32.o - Section mismatch: reference to .init.data: from .text between 'pcnet32_probe_vlbus' (at offset 0xcb9) and 'pcnet32_probe_pci'
WARNING: drivers/net/pcnet32.o - Section mismatch: reference to .init.data: from .text between 'pcnet32_probe_vlbus' (at offset 0xcc0) and 'pcnet32_probe_pci'
WARNING: drivers/net/sis900.o - Section mismatch: reference to .init.text:sis900_mii_probe from .text between 'sis900_probe' (at offset 0x4aa) and 'sis900_default_phy'
WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.text:smc_init from .text between 'init_module' (at offset 0x980) and 'cleanup_module'
WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.data: from .data between 'smcdev.1' (at offset 0x44) and '__param_str_io'
WARNING: drivers/net/tokenring/3c359.o - Section mismatch: reference to .init.textl_init from .text between 'xl_probe' (at offset 0x1fb) and 'xl_hw_reset'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe1' (at offset 0x909) and 'get_sram_size'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe1' (at offset 0x965) and 'get_sram_size'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe1' (at offset 0xa0c) and 'get_sram_size'
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text: from .text between 'setup_card' (at offset 0x4792) and 'init_module'
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text:smctr_probe from .text between 'init_module' (at offset 0x47ef) and 'cleanup_module'
WARNING: drivers/scsi/megaraid/megaraid_mbox.o - Section mismatch: reference to .init.text: from .text between 'megaraid_probe_one' (at offset 0x230) and 'megaraid_detach_one'
WARNING: drivers/scsi/qla1280.o - Section mismatch: reference to .init.data: from .text between 'qla1280_get_token' (at offset 0x2b32) and 'qla1280_probe_one'
WARNING: drivers/scsi/qla1280.o - Section mismatch: reference to .init.data: from .text between 'qla1280_get_token' (at offset 0x2b54) and 'qla1280_probe_one'
WARNING: fs/jffs2/jffs2.o - Section mismatch: reference to .init.text:jffs2_zlib_init from .text between 'jffs2_compressors_init' (at offset 0x526) and 'jffs2_compressors_exit'
[root@localhost linux-2.6.17]#

论坛徽章:
0
5 [报告]
发表于 2006-10-04 16:13 |只看该作者
在不理会以上的错误,我直接继续运行make modules_install,中间没有任何报错,直接跳出
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map  2.6.17; fi

这个结果,

然后接下来,我就不知道怎么操作了,reboot也好.cp bzImage也好,都不能进入新的内核,请指点谢谢...

论坛徽章:
0
6 [报告]
发表于 2006-10-05 08:20 |只看该作者
以下是/etc/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/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.17)
        root (hd0,0)
        kernel /vmlinuz-2.6.17 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.17.img
title CentOS-4 i386 (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


附件中是/boot的文件清单

grub03.jpg (58.01 KB, 下载次数: 39)

grub03.jpg

论坛徽章:
0
7 [报告]
发表于 2006-10-05 08:28 |只看该作者
有没有忘记make clean呢?

用make config配置好以后,
make dep
make clean

make bzImage

有一次我就是没做make clean,结果内核启动到LVM就下不去了,root partition无法挂载,呵呵,和你那里的症状类似

[ 本帖最后由 langue 于 2006-10-5 08:30 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2006-10-05 11:31 |只看该作者
我重新运行:
make mrprpoer
make menuconfig
make clean
make
make install
make modules
make modules_install install
按上面的顺利与方法运行,还是不进能进新的内核.

请求帮助

论坛徽章:
0
9 [报告]
发表于 2006-10-05 12:02 |只看该作者
原帖由 zxychina 于 2006-10-4 15:23 发表
windows2003+VMware Workstation 5.5+Centos-4-3升级2.6.17有错误

我的编译过程是:
cd /usr/src/linux-2.6.17
make mrproper
make menuconfig(我什么都没有选择,默认原先的配置>
...


配置内核什么都不选恐怕是不行的,你的cpu类型,你的硬件设备驱动....
你这种编译能启动才觉得奇怪了...:em11:

论坛徽章:
0
10 [报告]
发表于 2006-10-05 12:16 |只看该作者
最重要的就是在make menuconfig的时候,配置的内容一定要看懂。
否则问题还多呢,就算运气好启动了内核也可能用不起某些设备。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP