免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4388 | 回复: 11
打印 上一主题 下一主题

how to install the KERNEL source code? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-24 23:57 |只看该作者 |倒序浏览
I have already had my system working, but I forget choose the kernel source code item
so, how can I fix it? thanks.

论坛徽章:
0
2 [报告]
发表于 2007-04-25 00:01 |只看该作者
sorry, it's FC5

论坛徽章:
0
3 [报告]
发表于 2007-04-25 00:08 |只看该作者
把光盘塞进取,next, next, next一直到选择包时,选择要装的source包就可以了。

论坛徽章:
0
4 [报告]
发表于 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

论坛徽章:
0
5 [报告]
发表于 2007-04-26 09:49 |只看该作者
an error occured: ...not include i386
what's wrong
I used the " rpmbuild --recompile ***.src.rpm " command

论坛徽章:
0
6 [报告]
发表于 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

论坛徽章:
0
7 [报告]
发表于 2007-04-28 20:10 |只看该作者
thanks, I'm trying......

论坛徽章:
0
8 [报告]
发表于 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”能按这样的方法处理吗?应该选择哪些包?

论坛徽章:
0
9 [报告]
发表于 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,源代码通常要另外下载。

论坛徽章:
0
10 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP