LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2007, 12:05 AM   #16
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Original Poster
Rep: Reputation: 24

Thanks to Mr. HappyTux

Quote:
Module-assistant makes a .deb file package that needs to be installed either with the install option of its interactive interface or using dpkg -i package.deb. So did you do either of those to install?
I did do the install from module-assistant, and there is no rt2500.ko file in ../drivers/net.

Am continuing w/ my plan to get make menuconfig running in hopes it will set up a proper
build directory.

--Cheers
 
Old 09-24-2007, 12:46 AM   #17
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by pcardout View Post
Thanks to Mr. HappyTux



I did do the install from module-assistant, and there is no rt2500.ko file in ../drivers/net.

Am continuing w/ my plan to get make menuconfig running in hopes it will set up a proper
build directory.

--Cheers
You would need to build exactly the kernel for it to work the headers installed should be enough if the link is correct that is what the m-a prepare does. If it did not then use something like this.

Code:
ln -sfn /usr/src/linux-headers-2.6.18-5-k7 /lib/modules/2.6.18-5-k7/build
Then try compiling the driver again and you could try dpkg -l module_package_name.deb that was installed to see where it put the .ko module.
 
Old 09-26-2007, 05:03 PM   #18
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Original Poster
Rep: Reputation: 24
How to compile a kernel module that is reluctant!

I wanted to let you all know how it worked out.

The original problem was that I could not get a kernel module for a new
wireless card to compile properly. The Makefile kept throwing errors stating
that the kernel source could not be found. After learning enough about modules
and kernel compilation, I realized that the Makefile was probably written for
a different distro, and so was looking in the wrong place for my kernel headers.

I actually had to edit the makefile to point it at the proper kernel-headers directory.
Then the compile worked and my wireless card works just fine!! Thanks for
helping me be sure that I had all the tools I needed so that I could trace my
problem down to a bad makefile.

I am slowly writing up a full driver install procedure that explains about compiling modules
using kernel headers.
 
Old 09-27-2007, 01:28 AM   #19
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Original Poster
Rep: Reputation: 24
I fixed my problem by fixing the makefile. Gory details are here

http://www.physics.nmt.edu/~rsonnenf...ink-2561-rt61/
 
  


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
Matchup of kernel header and source, and apt-get problem fallen3019 Linux - Kernel 2 05-06-2007 06:27 AM
apt-get install kernel-source-2.6.10 not working gauri Debian 7 02-17-2006 02:58 PM
Where does apt place kernel-source? Mondus Linux - Hardware 5 07-30-2005 11:29 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
apt-get kernel source Zaskar Debian 2 02-25-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 PM.

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