You are not logged in.

#1 2013-05-25 11:41:32

hongster
Member
Registered: 2009-02-27
Posts: 37
Website

[SOLVED] How do I undo patch.

How do I remove patches I have applied to kernel modules?

I have applied some patches (e.g. compat-drivers-patched from AUR) to some of the kernel modules. I am not satisfy with the result and would like to revert the changes. How do I do it?

Will re-installation/upgrade of linux and linux-headers packages undo the applied patches?

Last edited by hongster (2013-05-26 05:51:28)

Offline

#2 2013-05-25 11:54:10

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: [SOLVED] How do I undo patch.

-R

?

Offline

#3 2013-05-25 12:03:24

hongster
Member
Registered: 2009-02-27
Posts: 37
Website

Re: [SOLVED] How do I undo patch.

@qinohe I do not understand what you mean.

Offline

#4 2013-05-25 12:45:50

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: [SOLVED] How do I undo patch.

Oh' s**t didn't read good enough, thought you patched with bzip2.
So removing the packages leafs you with the patch still active?

Offline

#5 2013-05-26 02:09:15

hongster
Member
Registered: 2009-02-27
Posts: 37
Website

Re: [SOLVED] How do I undo patch.

I am not sure, and I do not know how to verify that.

The ath9k driver used to crashed randomly. I have to resort to downgrading my kernel to version 3.7.3-1 as a workaround. I have been experiencing good WiFi connectivity since the downgrade. Then I came across compat-drivers-patched from AUR. I have installed the patch with the latest kernel (3.9.3-1), but it did not solve the issue. ath9k driver continues to crash randomly. I downgraded the kernel to 3.7.3-1 again, as the patch is not useful. Recently I encountered a number of random crashes caused by ath9k. I am suspecting that patch is not removed effectively. I would like to know a sure way to remove the patch.

Offline

#6 2013-05-26 03:14:59

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] How do I undo patch.

Custom modules goes in extramodules according to the PKGBUILD. Just uninstall that package pacman -Rn packagename and upgrade your kernel and reboot. It should be gone after that. Really it should revert to the old one just by uninstalling and rebooting. But doing a kernel upgrade too I don't think it will be there still. You can easily verify though by looking in /usr/lib/modules/extramodules-3.9-ARCH where "3.9-ARCH" is your current kernel name / version.

Last edited by dodo3773 (2013-05-26 03:25:02)

Offline

#7 2013-05-26 05:35:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] How do I undo patch.

I think dodo is right, unless of course you downgraded all the way back to 3.8.* (or upgraded from 3.8.* to 3.9.*).

Offline

#8 2013-05-26 05:50:08

hongster
Member
Registered: 2009-02-27
Posts: 37
Website

Re: [SOLVED] How do I undo patch.

dodo3773 wrote:

Custom modules goes in extramodules according to the PKGBUILD. Just uninstall that package pacman -Rn packagename and upgrade your kernel and reboot. It should be gone after that. Really it should revert to the old one just by uninstalling and rebooting. But doing a kernel upgrade too I don't think it will be there still. You can easily verify though by looking in /usr/lib/modules/extramodules-3.9-ARCH where "3.9-ARCH" is your current kernel name / version.

Thanks @dodo3773! My `/usr/lib/modules/extramodules-3.7-ARCH` contains only 1 file named "version", and nothing else. I think The patches have been removed through the uninstallation. I have also reinstalled `linux` and `linux-headers` again. I think my currently running kernel is free from the compat-drivers-patched. I guess the ath9k driver crashing has nothing to do with the patch now, I have to figure out how to fix the ath9k driver issue.

Offline

#9 2013-05-26 06:02:56

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] How do I undo patch.

Yeah you should be fine. You're welcome. Glad you sorted it out.

Offline

Board footer

Powered by FluxBB