LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2008, 10:39 PM   #1
seattleweb
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
How to compile driver without kernel headers???


Ok, so I'm <stumped>. I'm running Debian Sid for armel, booting on a microSD card partition. I am using a cross compiled kernel from the git.openmoko.org site (2.6.24).

My problem is that I need to compile a different wireless driver for a rt73 based USB wifi card (WUSB54GC) that uses ieee80211 vs mac80211; the driver in the git tree is not adequate for me.

I need the kernel headers obviously to build the module, but there aren't any for this kernel in either the Debian Sid repo or the Openmoko repo. How can I build this driver if I don't have headers?


What would be my best approach to getting the driver built?

Last edited by seattleweb; 07-20-2008 at 07:26 PM.
 
Old 07-20-2008, 03:33 AM   #2
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
Is there a kernel sources package for your kernel in the repository? That would serve the same purpose, as far as I know.
 
Old 07-20-2008, 05:44 PM   #3
seattleweb
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Solved

Quote:
Originally Posted by elliott678 View Post
Is there a kernel sources package for your kernel in the repository? That would serve the same purpose, as far as I know.
No, but I figured out that I can make ARCH=arm headers_install where then it is found in ./usr/include
 
Old 07-20-2008, 05:56 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. You need to set up a cross-compiler
2. You need the kernel source for your kernel
3. You need to configure the kernel, possibly even build it, using the same configuration as before

To get the configuration, see if there is a configuration file in the 'boot' directory on the initrd image. Otherwise, if the device can be accessed while it runs and the kernel has been configured to provide it, /proc/config.gz gives you the (compressed) configuration.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile kernel-headers hraposo Debian 6 01-16-2007 06:06 PM
INstalling Kernel Headers to update nvidia driver plbowler Mandriva 5 09-14-2006 11:10 AM
Kernel-source, alsa-driver and kernel compile jasone Linux - General 13 05-26-2005 12:15 AM
Driver won't compile on Kernel 2.6 - works fine on Kernel 2.4 c@sey Linux - Software 4 01-08-2005 01:01 PM
nVidia Driver won't install because Kernel Headers are missing...Whats that me then? Stevetgn Linux - Newbie 3 08-24-2003 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:54 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