| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-05-2012, 06:16 PM
|
#1
|
|
LQ Newbie
Registered: May 2009
Posts: 5
Rep:
|
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.
|
|
|
|
12-06-2012, 11:09 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,594
|
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
.
|
|
|
|
12-06-2012, 02:40 PM
|
#3
|
|
LQ Newbie
Registered: May 2009
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
|
12-06-2012, 04:17 PM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,594
|
Quote:
.. existing kernel modules (3rd party device drivers),
will those kernel modules no longer load ?
|
Right, they must be updated too.
|
|
|
|
12-07-2012, 08:56 PM
|
#5
|
|
LQ Newbie
Registered: May 2009
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
|
12-07-2012, 10:03 PM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,594
|
# 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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
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 -5. The time now is 03:47 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|