From: Fawad Lateef <fawadlateef@gmail.com>
To: anup badhe <anup_223@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: patching kgdb to linux
Date: Sun, 25 Sep 2005 14:14:46 +0500 [thread overview]
Message-ID: <1e62d1370509250214277ae075@mail.gmail.com> (raw)
In-Reply-To: <20050925035539.93945.qmail@web52407.mail.yahoo.com>
On 9/25/05, anup badhe <anup_223@yahoo.com> wrote:
> i am trying to debug the linux kernel 2.6.10 using
> kgdb.i have downloaded the kgdb patch 2.6.10-mm2.bz2.
> after bunzip2 it gives me the file 2.6.10-mm2.
>
> problem:
> 1- which type of file is this?
> 2- what patch command should i use(the options) so
> that i can patch it to linux 2.6.10.?
> 3-i have used the following command and it gives me
> some errors:
>
> root@localhost root]# patch -p1 <2.6.10-mm2
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this
> was:--------------------------|---
> linux-2.6.10/arch/alpha/defconfig 2004-10-18
> 16:55:19.000000000 -0700
> |+++ 25/arch/alpha/defconfig 2005-01-05
> 23:22:42.000000000 -0800
> --------------------------
> File to patch:
>
For patch the same kernel version is necessary ... means if the patch
is for 2.6.10-mm2 then you must have that kernel version .... means
first get 2.6.10 and then get mm2 patch for it .... apply patch to the
kernel and then apply patch for kgdb-2.6.10-mm2
mm2 patch you can get from kernel.org .........
for applying patch do :
1) extract the kernel source to /usr/src/ directory then do cd to that
directory
2) run in kernel directorty ....... (don't extract the patch file
from bz2 file)
bzip2 -dc <patch_file_name> < patch -p1
the above command should succeed and have to show you patching file
msgs only ... don't show hunk or ask you something .... if its
happening then you patch and kernel are not syncronized and patch
wqon't be successful
3) then run the kgdb-2.6.10-mm2 patch like the above command in the
kernel directory ...
Then recompile kernel and do select kgdb option from the kernel
configuration menu
I hope this will work ...
--
Fawad Lateef
prev parent reply other threads:[~2005-09-25 9:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-25 3:55 patching kgdb to linux anup badhe
2005-09-25 5:11 ` Randy.Dunlap
2005-09-25 7:41 ` Sam Ravnborg
2005-09-25 9:14 ` Fawad Lateef [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e62d1370509250214277ae075@mail.gmail.com \
--to=fawadlateef@gmail.com \
--cc=anup_223@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.