Chinaunix

标题: how to install the KERNEL source code? [打印本页]

作者: defyer    时间: 2007-04-24 23:57
标题: how to install the KERNEL source code?
I have already had my system working, but I forget choose the kernel source code item
so, how can I fix it? thanks.
作者: defyer    时间: 2007-04-25 00:01
sorry, it's FC5
作者: krs    时间: 2007-04-25 00:08
把光盘塞进取,next, next, next一直到选择包时,选择要装的source包就可以了。
作者: Fixend    时间: 2007-04-25 00:15
1. choose a website in
http://rhold.fedoraproject.org/Download/mirrors.html

2. open URL like that "ftp://ftp.hostrino.com/pub/fedora/linux/core/updates/5/SRPMS/"

3. download
kernel-2.6.17-1.2187_FC5.src.rpm or kernel-2.6.20-1.2312.fc5.src.rpm

4. use rpmbuild tool to build the source or kernel
作者: defyer    时间: 2007-04-26 09:49
an error occured: ...not include i386
what's wrong
I used the " rpmbuild --recompile ***.src.rpm " command
作者: Fixend    时间: 2007-04-27 22:31
#rpm -i ***.src.rpm
#cd /usr/src/redhat/
#rpmbuild -bs ./SPECS/*.spec
#cd BUILD
you can find source in this directory.

if you want to configure, build and install the kernel.
use this:
#make menuconfig
#make modules modules_install bzImage install

if you want to build the kernel use the default configure file.
use this:
#rpmbuild -ba ./SPECS/*.spec
作者: defyer    时间: 2007-04-28 20:10
thanks, I'm trying......
作者: zhangxy6005    时间: 2007-04-28 21:19
原帖由 krs 于 2007-4-25 00:08 发表于 3楼  
把光盘塞进取,next, next, next一直到选择包时,选择要装的source包就可以了。



引导时出现:“Kernel panic:No init found. Try passing init= option to kernel”能按这样的方法处理吗?应该选择哪些包?
作者: Fixend    时间: 2007-04-28 23:15
引导时出现:“Kernel panic:No init found. Try passing init= option to kernel”能按这样的方法处理吗?应该选择哪些包?


3G多的DVD ISO文件没有提供可编译的kernel source code。
/usr/src下面的那个是提供给模块开发者用的(好像是kernel-develop包提供的),不能编译成kernel,源代码通常要另外下载。
作者: fish007    时间: 2007-04-30 13:55
原帖由 defyer 于 2007-4-24 23:57 发表于 1楼  
I have already had my system working, but I forget choose the kernel source code item
so, how can I fix it? thanks.

reinstall your system by update mode
作者: defyer    时间: 2007-05-01 22:37
thank you for your advice
作者: emacsnw    时间: 2007-05-02 09:34
直接网上去下载linux kernel即可。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2