LinuxQuestions.org
Visit Jeremy's Blog.
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 06-06-2006, 03:40 AM   #1
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Rep: Reputation: 15
How do i recompile my linux with new drivers?


I have a linux distribution with kernel ver. 2.6.16-1.2129_FC5 and i want to install hostap drivers 0.4.9. The kernel already includes hostap drivers but i want to install the one i want due to some changes ive made.

How do i include them in my kernel ,replacing the existing ones.the ones i have are modules:
hostap_pci 53493 0
hostap 103753 1 hostap_pci

Any help would be useful & thanks in advance for your time.
 
Old 06-06-2006, 03:55 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Well, if they are modules you can just insert them after the kernel has been loaded.

Take a look at man insmod - but they would have to be specially compiled (as far as I know) to be dynamically loadable modules, and they'll only work with the specific version of the kernel they were compiled for.
 
Old 06-06-2006, 04:19 AM   #3
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
Rylan thanks for your post!

Erm propably i wasnt clear : The hostap included in my kernel is a module as seems above.
I would like to install a hostap source driver in my kernel instead of the one existing already.

How do i do that?
 
Old 06-06-2006, 05:45 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Still not very clear. Drivers _are_ kernel modules. if you have something different you want to use you either need to explain what it is better or post a link to where you got it from so we can check it out ourselves.
 
Old 06-06-2006, 08:12 AM   #5
ghatamos
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
in the source code directory of your new driver you should do this:

make clean
make
make install

when you run make install, you should see "depmod -ae" this is the command the relinks all drivers to the driver tree so that if a device is connected it will use that driver instead of the old one.

That worked for me, i hope it will also work for you. But you might want to read the README file that comes along with the source code since that is where most of the instructions are placed.
 
Old 06-06-2006, 09:03 AM   #6
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Original Poster
Rep: Reputation: 15
guys thank you all for your posts.

cs-cam read the 1st 1st post of mine its clear enough.

and i repeat: I try to install hostap driver 0.4.9 but when i try to compile it and i run make i get this:
Quote:
/root/Desktop/Prism2.5/Hostap0.4.9/hostap-driver-0.4.9/driver/modules/hostap.c:46:2: error: #error The version used in the kernel tree should be used instead of this
/root/Desktop/Prism2.5/Hostap0.4.9/hostap-driver-0.4.9/driver/modules/hostap.c:47:2: error: #error external release which is only maintained for old kernel versions.
It is obvious what it means.

with make clean i get:

Quote:
[root@monaco hostap-driver-0.4.9]# make clean
rm -f driver/modules/{hostap_cs.o,hostap_plx.o,hostap_pci.o}
rm -f driver/modules/{hostap.o,hostap_crypt_wep.o,hostap_crypt_tkip.o,hostap_crypt_ccmp.o}
rm -f driver/modules/*.ko
rm -f driver/modules/*.ver
rm -f driver/modules/*.mod.[co]
rm -f driver/modules/*.mod
rm -f driver/modules/.hostap*.cmd
Then i run make and the msg above appears along with an error at the end.

The readme just says to edit the kernel path which i did run make and then make install.

My problem is how do i install this driver?
 
Old 06-06-2006, 09:29 AM   #7
ghatamos
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
the driver you are trying to install is not compatible with your kernel version as indicated with the error you are getting.

However, if you are sure that this driver can run on the kernel that you have, you can always edit the driver source code so that it will not stop you from runnig make.

I think the numbers on the right side of the error denotes the line number where the error occured, so check it and modify.
 
  


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
Recompile drivers after upgrade? Tons of Fun Debian 4 09-11-2005 10:00 PM
Kernel recompile -> drivers get messed ar1 Linux - General 2 12-28-2004 10:11 PM
how2 recompile kernel 4 nvidia drivers AVD_ZM Fedora 9 12-25-2004 02:44 PM
recompile my linux kernel jcar875496 Slackware 6 12-10-2004 03:30 PM
kernel recompile & hw "drivers" Jebiveter Slackware 1 10-15-2003 06:26 PM

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

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