Re: Compile a custom kernel instructions

From: Aragorn (stryder_at_telenet.invalid)
Date: 10/26/05


Date: Wed, 26 Oct 2005 09:57:34 GMT

On Monday 24 October 2005 11:39, Mario stood up and spoke the following
words to the masses in /comp.os.linux.misc...:/

> On Sat, 22 Oct 2005 10:46:37 +0000, Vardan Kushnir wrote:
>
>> When exiting make menuconfig, screen says "Next, you may run
>> 'make bzImage', 'make bzdisk', or 'make install'.
>
> for 2.6 kerne?l it's enough make menuconfig (or make xconfig)
> make
> make install

More precisely, for a 2.6 kernel on IA32 and x86-64, it's one of the
following five commands...

        make config
        make oldconfig
        make menuconfig
        make gconfig
        make xconfig

... and then all of the following...

        make bzImage modules
        su
        make modules_install install

... in the order as above. The last command should of course be issued
from within the /su'ed/ environment.

It is important that you unpack kernel sources to a directory in your
$HOME, unless you are _installing_ a system from sources such as Gentoo
or LFS.

The */usr/src* area should never be used for installing a newer kernel
into an already existing distribution, and the headers of the kernel
sources installed by your distribution are the ones needed for
compiling anything else, as those are the headers against which your
libraries (and the rest of your system) have been compiled.

In regards to the configuration, the options are as follows:
- config = interactively
- oldconfig = interactively for when you have an existing /.config/ but
                only asks you about newer options
- menuconfig = uses an /ncurses/ menu interface
- gconfig = uses a GTK, Gnome-like interface
- xconfig = uses a Qt, KDE-like interface

For a 2.4 kernel, the configuration lacks the /gconfig/ option and has
the /xconfig/ option use a Motif-style interface. 2.4 kernels also
require...

        make dep

... after configuring the kernel.

Hope this helps... ;-)

-- 
With kind regards,
*Aragorn*
(Registered GNU/Linux user #223157)


Relevant Pages

  • Re: 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
    ... scsi_inquiryto identify the device and determine interface type. ... seems to be the first time to actually issue commands to the device. ... cdparanoia can handle both cases as long as the kernel ... Coincidentally I am sitting on a patch from Luben Tuikov ...
    (Linux-Kernel)
  • Re: 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
    ... machine with SATA/ata_piix and cdparanoia 3.10. ... scsi_inquiryto identify the device and determine interface type. ... seems to be the first time to actually issue commands to the device. ... cdparanoia can handle both cases as long as the kernel ...
    (Linux-Kernel)
  • Re: Compile a custom kernel instructions
    ... > make install ... following five commands... ... It is important that you unpack kernel sources to a directory in your ... menuconfig = uses an /ncurses/ menu interface ...
    (alt.os.linux)
  • Re: last FC4 kernel and nvidia
    ... OpenGL install prefix: /usr ... kernel include path: ... Using: nvidia-installer ncurses user interface ... As part of installing this driver ...
    (Fedora)
  • Re: Question about installing nvidia driver
    ... XFree86 install prefix: /usr/X11R6 ... Using: nvidia-installer ncurses user interface ... -> No precompiled kernel interface was found to match your kernel; ... -> Cleaning kernel module build directory. ...
    (Debian-User)