LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New kernel & modules (https://www.linuxquestions.org/questions/linux-newbie-8/new-kernel-and-modules-230990/)

JJX 09-15-2004 02:14 PM

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?

Tinkster 09-15-2004 02:22 PM

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

David the H. 09-15-2004 04:25 PM

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.

JJX 09-17-2004 07:08 PM

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.

amosf 09-17-2004 07:35 PM

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???

JJX 09-18-2004 02:12 AM

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?

amosf 09-18-2004 05:47 AM

I don't know what hostap is. Can you get it as a source patch for the kernel perhaps?

JJX 09-18-2004 08:45 AM

Yes is possible to patch the kenrel....

David the H. 09-18-2004 01:58 PM

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.

JJX 09-19-2004 02:35 AM

nice - thx ;)


All times are GMT -5. The time now is 07:23 AM.