LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-18-2004, 09:27 AM   #1
archlyn
Member
 
Registered: Jul 2003
Distribution: Gentoo Linux
Posts: 64

Rep: Reputation: 15
Upgrading slackware kernel headers


Okay, Here's the deal. I'm running (apparently, according to the changelog) slackware 10.0 RC1
and I have the kernel headers for kernel version 2.4.22..

Problem is that I have the 2.6.6 kernel, and would like to use the recently released 2.6.6.0 kernel headers instead of the 2.4.22 ones.

How do I upgrade them?

FYI The the headers can be found here:
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/

The announcement is here:
http://www.ussg.iu.edu/hypermail/lin...06.1/0296.html
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-18-2004, 09:51 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Why this need for kernel headers?
I succeed in compile a custom kernel module for 2.6 with kernel header pakage for 2.4.22 (just because they're not used but include come from /lib/modules/$(uname -r)/build instead).

It is not a problem have these header files installed. But make sure to not make a confusion between kernel-sources and kernel-header package, only the first is update needed and is important, the second are more or less standart include files and if program need accurate kernel header, it will find them in /lib/modules/$(uname -r)/build/include
 
Old 06-18-2004, 11:56 AM   #3
Worstje
Member
 
Registered: Mar 2004
Distribution: Slackware-current
Posts: 93

Rep: Reputation: 15
Find a slackware mirror, find testing/kernel-headers-2.6.7-i386-1.tgz or whatever its called, and simply wget and upgradepkg it.

But usually its not a good idea to upgrade kernel-headers as everything will work just fine anyway. Pat V. posted a nice warning in the testing/ subdirectory concerning upgrading the headers. It stopped me heh It comes down to "if you don't have any specific reason you need it, leave it."
 
Old 06-18-2004, 02:11 PM   #4
archlyn
Member
 
Registered: Jul 2003
Distribution: Gentoo Linux
Posts: 64

Original Poster
Rep: Reputation: 15
Honestly, I can't say for certain that headers will do the trick but I want to try this just to see if it fixes a couple of little issues that I've had with slackware (I won't go into details here)

I'll try to find a slackware testing site, thanks
 
Old 06-18-2004, 02:20 PM   #5
Minderbinder
Member
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Slackware-current
Posts: 142

Rep: Reputation: 15
I think the kernel headers are needed to install nvidia's binary drivers. I have tried upgrading my kernel before but I couldn't get the video driver to install. If I install the kernel from source can I use the kernel-headers package in /testing as long as the versions are matched?
 
Old 06-18-2004, 02:46 PM   #6
archlyn
Member
 
Registered: Jul 2003
Distribution: Gentoo Linux
Posts: 64

Original Poster
Rep: Reputation: 15
I should think so, I've used the 2.6 series kernels with the 2.4 series headers with nVidia's drivers for ages though, so I don't think the versions have to match. I upgraded my kernel headers a few minutes ago, I'll recompile the nVidia module and tell you how it goes
 
Old 01-26-2010, 07:26 AM   #7
nortonlui
LQ Newbie
 
Registered: Oct 2009
Location: Brazil
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
using kernel headers from kernel source

Hi,

# ln -sf /usr/src/kernelname /usr/src/linux

# cd /usr/include
# ln -sf /usr/src/linux/include/linux linux
# ln -sf /usr/src/linux/include/asm-generic asm-generic
# ln -sf /usr/src/linux/arch/x86/include/asm/ asm-x86
# ln -sf asm-x86 asm

It's work on Slackware 13 and Kernel 2.6.30.10

Tested on qemu 0.12.1

Norton Luiz.
 
Old 01-26-2010, 09:32 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Uh... Hello! Why did you drag up a thread which is nearly 6 years old? And then you gave the wrong advice...
 
2 members found this post helpful.
Old 01-27-2010, 04:24 AM   #9
nortonlui
LQ Newbie
 
Registered: Oct 2009
Location: Brazil
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
Hi, gnashley

I don't understand what is wrong with my advice. I tested compiling and works.Can you tell me more. It's late for this thread, i agree but i'm study unix/linux and many doubts about unix/linux.

Thanks,

Norton
 
Old 01-27-2010, 04:35 AM   #10
nortonlui
LQ Newbie
 
Registered: Oct 2009
Location: Brazil
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
I visited links you send me and agree about source - tgz. I forget this !!

thanks,
 
Old 01-27-2010, 05:08 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Software for your system should be compiled using the same headers as were used to compile the glibc for your system, not against the headers for the kernel you are running. glibc is the 'mother' of the whole system -not the kernel. Often, glibc is compiled against kernel headers for a completely different version of the kernel than what the system runs -even when starting from scratch. kernel-headers should only be upgraded when glibc is upgraded and the new kernel-headers should be exactly the same headers as used to compile glibc with.
 
2 members found this post helpful.
Old 01-27-2010, 07:04 AM   #12
nortonlui
LQ Newbie
 
Registered: Oct 2009
Location: Brazil
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
Thanks!!!

Building a Linux Kernel from source ( Alien Wiki )
http://alien.slackbook.org/dokuwiki/...kernelbuilding

Thanks again !!!!!!!

Last edited by nortonlui; 01-27-2010 at 07:44 AM.
 
Old 01-27-2010, 10:08 AM   #13
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Linking /usr/src/linux to the current kernel sources is convenient for compiling external kernel modules which need to know which kernel sources to use -they often will simply use /usr/src/linux -otherwise, they will use 'uname' to figure out which kernel is running and then llok for the link /lib/modules/$KVERS/build to tell them where the current kernel sources are.

*But*, this refers to building out-of-tree kernel modules and not to building regular software. When building regular software, they look for the kernel headers under /usr/include/linux which is where the headers in the kernel-headers package are installed. Again, only upgrade the kernel-headers package when upgrading glibc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 10:17 AM
Slackware 10.2 & 2.4.31 headers SlackwareInAZ Slackware 2 09-17-2005 10:26 AM
kernel Panic slackware 10.1 (sata) after upgrading to 2.6.10 pkg in /testing sund00bie Slackware 7 07-25-2005 05:59 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 07:29 PM
Problem upgrading kernel from CD2 of Slackware 10 Corallis Slackware 3 07-19-2004 03:20 PM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration