LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-25-2004, 03:13 AM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
kernel patches


Have kernel patches to be configured? Like kernel compilation.
 
Old 08-25-2004, 04:43 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Huh? Can you please phrase that in the form of a question?
 
Old 08-25-2004, 05:31 AM   #3
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
After you patch your kernel, you have to recompile to enable the features you added via the patch. Was that your question?
 
Old 08-25-2004, 06:11 AM   #4
m0rt3r
Member
 
Registered: Mar 2004
Distribution: slackware 10
Posts: 75

Rep: Reputation: 15
I'm sure he's asking if patching a kernel is done the same way as compiling a kernel. If that is your questions the answer is yes, first you have to patch the kernel, and then recompile the kernel.

for instance you first have to do this :
1. you'll have to untar the patch (i.e tar xvzf patchx.tar.gz) or you have to install it in case it is a .tgz package.
2. then you'll go to the /usr/src/linux directory
3. do patch -p1 < /location of patch/nameof patch.diff
the location of the patch-file is the full path (i.e /root/Desktop/examplepatch.diff)
4. then after that you'll have to recompile your kernel.
Oh before i forgot after you untar the patch you'll probably might want to read the documentation that comes with it, i'm sure it'll tell you how to install it, but this is basically how to do it.
 
Old 08-25-2004, 07:34 AM   #5
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Ok.
If have to recompile the kernel then it would be better to compile an higher version of kernel (ie 2.8) rather than patching and recompiling a 2.4.21 kernel

Am i right?
 
Old 08-25-2004, 04:40 PM   #6
m0rt3r
Member
 
Registered: Mar 2004
Distribution: slackware 10
Posts: 75

Rep: Reputation: 15
If you don't feel like recompiling kernels, you can also go to slackware.com and download the newest kernel packages, which are 2.4.26. I think you might be using either slackware 9.0 or 9.1 because slackware 10 ships with kernel 2.4.26.

Just go here:
http://slackware.osuosl.org/

1.Then choose the directory of your slackware version (i.e slackware9.1)
2. After that go to the patches directory
3. Then go to the packages directory
4. Download the kernel packages available (i.e kernel-headers, kernel-ide, kernel-modules, kernel-source)
5. check the checksum of the packages
6. upgrade the kernel, do the following
Code:
upgradepkg nameofpackage.tgz
7.after upgrading the kernel do
Code:
lilo -t, then do lilo -v
8.now you can reboot your system.

If you still have the 2.4.21 kernel that means you don't have the patches for the vulnerabilities that were discover a while ago, you must subscribe to the slackware-security mailing list. They will send you an e-mail any time there's a new package to upgrade. most of the time the e-mail they send you comes with instructions on how to upgrade .
here's a link:
http://slackware.com/lists/
 
Old 08-26-2004, 02:45 AM   #7
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Thank you for your answer.
I am also wondering why should one apply some patches for his kernel and not install an newer kernel?
 
Old 08-26-2004, 10:22 AM   #8
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
Quote:
Originally posted by dominant
Thank you for your answer.
I am also wondering why should one apply some patches for his kernel and not install an newer kernel?
1. If you don't have the bandwidth to get the new one
2. If you need to add features e.g. bootsplash, selinux, security fixes
3. If you wanna learn how to patch a kernel
4. Can't think of anything else

Last edited by insyte; 08-26-2004 at 10:23 AM.
 
  


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
kernel patches? cuchumino Linux - Newbie 1 11-10-2004 06:28 PM
kernel patches _mu_ Debian 1 02-15-2004 10:20 AM
kernel patches? e1000 Linux - General 2 01-07-2004 11:02 PM
Kernel Patches el_felipe Linux - General 6 02-07-2002 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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