
8th February 2007, 02:43
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
How to Compile kernel headers
Hi I had a question
I wanted to ask how to build kernel_headers for the 2.6.19.3 kernel on debian sarge in order to build the dazuko module
The how to by Falko worked nicely for compiling the kernel source 2.6.19.3 from kernel.org ....thanks for the how to
http://www.howtoforge.com/kernel_compilation_debian
|

8th February 2007, 21:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
If you compiled a kernel from the sources, the kernel headers are already installed.
|

8th February 2007, 22:51
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
hi.... 
thanks for reacting I get a kernel headers not found error when building the dazuko module maybe I am missing something....
thanks in advance
Last edited by ikkem; 8th February 2007 at 22:54.
|

9th February 2007, 16:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Did you boot into your new kernel, or are you still using your old one? You can find out by running
|

9th February 2007, 16:49
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
I boot into my new kernel but for some reason the headers can't be found....
Code:
uname -r
2.6.19.3-386
I am trying to build the dazuko module to run with antivir
Code:
dpkg -i dazuko-source_2.3.2-1_all.deb
m-a a-i dazuko
module-assistant, error message
Quote:
|
Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.
|
Quote:
If the running kernel has been shipped with the Debian distribution, please
install the package kernel-headers-2.6.19.3-386. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, alternatively) specify the source directory we build for with the --kernel-dir option in module-assistant calls.
|
thanks in advance
Last edited by ikkem; 9th February 2007 at 17:55.
|

10th February 2007, 21:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
If I think about it - it's possible that the kernel headers aren't installed because in the Debian kernel howto we create a kernel .deb package which doesn't contain the headers.
You can try to combine the Debian kernel howto with this one: http://www.howtoforge.com/kernel_compilation_ubuntu_p2
Run
Code:
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
instead of
Code:
fakeroot make deb-pkg
This should create a kernel headers deb package.
If that doesn't work, you can still compile a kernel the traditional way, without creating a deb package, as shown here: http://www.howtoforge.com/kernel_compilation_fedora_p2
That way the headers will be installed for sure.
|

10th February 2007, 22:55
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
thanks for reacting I will try the traditional way hopefully that will be sufficient I could not install the kernel_image with the ubuntu way and the kernel headers were not installed in full because the kernel module builder could not find the kernel headers even after I installed the kernel header package
Quote:
darkstar:/usr/src# dpkg -i kernel-image-2.6.19.3-custom686_10.00.Custom_i386.deb
Selecteren van voorheen niet geselecteerd pakket kernel-image-2.6.19.3-custom686.
(Database inlezen ... 142554 bestanden en mappen geïnstalleerd.)
Uitpakken van kernel-image-2.6.19.3-custom686 (uit kernel-image-2.6.19.3-custom686_10.00.Custom_i386.deb) ...
Instellen van kernel-image-2.6.19.3-custom686 (10.00.Custom) ...
/usr/sbin/mkinitrd: /lib/modules/2.6.19.3-custom686: Not a directory
/usr/sbin/mkinitrd: MODULES needs to be set to none?
Failed to create initrd image.
dpkg: fout bij afhandelen van kernel-image-2.6.19.3-custom686 (--install):
subproces post-installation script gaf een foutwaarde 2 terug
Fouten gevonden tijdens behandelen van:
kernel-image-2.6.19.3-custom686
|
I will try the traditional way hopefully it will help....
ikkem....
Last edited by ikkem; 10th February 2007 at 23:13.
|

11th February 2007, 04:20
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
I followed the how to
Code:
make all
make modules_install
make headers_install
make install
I checked in /boot the ramdisk was not build which made reboot into the new kernel fail (I guess)
I will continue tomorrow.....
|

13th February 2007, 17:37
|
|
Member
|
|
Join Date: Feb 2007
Posts: 85
Thanks: 2
Thanked 2 Times in 1 Post
|
|
I made the ramdisk
Code:
mkinitrd.yaird -o /boot/initrd.img-2.6.19.3-raysun1 2.6.19.3-raysun1
updated grub but I still get a error message of kernel headers not found maybe I missed something....
thanks in advance
|

14th February 2007, 20:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
What's the exact error message, and what kernel version did you try to compile?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 15:18.
|
Recent comments
1 hour 41 min ago
7 hours 29 min ago
9 hours 21 min ago
11 hours 6 min ago
14 hours 56 min ago
20 hours 41 min ago
20 hours 52 min ago
1 day 1 hour ago
1 day 6 hours ago
1 day 12 hours ago