QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: divey

编译 2.6.0-test5的时候出错

[复制链接]
发表于 2003-9-23 01:04:11 | 显示全部楼层
make sure u unselect it.
回复

使用道具 举报

发表于 2003-9-23 08:00:12 | 显示全部楼层
我在 ML1.1 下 编译 2.6.0-test5, make bzImage 成功, 但是 make modules 时, 和上面的朋友得到的错误几乎一样!
我搜索了一下有关站点, 得到如下的提示:
================================================================
Sympton: The kernel compiles ok producing bzImage but 'make modules' fails.

Solution: This one is very peculiar of Redhat distribution but may happen to other distributions. There are some "left over" files which are hanging and causing problems. The remedy is to do 'make mrproper' and 'make clean' and then do 'make modules'. But you may want to copy the saved config file as shown below:

bash# cd /usr/src/linux
bash# mkdir /usr/src/kernelconfigs ;
bash# cp /usr/src/linux/.config  /usr/src/kernelconfigs/.config.save;
bash# cp /usr/src/linux/.config  /usr/src/linux/configs/.config.save  # ExtraSafe
bash# cp /boot/config*  /usr/src/linux/configs/  # ExtraSafe
bash# make clean
bash# make mrproper  # "MUST DO THIS mrproper", otherwise you will face hell lot of problems !!
bash# make clean
bash# cp /usr/src/kernelconfigs/.config.save .config  # In case you want to reuse the config file ??
=====================================================================

然而, 当我做 'make mrproper' and 'make clean' 时, 辛苦编译的 kernel 都被删掉了. 哪位兄弟摸索一下看看.


以下是我 make modules 时得到的错误信息:
...... ......
drivers/video/console/mdacon.c: In function `mdacon_init':
drivers/video/console/mdacon.c:374: warning: `MOD_INC_USE_COUNT' is deprecated (declared at include/linux/module.h:482)
drivers/video/console/mdacon.c: In function `mdacon_deinit':
drivers/video/console/mdacon.c:384: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at include/linux/module.h:494)
  CC [M]  drivers/video/matrox/matroxfb_base.o
drivers/video/matrox/matroxfb_base.c:1250: warning: `inverse' defined but not used
  CC [M]  drivers/video/matrox/matroxfb_accel.o
  CC [M]  drivers/video/matrox/matroxfb_DAC1064.o
  CC [M]  drivers/video/matrox/matroxfb_Ti3026.o
  CC [M]  drivers/video/matrox/matroxfb_misc.o
  CC [M]  drivers/video/matrox/g450_pll.o
  CC [M]  drivers/video/matrox/i2c-matroxfb.o
  CC [M]  drivers/video/matrox/matroxfb_maven.o
drivers/video/matrox/matroxfb_maven.c: In function `maven_compute_bwlevel':
drivers/video/matrox/matroxfb_maven.c:347: warning: duplicate `const'
drivers/video/matrox/matroxfb_maven.c:348: warning: duplicate `const'
  CC [M]  drivers/video/matrox/matroxfb_crtc2.o
  CC [M]  sound/usb/usbaudio.o
  CC [M]  sound/usb/usbmixer.o
  CC [M]  sound/usb/usbmidi.o
  LD [M]  sound/usb/snd-usb-audio.o
  CC [M]  net/8021q/vlan.o
  CC [M]  net/8021q/vlan_dev.o
  CC [M]  net/8021q/vlanproc.o
  LD [M]  net/8021q/8021q.o
  CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
回复

使用道具 举报

发表于 2003-9-23 20:04:42 | 显示全部楼层
[quote:e670faa8ca="Dragonfly"]make sure u unselect it.[/quote]


我把整个atm都没选,结果到后来还是要编译,直接修改.config文件有效果吗?
在.config文件里atm有关的有哪些选项啊?
回复

使用道具 举报

发表于 2003-9-23 21:55:48 | 显示全部楼层
a suggestion
if u are a starter, pls try to use the 2.4.x now and gain enough experience.
if u think u are ok, then try to use 2.6.0-test5 and with this -mm4 patch
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test5/2.6.0-test5-mm4/

my understanding is that if i want to try 2,6.0, i will do this after i can easily make, install, boot and patch a kernel.

回复

使用道具 举报

发表于 2003-9-23 21:56:46 | 显示全部楼层
[quote:a696254623="fudaming"][quote:a696254623="Dragonfly"]make sure u unselect it.[/quote]


我把整个atm都没选,结果到后来还是要编译,直接修改.config文件有效果吗?
在.config文件里atm有关的有哪些选项啊?[/quote]

try 2.6.0-test5-mm4, which is more stable than 2.6.0-test5. dl it from
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test5/2.6.0-test5-mm4/
回复

使用道具 举报

发表于 2003-9-24 14:33:01 | 显示全部楼层
thx for your suggestion,however,i will try again,i don't believe i can not do it.
回复

使用道具 举报

发表于 2003-9-24 21:00:20 | 显示全部楼层
我已经搞定了:在网络选项里(网项进去以后的选第二行,再进去),找到下面有个ipv6的,它下面一行(可能是下面两三行)有ATM这三个字的,默认是选上的,去掉它就OK了!
肯定行,如果再出现这样的错误,与我聊系:
ICQ:288605596
MAIL:[email protected]
回复

使用道具 举报

发表于 2003-9-25 09:31:23 | 显示全部楼层
make mrproper的时候告诉i386/power下面没有makefile,
make config的时候不能编译bin2c.c文件,郁闷至极

2.6.0-test5-mm4
回复

使用道具 举报

 楼主| 发表于 2003-9-25 09:40:06 | 显示全部楼层
我现在编译都正常了,make install也正常但
就是起不来机器呀,
kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx
出这样的提示不知道为什么
能是我的linux不在8G以内的事吗?
回复

使用道具 举报

发表于 2003-9-25 17:36:52 | 显示全部楼层
[quote:fa4c01cb75="conke"]我已经搞定了:在网络选项里(网项进去以后的选第二行,再进去),找到下面有个ipv6的,它下面一行(可能是下面两三行)有ATM这三个字的,默认是选上的,去掉它就OK了![/quote]


多谢了!
回复

使用道具 举报

发表于 2003-9-26 05:31:11 | 显示全部楼层
kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx

this is the original text?
回复

使用道具 举报

发表于 2003-9-26 08:37:18 | 显示全部楼层
编译完成,不过还是一堆的错误。
modprobe或者lsmod等程序好像都不好用
回复

使用道具 举报

发表于 2003-9-26 21:37:32 | 显示全部楼层
try 2.4.x at first. and try 2.6 after u gain enough experience points.

when u play game, u start from last session? then u are so easy to be killed.  
回复

使用道具 举报

 楼主| 发表于 2003-9-27 08:59:41 | 显示全部楼层
我内核是2.4.20-20.9的。
回复

使用道具 举报

发表于 2003-9-27 10:25:28 | 显示全部楼层
[quote:d61eb2e28d="Dragonfly"]kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx

this is the original text?[/quote]

answer my question, pls. otherwise i do not know u problem
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 10:23 , Processed in 0.083573 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表