LinuxQuestions.org
Help answer threads with 0 replies.
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 09-15-2004, 02:14 PM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
New kernel & modules


In my current configuration i am using several modules (hostap , i2c, lm_sensors etc...)

If i upgrade my kernel (from 2.4.25 to 2.4.27) i have to recompile all modules again or i can keep the old ones?

Exist any tool that can help me with the job?
 
Old 09-15-2004, 02:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You'll have to recompile them.

The easiest way of doing that would be to copy
linux-2.4.25/.config to linux-2.4.27/.config
and run "make oldconfig"


Cheers,
Tink
 
Old 09-15-2004, 04:25 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
One of the nice things about Debian is that it makes kernel compiling very easy. First you run make menuconfig (or make xconfig) to get an easy-to-use graphical configuration screen. When you're finished configuring everything, just run 'make-kpkg kernel_image' and it will automagically compile the kernel and all modules and create a nice .deb package for you to install. Then dpkg -i <kernel-image-package-name> and reboot. It will even update lilo or grub for you.
 
Old 09-17-2004, 07:08 PM   #4
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
The modules i am using arent in the kernel
Are modules that i created manually from sources....

If i follow 'David the H.' suggestion kenrel and modules will be in one deb package? If yes, i cant use the modules with next update.
 
Old 09-17-2004, 07:35 PM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
You create the install the modules when you do make modules and make modules_install...

Are you talking about installing a kernel binary or doing a new kernel compile???
 
Old 09-18-2004, 02:12 AM   #6
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
Using kernel 2.4.25 with some modules compiled from sources (ex. hostap = doesnt exist in the kenrel source tree)

tar zxvf <kenerl.2.4.27>
make oldconfig (using my oldconfig)
make bzImage
make modules
make modules_install
copy bzImage
update lilo
reboot

Now can i use hostap module from old kernel ? No, I have to recompile each module again.
`David the H.` suggestion apply here?
 
Old 09-18-2004, 05:47 AM   #7
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I don't know what hostap is. Can you get it as a source patch for the kernel perhaps?
 
Old 09-18-2004, 08:45 AM   #8
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
Yes is possible to patch the kenrel....
 
Old 09-18-2004, 01:58 PM   #9
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Quote:
Originally posted by JJX
If i follow 'David the H.' suggestion kenrel and modules will be in one deb package? If yes, i cant use the modules with next update.
What I mean is that when you use kpkg, the kernel will get compiled and installed where it needs to go, and the modules will get compiled and installed where they're supposed to go, just as if you used a stock kernel. All it does is make compiling and installing easier; it doesn't do anything different otherwise.

Whenever you update the kernel, you're always supposed to update the modules as well anyway. It's not a good idea to use old modules with a new kernel, or vice-versa.
 
Old 09-19-2004, 02:35 AM   #10
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
nice - thx
 
  


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
vmware-config.pl & kernel modules mythief Linux - Software 13 01-08-2005 12:53 PM
vmware-config.pl & kernel modules mythief Mandriva 1 11-17-2004 12:46 PM
kernel failing loading unnessary modules && issues upgrading to kde 3.2.2 promark Slackware 2 06-09-2004 04:03 PM
Kernel Update & Modules JJX Linux - Newbie 7 04-26-2004 12:43 AM
Alsa modules & a win4lin kernel raypen Linux - Software 5 04-22-2003 09:21 AM

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

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