LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel Patching Help Required (https://www.linuxquestions.org/questions/linux-software-2/kernel-patching-help-required-572244/)

TheDirtyScreech 07-25-2007 03:56 PM

Kernel Patching Help Required
 
I am requiring squashfs support in the 2.6.22 kernel (which isn't supported natively). I'm trying to patch it, but it errors out using the standard squashfs patch. There is a "further" patch here, and I'm looking to add the patch in the last post. However, I'm used to using the "patch" utility for kernel patching and am unsure how to apply this (looks like a diff file).

Does anyone know how to apply this type of a patch? Also, would this be applied directly to the kernel source, or to the original 2.6.20 patch?


-TheDirtyScreech-

studioj 07-25-2007 08:47 PM

that looks like a patch applied to the patch to me.
patch -Np1 -i
is what i would do
if the patch is outside of the squashfs directory and you are inside do
patch -Np1 -i ../nameofpatch
i might be wrong
sometimes patches go in the same directory as the file they are trying to patch but that one looks like it fits the directory structure.

TheDirtyScreech 07-26-2007 11:14 AM

Thanks for the help. Here's the output (which indicates an error in the patch's patch to me):

Quote:

patching file /tmp/squashfs3.2-r2/kernel-patches/linux-2.6.20/squashfs3.2-patch
Hunk #1 FAILED at 87.
Hunk #3 FAILED at 2388.
2 out of 3 hunks FAILED -- saving rejects to file /tmp/squashfs3.2-r2/kernel-patches/linux-2.6.20/squashfs3.2-patch.rej
Anybody have an idea on how to fix the thing?


All times are GMT -5. The time now is 02:06 AM.