- From: Salvador Eduardo Tropea <salvador_at_inti.gov.ar>
- Date: Tue, 10 Feb 2004 15:27:54 -0300
Johan De Clercq wrote: > Dear Sir, > > I received your message about Installing NI6036E card. > > I am not familiar with development so please can you explain to me > what is the difference between kernel headers and kernel sources. The first thing you must understand is that Debian systems are stongly oriented to the use of "packages". For this reason the best way to install a kernel compiled by yourself is by using the kernel-package package. It have a tool called make-kpkg that compiles kernel sources into Debian packages. To run your system just needs the binary packages for the kernel. This package is called "kernel-image". For developement purposes you need the Linux header, they are included in the "kernel-headers" package. If you need to compile the sources that Debian maintainers used to create the "kernel-image" package you have to install a package called "kernel-source". In all the above cases the name of the package is followed by the kernel version and your architecture. In my system the installed kernel-image package is called: kernel-image-2.4.18-1-k7 The one between 18 and k7 was added to differentiate the security version from the original release. Using "uname -a" I get: Linux ice 2.4.18-1-k7 #1 Mon Jan 5 23:08:06 UTC 2004 i686 unknown As you can see the "2.4.18-1-k7" is here. > I downloaded from kernel.org the 2.4.24 ( source ?) Debian applies some small patches to the kernel, usually to close security holes, so you have to install the "kernel-source" package in order to obtain the same sources. > the command uname -r produces no output is this the header ? According to it and the version you name "2.4.24" it looks like you installed a kernel compiling from sources without using make-kpkg. I strongly recommend using precompiled kernel packages unless you need to patch your kernel or the machine is very small and you need to fine tune your kernel. Using packages you can upgrade your machine really quickly when a flaw in the kernel is discovered. If you installed the kernel from sources: 1) I recommend using make-kpkg tool to generate the packages and install them. 2) Be careful, Debian installs a set of kernel headers in /usr/include that are for the original kernel included with the Debian release. Make sure they arenīt mixed with the real ones. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: set_at_computer.org set_at_ieee.org Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
Received on 2004-02-10Z18:27:54