Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th October 2010, 10:03 PM
PseudoPsyche's Avatar
PseudoPsyche Offline
Registered User
 
Join Date: Oct 2010
Posts: 10
windows_xp_2003chrome
Apply a patch to an existing install?

Just wondering if this is possible and if so, how? I want to be able to apply the following patch: https://patchwork.kernel.org/patch/118834/

It is apparently a test fix for the touchpad on the newer Dell laptops. I want to test drive it a bit. Otherwise, if someone could point me in the right direction as to custom compile a Fedora 13 x64 disc including this patch, that would be great.

Thanks.

~PseudoPsyche
Reply With Quote
  #2  
Old 25th October 2010, 10:43 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: Apply a patch to an existing install?

You have to get the Linux kernel source from kernel.org and apply the
patch to it.

Be sure to get the correct kernel that the patch is for. Sometimes source
patches like this can be applied to earlier kernels... but it frequently causes
consternation when error messages about "offset" and "reject"
errors.

Actually doing the kernel build is not a problem. You may need to install
the package "dracut" to build the initrd as part of the last step.


Untar the kernel source in a directory (I use "linux" in my home directory).

cd into that directory to do the tar command, which will create a directory name
like "linux-2.6.36".

Now cd into that directory for the rest:

cp /boot/config-2.6.xxxfc13.x86_64 ./.config

For my system, the xxx came out as "34.7-61."

make gconfig

There are alternatives - make menuconfig, make xconfig (though
that one didn't work the last time I tried it. Missing some oddball
libraries it seems). They are all pretty much equivalent.

This step creates a configuration tool to examine the settings in
the .config file. There are a couple that have been superseded,
but they can be ignored.

Save the result (this is usually when the errors occur). You can
browse around an see what Fedora uses by default if you want
(read some of the help messages).

make; make modules

This will take a while...

su to root to install:

make install; make modules_install

This will also take a while, but will insert the kernel into the
grub configuration - the default reference (the current kernel
usually) will be updated to continue booting the current kernel
by default.

After everything is done, be sure you have some time to select
the new kernel (it will be the first one in the menu). I like setting
the grub timeout value to 10 so I have plenty of time to get the
attention of grub at boot.

After you test the new kernel to verify that it works at least as well as
the current one, you can apply the patch (read the patch directions
at http://www.linuxhq.com/patch-howto.html to get started.

Rebuild the kernel.. (you can skip the beginning up through the make
gconfig part, as that has already been done).
Try it out again...

If you like it, you can change the default boot...

Last edited by jpollard; 25th October 2010 at 11:04 PM. Reason: folloup...
Reply With Quote
Reply

Tags
apply, existing, install, patch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New install with existing /home jwspring Installation and Live Media 8 5th February 2008 05:06 AM
how to apply patch scotta3234 Using Fedora 1 9th February 2007 03:05 AM
Just installed Fedora, can't apply updates or install new programs? judobrian Using Fedora 4 6th February 2007 04:18 PM
F4 patch, or F5 clean install. sosullivan Installation and Live Media 2 28th April 2006 02:20 PM
HELP!Cannot apply the CONNMARK patch sherman Using Fedora 0 25th February 2005 04:00 AM


Current GMT-time: 01:38 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat