LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2007, 03:56 PM   #1
TheDirtyScreech
Member
 
Registered: Jul 2007
Distribution: Gentoo, LFS
Posts: 42

Rep: Reputation: 15
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-
 
Old 07-25-2007, 08:47 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
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.
 
Old 07-26-2007, 11:14 AM   #3
TheDirtyScreech
Member
 
Registered: Jul 2007
Distribution: Gentoo, LFS
Posts: 42

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



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
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 1 02-06-2018 06:48 AM
powerpc: kernel patching... but which kernel source? parent's_basement Ubuntu 2 01-15-2007 01:46 PM
Patching the Kernel Zuggy Linux - General 3 12-27-2004 08:34 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM
Patching the kernel jrdioko Linux - Software 2 06-29-2004 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 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
Open Source Consulting | Domain Registration