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 - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-04-2007, 12:39 PM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
move modules accross kernels


Hello
I had to recompile my kernel to the latest to get some hardware support on a Toshiba laptop.
the problem is now solved on that behalf (I Hope), the other issue that has arisen is that the network card doesn't work under a kernel 2.6.20.4 while it worked correctly under a 2.6.18.4.. can I move the modules (r8169) from the old kernel to the new? simply copying pasting the module r8169.ko from /lib/modules/2.6.18.4/kernel/drivers/net to the 2.6.20.4/kernel/drivers/net.
doesn't seem to work maybe because modinfo r8169.ko.. says it's a 2.6.18 kernel..
thank you very much.
 
Old 04-04-2007, 12:57 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
You can try the force option of modprobe...might work. Or, conceivably it will damage your installation.

The larger question is why a module wasn't compiled for your new kernel. It should have been. Is the source present?
 
Old 04-04-2007, 04:36 PM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
yes, the source is present.. indeed i didn't add a option to it when i did make menuconfig as i assumed the old kernel recognized it, so this one would be the same but I was wrong.. I will try to recompile the kernel and search for it.
 
Old 04-04-2007, 08:17 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You could recompile the kernel using the config file from the old one with
Code:
make oldconfig
Be sure to clean out the build dirs first, by giving the command
Code:
make mrproper
This removes all traces of the previous build, so effectively you're starting from scratch

Last edited by Dutch Master; 04-04-2007 at 08:20 PM.
 
Old 04-06-2007, 06:22 AM   #5
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
what does exactly do make oldconfig? does it use the .config file of the 2.6.18 kernel or the config of the new kernel that has been freshly installed the new kernel has been customized for my laptop i just need to add support for the network card.
thank you.
 
  


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
Modules & custom kernels adrianlarsson Linux - Newbie 2 01-17-2007 01:03 PM
build kernels; losing modules mcnalu Slackware 6 12-20-2006 07:55 AM
precompiled kernels & modules linuxhippy Slackware 5 03-14-2005 07:46 PM
Modules and 2.6test kernels rch Linux - General 3 11-11-2003 09:39 PM
How to test between 2 kernels in /etc/modules.conf pnb Linux - General 2 11-10-2003 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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