QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1137|回复: 11

比较怪的问题,一直不明百

[复制链接]
发表于 2003-4-7 17:35:15 | 显示全部楼层 |阅读模式
几个问题
1、怎么才能编译出initrdXXX.img的引导文件
2、在编译内核的时候到底要做那些连接?看了文章都写的不明确
谢谢

[ 本帖最后由 ttii 于 2008-1-9 19:56 编辑 ]
发表于 2003-4-7 17:52:19 | 显示全部楼层
1)mkinitrd
2)glibc
回复

使用道具 举报

发表于 2003-4-7 22:04:33 | 显示全部楼层
glibc?

only need mkinitrd to build initrdxxx.img file. but need loop device support
about symbol links, u only need cp System.map and make a link,
回复

使用道具 举报

发表于 2003-4-7 23:25:53 | 显示全部楼层
It seems that initrdxxx.img is not necessary when compiling a new kernel. If bzImage and System.map are copied into /boot and corresponding modification is make in lilo.conf or grub.conf, i think the kernel can start successfully.  And if if you build your scsi drivers right into the kernel, instead of into modules, u also need not to do "mkinitrd".

I think glibc is useless for kernel compiling. Glibc is a C library which is used by user applications that needs some shared library.
回复

使用道具 举报

发表于 2003-4-7 23:39:47 | 显示全部楼层
initrdxx.img does be useful in some situations. but i forget. i met them before. but for my laptop it is useless.
回复

使用道具 举报

发表于 2003-4-8 11:55:34 | 显示全部楼层
我以前编译内核都没用过img和map,安装完模块后,直接将编译好的内核搞到/boot下,然后修改管理器的config文件,重起就可以了
我在红旗3.0和redhat8.0上这样是可以的
回复

使用道具 举报

发表于 2003-4-8 15:47:44 | 显示全部楼层
these files under /boot:
kernel.h-xxx
modules-info-xxx
do not need to be changes when new kernel is installed?
回复

使用道具 举报

发表于 2003-4-8 15:54:08 | 显示全部楼层
我以前都没动过这些,照样可以用
不过后来发现,make modules后直接make install,自己什么都不用安装,重起就行
回复

使用道具 举报

 楼主| 发表于 2003-4-8 20:03:17 | 显示全部楼层
谢谢大家,我有点明白了,生成的文件在那个目录呢?能否详细说明一下
回复

使用道具 举报

发表于 2003-4-8 21:49:17 | 显示全部楼层
[quote:2977cb89ed="firephenix"]these files under /boot:
kernel.h-xxx
modules-info-xxx
do not need to be changes when new kernel is installed?[/quote]

need not touch this. basically, if u have space in /boot, never delete files, but add files, till u know what they are.
回复

使用道具 举报

发表于 2003-4-8 21:50:53 | 显示全部楼层
for the System.map file, it contains all the symbol, and it is useful when debug kernel module. ksymoops and even some versions of top need this.
回复

使用道具 举报

发表于 2003-4-12 23:14:42 | 显示全部楼层
kernel.h-xxx and modules-info-xxx just include info about u kernel(2.4.xxx).

u can delete them.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 18:54 , Processed in 0.118895 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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