LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   patch question (https://www.linuxquestions.org/questions/linux-kernel-70/patch-question-539678/)

macaal 03-22-2007 12:20 PM

patch question
 
hallo everybody...!!!

I've install debian etch at my laptop...sucessfull.!
now I want to upgrate my kernel... for a higher one...!!!
i run the Linux 2.6.18-4-k7 #1 SMP Wed Feb 21 16:48:19 UTC 2007 i686 GNU/Linux
kernel ...
the question is that if I can it patch-it with the patch that the www.kernel.org offers currend patch is the 2.6.20.3 or must I patch it firs with others patches????

acid_kewpie 03-22-2007 12:44 PM

first, WHY do you want to do this? if you have no specific reason to, i'd suggest you should wait until you do have a reason.

you can not patch an existing binary kernel, the patches at kernel.org are to step from the previous release to the next. you personally will probably never have a valid reason to want to do this. i'd advise you stick with standard kernels available via apt.

you're free to compile your own kernels of course, but YMMV.

nx5000 03-22-2007 01:11 PM

I agree with acid_kewpie, take care it's a big operation.

You should NEVER upgrade a kernel. A good rule is to always keep a rescue one.
So what you can do is to add another one: you can have 2 kernels in /boot and in grub you choose the one you want.

Debian hasn't created any official (==fully tested) binary package yet, but there is an unofficial debian repository which contains the 2.6.20.3 made 4 days ago.


Add this to your repository list (/etc/apt/sources.list)

Then
apt-get update
apt-get install linux-image-2.6.20-1-k7
<this will install the new binary kernel and update grub, and still leave the other one>

Reboot...


edit:
ahhh I just saw you have etch, not sure if it will allow you to do this because it's supposed to be for sid (unstable)

macaal 03-22-2007 01:12 PM

reply
 
thanks, at all i think i have understanding ...

thank you all... hope that some day i can do sooo...free.. what i want!!!

nx5000 03-22-2007 01:19 PM

Did you try my tip? I have installed a kernel from overthere works like a charm.

edit:
if it doesn't work, try this:
Quote:

apt-get install -t sid linux-image-2.6.20-1-k7

Quakeboy02 03-22-2007 01:32 PM

In addition to the above, I can validate that 2.6.20.3 works just fine with Debian Etch. I got the source from kernel.org and it compiled with no problems, no surprises. One issue I've had with 2.6.20 has been that madwifi wouldn't work with it. But, madwifi 0.9.3 takes care of that problem.

By the way, I've got 8 bootable kernels. I generally don't remove older ones until I'm sure a later kernel won't cause a problem. But, even I admit that this is a few too many. Guess I'll have to remove some of them. :)

nx5000 03-22-2007 01:38 PM

Quote:

ls -1 /boot/vm*
vmlinuz-2.6.18-4-686
vmlinuz-2.6.20-1-686
vmlinuz-2.6.20.1+antio+lowlat
vmlinuz-2.6.20.1+antio+nopreempt+300
vmlinuz-2.6.20.1+antio+volontary
vmlinuz-2.6.20.2+ipt+cfq
vmlinuz-2.6.20.3perso
vmlinuz-2.6.20+antio+nopreempt+1000+bootsplash
vmlinuz-2.6.21-rc2+ipt

Hum playing around with IO+scheduler+HZ and an old 2.6.21 rc..
:)

macaal 03-22-2007 01:57 PM

hey
 
i've lilo
do this automatic update it too...???

nx5000 03-22-2007 02:00 PM

Quote:

Originally Posted by macaal
i've lilo
do this automatic update it too...???

Yes, it's designed for grub, zipl, elilo, yaboot, lilo, silo, quik, palo, vmelilo, nettrom, arcboot or delo but I'm using grub so can't tell you.


All times are GMT -5. The time now is 10:12 AM.