LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2012, 06:16 PM   #1
amit1947
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Linux Headers for Kernel


I want to compile a kernel module (for device driver) but I need the kernel headers installed. I have a "+drm" kernel and I can't find the proper header file package anywhere.

This is my uname results:

uname -r = 2.6.32.46+drm33.20
uname -a = Linux 7200 2.6.32.46+drm33.20 #5 Tue Dec 20 09:00:15 cst 2011 1686 1686 1386 GNU/LINUX

I downloaded a 2.6.32.46 header package and built my kernel module (.ko file) but it won't insert because of a version mismatch.

I ran "modinfo" on my module and on an existing module (that came with the installation) to compare to vermagic

My module
vermagic: 2.6.32-02063246+drm3320-generic smp mod_unload modversions 586

Working module
vermagic: 2.6.32.46+drm33.20

So there's obviously a version issue.
 
Old 12-06-2012, 11:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
I guess you can install another "linux-image-* " and get a matching "kernel-headers-* "

Google : 2.6.32.46+drm33.20
.. will show that the "drm33.20 changes" are included in other / later kernels.

Example ( Package "linux-headers-2.6.32-35" )
http://www.ubuntuupdates.org/package...ders-2.6.32-35
→ → Change Log →
* Linux 2.6.32.46+drm33.20
-- Herton Ronaldo Krzesinski Mon, 10 Oct 2011

.
 
Old 12-06-2012, 02:40 PM   #3
amit1947
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply.

If I upgrade the kernel and I have existing kernel modules (3rd party device drivers), will those kernel modules no longer load?
 
Old 12-06-2012, 04:17 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Quote:
.. existing kernel modules (3rd party device drivers),
will those kernel modules no longer load ?
Right, they must be updated too.
 
Old 12-07-2012, 08:56 PM   #5
amit1947
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The system returns:

uname -a = Linux 7200 2.6.32.46+drm33.20 #5 Tue Dec 20 09:00:15 cst 2011 1686 1686 1386 GNU/LINUX

Any idea what the "Linux 7200" part refers to?

Thanks in advance.
 
Old 12-07-2012, 10:03 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 5

"Linux 7200" is a (random ?) name for your "Ubuntu computer",
assignet at OS install time.

The installer says : The name of your computer : <Something>
Then you can change it, if you want a different "computer name".


Example from an old install of Ubuntu 10.10,
with a name suggested by the installer :
$ uname -a
Linux knudfl-939Dual-SATA2 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux


.

Last edited by knudfl; 12-07-2012 at 10:09 PM.
 
  


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
[SOLVED] Help me find the Linux kernel headers xjonquilx Linux - Newbie 6 05-20-2012 05:55 PM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb Suse/Novell 2 11-28-2009 11:12 AM
how to get matching linux-kernel-headers grap-pack Linux - Newbie 1 11-28-2008 12:34 PM
old linux kernel headers guysoft Debian 4 01-30-2006 06:34 AM


All times are GMT -5. The time now is 10:51 PM.

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