QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1364|回复: 15

编译2.5.9的问题

[复制链接]
发表于 2003-7-17 16:24:38 | 显示全部楼层 |阅读模式
编译2.5.9内核后,找不到bzImage和System.map
怎么才能让新内核代替原来的内核呢???
谢谢指点!
发表于 2003-7-17 21:29:10 | 显示全部楼层
what is u kernel source dir?
what is the command u use to compiel kernel?
回复

使用道具 举报

 楼主| 发表于 2003-7-18 08:20:27 | 显示全部楼层
原来的目录结构: /usr/src/linx-2.4 --> linux-2.4.20-8
新内核文件 linux-2.5.9.tar.gz 解压到 /usr/src/
然后
rm linux-2.4
ln -s linux-2.5.9 linux
cd linux
在xwindow下 make menuconfig
make dep
make clean
make bzImage
make modules
make modules_install
接下来不就应该cp /usr/src//linux/arch/i386/boot/bzImage  /boot/vmlinuz-kernel.version
              cp /usr/src/linux/System.map  /boot/System.map-kernel.version
找不到这两个文件!!!
是不是找到了这两个文件的话,复制到/boot下,还要改grub的启动参数??
谢谢指点!
回复

使用道具 举报

发表于 2003-7-18 08:35:41 | 显示全部楼层
is u make bzImage succ? if so, u should be able to find the arch/i386/boot/bzImage.

btw, from 2.5.x, u need not make dep
回复

使用道具 举报

 楼主| 发表于 2003-7-18 08:52:22 | 显示全部楼层
let me try it again!
see u later....
回复

使用道具 举报

 楼主| 发表于 2003-7-18 08:59:50 | 显示全部楼层
果然在make bzImage后出现 Error 1 , 原来没注意.
提示是: make: *** [init/main.o] Error 1
能知道什么原因么?怎么解决??
谢谢指点!
回复

使用道具 举报

 楼主| 发表于 2003-7-18 09:04:44 | 显示全部楼层
另外,我在make xconfig时候也出现Error 2
提示:make[1]: *** [kconfig.tk] Error 1
     make[1]: Leaving directory ' /usr/src/linux-2.5.9/scripts'
     make: *** [xconfig] Error 2
但是可以通过make menuconfig
就是在make baImage时候出现错误,如上!
指点一下,第一次编译内核就出现这么多毛病,都怕把系统弄死了.谢谢哈!
回复

使用道具 举报

发表于 2003-7-18 09:17:15 | 显示全部楼层
can u post more error msg here? at least 3-5 lines before the msg u already posted.
回复

使用道具 举报

 楼主| 发表于 2003-7-18 09:58:36 | 显示全部楼层
make bzImage
then.....the msg in the following:
gcc -Wall -Wstrict-prototypes -O2 -fomit -frame-pointer -o scripts/split-include
scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D_KERNEL__-l/usr/src/linux-2.5.9/include -Wall -Wstrict-portotypes -Wno-t
rigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mprefe
rred-stack-boundary=2 -march=i686  -DKBUILD_BASENAAME=main -c -o init/main.o init
/main.c
init/main.c:279: redefinition of 'setup_per_cpu_areas'
init/main.c:275: 'setup_per_cpu_areas' previously defined here
make: *** [init/main.o] Error 1

that's all error msg!!! give me a help to check it , 3x!!
回复

使用道具 举报

发表于 2003-7-18 10:11:18 | 显示全部楼层
can u use higher version instead of 2.5.9?
like 2.5.72 or 73
回复

使用道具 举报

 楼主| 发表于 2003-7-18 10:27:57 | 显示全部楼层
2.5.72 or 73 is the higher version ???? it is higher than 2.5.9 ???????
and now which version is the highest?????
download it in the www.kernel.org ???
3x!
回复

使用道具 举报

发表于 2003-7-18 10:40:48 | 显示全部楼层
yes, 73 > 9.
why u want to try latest one. i think for 2.4.21, if u can compile it easily and solve all problems, u can try some later. skills is more important than try some new one.
回复

使用道具 举报

 楼主| 发表于 2003-7-18 11:25:56 | 显示全部楼层
那么我放弃升级内核,重新编译现在的2.4.20-8可以么???是不是也要去下一个2.4.20-8的包,重新编译???和升级内核有什么不同之处?
回复

使用道具 举报

发表于 2003-7-18 15:57:00 | 显示全部楼层
没什么不同!
别怕麻烦与失败,多试几次, 您就会熟悉的.
BTW,最新稳定版为2.4.21,稳定版补丁为2.4.22-pre6;
最新测试版为2.5.75,测试版补丁为2.6.0-test1(建议用2.6.0-test1-ac2,可省却不少麻烦)
回复

使用道具 举报

发表于 2003-7-18 21:19:14 | 显示全部楼层
i think 2.4.21 should be better for u.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:23 , Processed in 0.051475 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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