LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2007, 09:46 PM   #1
pjremy
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
understanding how to compile driver


i am very new to linux. i recently installed mythbuntu and i am trying to install the isley pvr usb2 driver. i think i understand that i need to compile it against my kernel source (or a kernel source) but i don't understand how to do it. it seems that all the threads i have read assume a certain level of skill with linux, but as i stated earlier , i am an extreme newbie. i would really appreciate a clear "how to".

thanks for any help u can offer
 
Old 11-29-2007, 12:58 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Have you tried reading the instructions? If there's something you don't understand, you need to tell us specifically what it is.
 
Old 11-29-2007, 05:37 AM   #3
pjremy
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for your quick reply nylex. yes i have read the instructions. probably several dozen times. the area that i am stuck with are these specific lines : "Compile this driver more or less in the usual way one does to build 2.6.x kernel modules outside of the kernel source tree. Said another way, you need a kernel source tree somewhere nearby...".
i'm sure that someone of your skill level can comfortably take such a simple statement for granted but it does assume a level of experience that i currently do not possess (but am eager to acquire). i would ,specifically, like help understanding how to put a "kernel source tree somehwere nearby" and why.

thanks again,
pjremy
 
Old 11-29-2007, 06:48 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I presume you have the Ubuntu distro?

You need to install a lot of development tools, including the gcc package (which is the compiler), and you also will need to obtain the kernel source appropriate for your version of the kernel. Basically, the kernel source is just what it sounds like; the source code that was used to compile the kernel that is in your system. You need to have this source because anything you compile has to match your kernel, and it makes sure of the match by grabbing information from the source for the kernel you are running.

Using the package manager, do a search for gcc then install the packages that are found (unless, of course, you have already done this). Then look for kernel-source and install the one that matches your running kernel. That should get you going.

Unfortunately, right now I am on my Mandriva system (not my Kubuntu one), or I could give you more specific instructions.
 
Old 11-29-2007, 10:37 PM   #5
pjremy
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
thanks jim. i'll tinker around. i appreciate the help.
 
  


Reply



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
cannot compile a driver against 2.6.17.13 tramni1980 Slackware 7 10-16-2006 01:46 PM
compile a driver giraf Debian 1 12-29-2005 06:38 AM
How compile a new driver GregLille Linux - Networking 3 01-05-2005 05:42 AM
How to compile a driver Kuki Linux - Newbie 2 03-04-2004 04:21 PM
driver compile rcarlino Mandriva 0 08-25-2003 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration