编译2.5.9的问题
编译2.5.9内核后,找不到bzImage和System.map怎么才能让新内核代替原来的内核呢???
谢谢指点! what is u kernel source dir?
what is the command u use to compiel kernel? 原来的目录结构: /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的启动参数??
谢谢指点! 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 let me try it again!
see u later.... 果然在make bzImage后出现 Error 1 , 原来没注意.
提示是: make: *** Error 1
能知道什么原因么?怎么解决??
谢谢指点! 另外,我在make xconfig时候也出现Error 2
提示:make: *** Error 1
make: Leaving directory ' /usr/src/linux-2.5.9/scripts'
make: *** Error 2
但是可以通过make menuconfig
就是在make baImage时候出现错误,如上!
指点一下,第一次编译内核就出现这么多毛病,都怕把系统弄死了.谢谢哈! can u post more error msg here? at least 3-5 lines before the msg u already posted. 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: *** Error 1
that's all error msg!!! give me a help to check it , 3x!! can u use higher version instead of 2.5.9?
like 2.5.72 or 73 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! 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. 那么我放弃升级内核,重新编译现在的2.4.20-8可以么???是不是也要去下一个2.4.20-8的包,重新编译???和升级内核有什么不同之处? 没什么不同!
别怕麻烦与失败,多试几次, 您就会熟悉的.
BTW,最新稳定版为2.4.21,稳定版补丁为2.4.22-pre6;
最新测试版为2.5.75,测试版补丁为2.6.0-test1(建议用2.6.0-test1-ac2,可省却不少麻烦) i think 2.4.21 should be better for u.
页:
[1]
2