ttii 发表于 2003-4-7 17:35:15

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

几个问题
1、怎么才能编译出initrdXXX.img的引导文件
2、在编译内核的时候到底要做那些连接?看了文章都写的不明确
谢谢

[ 本帖最后由 ttii 于 2008-1-9 19:56 编辑 ]

jackyhong 发表于 2003-4-7 17:52:19

1)mkinitrd
2)glibc

Dragonfly 发表于 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,

rickie 发表于 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.

Dragonfly 发表于 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.

llc 发表于 2003-4-8 11:55:34

我以前编译内核都没用过img和map,安装完模块后,直接将编译好的内核搞到/boot下,然后修改管理器的config文件,重起就可以了
我在红旗3.0和redhat8.0上这样是可以的

firephenix 发表于 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?

llc 发表于 2003-4-8 15:54:08

我以前都没动过这些,照样可以用
不过后来发现,make modules后直接make install,自己什么都不用安装,重起就行

ttii 发表于 2003-4-8 20:03:17

谢谢大家,我有点明白了,生成的文件在那个目录呢?能否详细说明一下

Dragonfly 发表于 2003-4-8 21:49:17

these files under /boot:
kernel.h-xxx
modules-info-xxx
do not need to be changes when new kernel is installed?

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

Dragonfly 发表于 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.

maso 发表于 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.
页: [1]
查看完整版本: 比较怪的问题,一直不明百