Dragonfly 发表于 2003-9-23 01:04:11

make sure u unselect it.

linhuchong 发表于 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 drivers/video/matrox/matroxfb_base.o
drivers/video/matrox/matroxfb_base.c:1250: warning: `inverse' defined but not used
CC drivers/video/matrox/matroxfb_accel.o
CC drivers/video/matrox/matroxfb_DAC1064.o
CC drivers/video/matrox/matroxfb_Ti3026.o
CC drivers/video/matrox/matroxfb_misc.o
CC drivers/video/matrox/g450_pll.o
CC drivers/video/matrox/i2c-matroxfb.o
CC 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 drivers/video/matrox/matroxfb_crtc2.o
CC sound/usb/usbaudio.o
CC sound/usb/usbmixer.o
CC sound/usb/usbmidi.o
LD sound/usb/snd-usb-audio.o
CC net/8021q/vlan.o
CC net/8021q/vlan_dev.o
CC net/8021q/vlanproc.o
LD net/8021q/8021q.o
CC 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: *** Error 1
make: *** Error 2
make: *** Error 2

fudaming 发表于 2003-9-23 20:04:42

make sure u unselect it.


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

Dragonfly 发表于 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.

:-D

Dragonfly 发表于 2003-9-23 21:56:46

make sure u unselect it.


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

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/

fudaming 发表于 2003-9-24 14:33:01

thx for your suggestion,however,i will try again,i don't believe i can not do it.

conke 发表于 2003-9-24 21:00:20

我已经搞定了:在网络选项里(网项进去以后的选第二行,再进去),找到下面有个ipv6的,它下面一行(可能是下面两三行)有ATM这三个字的,默认是选上的,去掉它就OK了!
肯定行,如果再出现这样的错误,与我聊系:
ICQ:288605596
MAIL:[email protected]

younker 发表于 2003-9-25 09:31:23

make mrproper的时候告诉i386/power下面没有makefile,
make config的时候不能编译bin2c.c文件,郁闷至极

2.6.0-test5-mm4

divey 发表于 2003-9-25 09:40:06

我现在编译都正常了,make install也正常但
就是起不来机器呀,
kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx
出这样的提示不知道为什么
能是我的linux不在8G以内的事吗?

fudaming 发表于 2003-9-25 17:36:52

我已经搞定了:在网络选项里(网项进去以后的选第二行,再进去),找到下面有个ipv6的,它下面一行(可能是下面两三行)有ATM这三个字的,默认是选上的,去掉它就OK了!


多谢了!

Dragonfly 发表于 2003-9-26 05:31:11

kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx

this is the original text?

younker 发表于 2003-9-26 08:37:18

编译完成,不过还是一堆的错误。
modprobe或者lsmod等程序好像都不好用

Dragonfly 发表于 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.:-D

divey 发表于 2003-9-27 08:59:41

我内核是2.4.20-20.9的。

Dragonfly 发表于 2003-9-27 10:25:28

kernel panic : XXXXXXXXXXXXXXXpassing init= xxxxxxxxxxx

this is the original text?

answer my question, pls. otherwise i do not know u problem
页: 1 [2] 3
查看完整版本: 编译 2.6.0-test5的时候出错