打印本文 打印本文 关闭窗口 关闭窗口
Linux kernel release 2.0.xx
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3985  更新时间:2009/4/22 20:45:36  文章录入:mintao  责任编辑:mintao
- do a "make config" to configure the basic kernel.  "make config"
   needs bash to work: it will search for bash in $BASH, /bin/bash and
   /bin/sh (in that order), so hopefully one of those is correct. 
 
 - Alternate configuration commands are:
      "make menuconfig"  Text based color menus, radiolists & dialogs.
      "make xconfig"     X windows based configuration tool.
   
      NOTES on "make config":
      - having unnecessary drivers will make the kernel bigger, and can
        under some circumstances lead to problems: probing for a
        nonexistent controller card may confuse your other controllers
      - compiling the kernel with "Processor type" set higher than 386
        will result in a kernel that does NOT work on a 386.  The
        kernel will detect this on bootup, and give up.
      - A kernel with math-emulation compiled in will still use the
        coprocessor if one is present: the math emulation will just
        never get used in that case.  The kernel will be slightly larger,
        but will work on different machines regardless of whether they
        have a math coprocessor or not. 
      - the "kernel hacking" configuration details usually result in a
        bigger or slower kernel (or both), and can even make the kernel
        less stable by configuring some routines to actively try to
        break bad code to find kernel problems (kmalloc()).  Thus you
        should probably answer ''''n'''' to the questions for a "production"
        kernel. 
 
 - Check the top Makefile for further site-dependent configuration
   (default SVGA mode etc). 
 
 - Finally, do a "make dep" to set up all the dependencies correctly. 
 
COMPILING the kernel:
 
 - make sure you have gcc-2.6.3 or newer available.  It seems older gcc
   versions can have problems compiling newer versions of linux.  If you
   upgrade your compiler, remember to get the new binutils package too
   (for as/ld/nm and company).
 
 - do a "make zImage" to create a compressed kernel image.  If you want
   to make a bootdisk (without root filesystem or lilo), insert a floppy
   in your A: drive, and do a "make zdisk".  It is also possible to do
   "make zlilo" if you have lilo installed to suit th

上一页  [1] [2] [3] [4] [5] [6]  下一页

打印本文 打印本文 关闭窗口 关闭窗口