Re: how to fetch the patch file??



On Sep 7, 4:59 pm, ashu <aswin...@xxxxxxxxx> wrote:
i got the 2.6.22 source but how to patch patch 2.6.22.6 with that

On Sep 7, 10:51 am, Janaka <jana...@xxxxxxxxxxxx> wrote:

On Sep 7, 2:24 pm, ashu <aswin...@xxxxxxxxx> wrote:

On Sep 6, 10:18 pm, Juergen Beisert <jbeis...@xxxxxxxxxxxx> wrote:> ashu wrote:
hi........
how to install the patch file? i have installed in the following
manner.... patch -po<new -patch it is asking for the file to patch

What did you try to patch and with what patch file?

J

we are running the device drivers program in uclinux
environment.......
our kernel version is 2.6.11
release : 1.136_fcq
distribution: redhat
we tried to compile the program withthe command: gcc <filename.c>
2>error.log1>compile.log
we got errors in header files.......to overcome this we tried to fetch
this patch file:patch.2.6.22.6.........how can i solve this
problem?????????

I dont know about uclinux, but with the vanilla kernel patches are
there to be done from a build version minor revision (eg: 2.6.22 ) to
a minor-minor revision (eg: 2.6.22.6). You cant patch a 2.6.11 kernel
with patch.2.6.22.6. You will need to get 2.6.22, source and then
patch it with 2.6.22.6. Have a read of the kernel Docs in the kernel
tree.
Given that is a customized kernel, you should read the vendor
instructions (Eg: uclinux documentation).
Regardless I doubt whether the problem you are having is with the
kernel version. It could be a problem with the toolset (GCC, CC)
compatibility.

Try the following:
1. Change directory to <your source directory> (eg: cd /usr/src/linux-
kernel-2.6.22)
2. Use the patch command to patch your source (eg: patch -p1 </usr/src/
patch-2.6.22.6)
Note that -p1 says to ignore top level dir (eg: start patching from
second level stored on the patch file) . Also I am assuming your
patch file is called "patch-2.6.22.6"
3. Check the output of the patch command and see everything was ok.
If there are conflicts, patch will store the conflict files as .rej.
You will have to fix any conflicts by hand.

.



Relevant Pages

  • Re: RT patch acceptance
    ... judge the complexity of a design for that type of system. ... claim that you cannot judge the complexity of a kernel modification. ... Since the patch in question doesn't actually need that information to ... nanokernel's API up to date with additions to Linux's API that RT people ...
    (Linux-Kernel)
  • Re: [SLE] New kernel and nVidia
    ... Select to update the SuSE supplied nvidia patch from list ... Click install ... means that each time there is a kernel update the relevant module is ...
    (SuSE)
  • [RFC] Making percpu module variables have their own memory.
    ... Someone using the -rt patch found that one of the tracing options caused ... 64K for every CPU to cover all the per_cpu variables used in the kernel ... static void wakeup_softirqd_prio ...
    (Linux-Kernel)
  • Re: This is [Re:] How to improve the quality of the kernel[?].
    ... The -mm kernel already implements what your proposed PTS would do. ... If patch have no TS ID, ... Thus i can apply for example lguest patches and implement and test new ... How many open source projects use Bugzilla and how many use the Debian BTS? ...
    (Linux-Kernel)
  • Re: Documentation - how to apply patches for various trees
    ... >> explanation of the various kernel trees and how to apply their patches. ... +a patch to the kernel or, more specifically, what base kernel a patch for ... +and what new version the patch will change the source tree into. ...
    (Linux-Kernel)