比较怪的问题,一直不明百
几个问题1、怎么才能编译出initrdXXX.img的引导文件
2、在编译内核的时候到底要做那些连接?看了文章都写的不明确
谢谢
[ 本帖最后由 ttii 于 2008-1-9 19:56 编辑 ] 1)mkinitrd
2)glibc 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, 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. initrdxx.img does be useful in some situations. but i forget. i met them before. but for my laptop it is useless. 我以前编译内核都没用过img和map,安装完模块后,直接将编译好的内核搞到/boot下,然后修改管理器的config文件,重起就可以了
我在红旗3.0和redhat8.0上这样是可以的 these files under /boot:
kernel.h-xxx
modules-info-xxx
do not need to be changes when new kernel is installed? 我以前都没动过这些,照样可以用
不过后来发现,make modules后直接make install,自己什么都不用安装,重起就行 谢谢大家,我有点明白了,生成的文件在那个目录呢?能否详细说明一下 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. 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. kernel.h-xxx and modules-info-xxx just include info about u kernel(2.4.xxx).
u can delete them.
页:
[1]