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? |
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 |
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.
|
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. |
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??? |
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? |
I don't know what hostap is. Can you get it as a source patch for the kernel perhaps?
|
Yes is possible to patch the kenrel....
|
Quote:
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. |
nice - thx ;)
|
All times are GMT -5. The time now is 07:23 AM. |