how to fetch the patch file?? - Embedded

This is a discussion on how to fetch the patch file?? - Embedded ; hi........ how to install the patch file? i have installed in the following manner.... patch -po...

+ Reply to Thread
Results 1 to 14 of 14

Thread: how to fetch the patch file??

  1. how to fetch the patch file??

    hi........
    how to install the patch file? i have installed in the following
    manner.... patch -po

  2. Re: how to fetch the patch file??

    ashu wrote:
    > hi........
    > how to install the patch file? i have installed in the following
    > manner.... patch -po

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

    JB

  3. Re: how to fetch the patch file??

    On Sep 6, 10:18 pm, Juergen Beisert wrote:
    > ashu wrote:
    > > hi........
    > > how to install the patch file? i have installed in the following
    > > manner.... patch -po
    >
    > 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
    2>error.log1>compile.log
    we got errors in header files.......to overcome this we tried to fetch
    this patch fileatch.2.6.22.6.........how can i solve this
    problem?????????


  4. Re: how to fetch the patch file??

    On Sep 7, 2:24 pm, ashu wrote:
    > On Sep 6, 10:18 pm, Juergen Beisert wrote:> ashu wrote:
    > > > hi........
    > > > how to install the patch file? i have installed in the following
    > > > manner.... patch -po

    >
    > > 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
    > 2>error.log1>compile.log
    > we got errors in header files.......to overcome this we tried to fetch
    > this patch fileatch.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.


  5. Re: how to fetch the patch file??

    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 wrote:
    > On Sep 7, 2:24 pm, ashu wrote:
    >
    >
    >
    > > On Sep 6, 10:18 pm, Juergen Beisert wrote:> ashu wrote:
    > > > > hi........
    > > > > how to install the patch file? i have installed in the following
    > > > > manner.... patch -po

    >
    > > > 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
    > > 2>error.log1>compile.log
    > > we got errors in header files.......to overcome this we tried to fetch
    > > this patch fileatch.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.




  6. Re: how to fetch the patch file??

    ashu wrote:

    > i got the 2.6.22 source but how to patch patch 2.6.22.6 with that


    ~ $ tar xf linux-2.6.22.tar.bz2
    ~ $ bunzip2 patch-2.6.22.6.bz2
    ~ $ cd linux-2.6.22
    linux-2.6.22 $ patch -p1 < ../patch-2.6.22.6

    Done.

    See also: man patch

    Juergen

  7. Re: how to fetch the patch file??

    On Sep 7, 4:59 pm, ashu 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 wrote:
    >
    > > On Sep 7, 2:24 pm, ashu wrote:

    >
    > > > On Sep 6, 10:18 pm, Juergen Beisert wrote:> ashu wrote:
    > > > > > hi........
    > > > > > how to install the patch file? i have installed in the following
    > > > > > manner.... patch -po

    >
    > > > > 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
    > > > 2>error.log1>compile.log
    > > > we got errors in header files.......to overcome this we tried to fetch
    > > > this patch fileatch.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 (eg: cd /usr/src/linux-
    kernel-2.6.22)
    2. Use the patch command to patch your source (eg: patch -p1 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.


  8. Re: how to fetch the patch file??

    on Friday 07 September 2007 17:21
    in the Usenet newsgroup comp.os.linux.embedded
    Juergen Beisert wrote:

    > ashu wrote:
    >
    >> i got the 2.6.22 source but how to patch patch 2.6.22.6 with that

    >
    > ~ $ tar xf linux-2.6.22.tar.bz2


    Shouldn't that be, "tar -xjf linux-.26.22.tar.bz2"?

    > ~ $ bunzip2 patch-2.6.22.6.bz2
    > ~ $ cd linux-2.6.22
    > linux-2.6.22 $ patch -p1 < ../patch-2.6.22.6
    >
    > Done.
    >
    > See also: man patch
    >
    > Juergen


    --
    sig goes here...
    Peter D.

  9. Re: how to fetch the patch file??

    On Sep 7, 2:11 pm, "Peter D." wrote:
    > on Friday 07 September 2007 17:21
    > in the Usenet newsgroup comp.os.linux.embedded
    >
    > Juergen Beisert wrote:
    > > ashu wrote:

    >
    > >> i got the 2.6.22 source but how to patch patch 2.6.22.6 with that

    >
    > > ~ $ tar xf linux-2.6.22.tar.bz2

    >
    > Shouldn't that be, "tar -xjf linux-.26.22.tar.bz2"?
    >
    > > ~ $ bunzip2 patch-2.6.22.6.bz2
    > > ~ $ cd linux-2.6.22
    > > linux-2.6.22 $ patch -p1 < ../patch-2.6.22.6

    >
    > > Done.

    >
    > > See also: man patch

    >
    > > Juergen

    >
    > --
    > sig goes here...
    > Peter D.


    even after installing the kernel and patch ,the same error has come
    for device driver compilation


  10. Re: how to fetch the patch file??

    Peter D. wrote:

    > on Friday 07 September 2007 17:21
    > in the Usenet newsgroup comp.os.linux.embedded
    > Juergen Beisert wrote:
    >
    >> ashu wrote:
    >>
    >>> i got the 2.6.22 source but how to patch patch 2.6.22.6 with that

    >>
    >> ~ $ tar xf linux-2.6.22.tar.bz2

    >
    > Shouldn't that be, "tar -xjf linux-.26.22.tar.bz2"?


    Older tar: yes. Newer tar: doesn't matter.

    Juergen

  11. Re: how to fetch the patch file??

    On Sep 7, 8:26 pm, yeah wrote:
    > On Sep 7, 2:11 pm, "Peter D." wrote:
    >
    >
    >
    > > on Friday 07 September 2007 17:21
    > > in the Usenet newsgroup comp.os.linux.embedded

    >
    > > Juergen Beisert wrote:
    > > > ashu wrote:

    >
    > > >> i got the 2.6.22 source but how to patch patch 2.6.22.6 with that

    >
    > > > ~ $ tar xf linux-2.6.22.tar.bz2

    >
    > > Shouldn't that be, "tar -xjf linux-.26.22.tar.bz2"?

    >
    > > > ~ $ bunzip2 patch-2.6.22.6.bz2
    > > > ~ $ cd linux-2.6.22
    > > > linux-2.6.22 $ patch -p1 < ../patch-2.6.22.6

    >
    > > > Done.

    >
    > > > See also: man patch

    >
    > > > Juergen

    >
    > > --
    > > sig goes here...
    > > Peter D.

    >
    > even after installing the kernel and patch ,the same error has come
    > for device driver compilation


    As I mentioned on my previous post, I dont think your problem is with
    the patch. It will most likely be your dev environment or platform
    dependent setup.


  12. Re: how to fetch the patch file??

    Why do you think you need a patch ? There are lots of other reasons that
    could be the cause of this.

    -Michael

  13. Re: how to fetch the patch file??

    Janaka wrote:

    > Try the following:
    > 1. Change directory to (eg: cd /usr/src/linux-
    > kernel-2.6.22)
    > 2. Use the patch command to patch your source (eg: patch -p1 > 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.


    Everyone should know about the --dry-run option which allows to check
    whether a patch applies cleanly before doing it for real

    Flo

    --
    Palimm Palimm!
    http://tapas.affenbande.org

  14. Re: how to fetch the patch file??

    Florian Schmidt wrote:

    > Janaka wrote:
    >
    >> Try the following:
    >> 1. Change directory to (eg: cd /usr/src/linux-
    >> kernel-2.6.22)
    >> 2. Use the patch command to patch your source (eg: patch -p1 >> 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.

    >
    > Everyone should know about the --dry-run option which allows to check
    > whether a patch applies cleanly before doing it for real


    And what if --dry-run shows you it will not apply cleanly? ;-)

    Juergen