[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RE-COMPILING the Kernel...



>>>>> "b" == bigt  <bigt@ourtownusa.com> writes:

b> cd /usr/src/Linux

With this you go to the directory where the kernel sources are. :-)

b> make config

Here you will be asked a lot of things. Responding these questions you
are saying what you want and what you don't want in your kernel,
acording to your hardware.

b> make dep

This will take care of the dependencies between the various "parts"
you chose in the above step. It determines what has to be compiled to
satisfy the choices you did with "make config".

b> make zImage

Will compile the kernel.

b> make zdisk

Will put the kernel in a floppy.

b> make zlilo

Will install the kernel somewhere and call lilo.

b> Is this correct?  Can someone explain briefly each step and why I
b> have to do this???  I just want to understand it more.

Why don't you use the package "kernel-package"? You just have to
configure the kernel with "make config" or "make xconfig" (provided
you have tcl/tk) and it will compile and make a "deb" package with the
kernel.  The instructions are easy to follow:

1% cd <kernel source tree>
2% make config   # or make menuconfig or make xconfig and configure
3% make-kpkg clean
4% make-kpkg -r=custom.1.0 kernel_image
5% dpkg -i ../kernel-image-X.XXX_1.0_<arch>.deb
6% shutdown -r now # If and only if LILO worked or you have a means of
                   # booting the new kernel. YOU HAVE BEEN WARNED!!

Pretty nice.

Have fun!

-- 
 Emilio C. Lopes <mailto:Emilio.Lopes@Physik.TU-Muenchen.DE>


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: