LinuxQuestions.org
Visit Jeremy's Blog.
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, 03:14 PM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

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, 03:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 05:25 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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, 08:08 PM   #4
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

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, 08: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, 03:12 AM   #6
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

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, 06: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, 09:45 AM   #8
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
Yes is possible to patch the kenrel....
 
Old 09-18-2004, 02:58 PM   #9
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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, 03:35 AM   #10
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
nice - thx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration