Anyone got kgdb successfully patched on kernel 2.6.25.7 for ARM (arm-iwmmxt-linux-gnueabi)?
I get the following using 'linux-2.6.15.5-kgdb-2.4.tar.bz2' (couldn't find the exact kernel / patch?):
me@pc:~/sysbuild/linux-2.6.25.7$ sudo patch -p1 < linux-2.6.15.5-kgdb-2.4/core-lite.patch
patching file Documentation/DocBook/Makefile
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file Documentation/DocBook/Makefile.rej
patching file Documentation/DocBook/kgdb.tmpl
patching file lib/Kconfig.debug
Hunk #1 FAILED at 199.
1 out of 1 hunk FAILED -- saving rejects to file lib/Kconfig.debug.rej
patching file kernel/pid.c
Hunk #1 succeeded at 496 with fuzz 1 (offset 246 lines).
Hunk #2 FAILED at 524.
1 out of 2 hunks FAILED -- saving rejects to file kernel/pid.c.rej
patching file kernel/kgdb.c
patching file kernel/Makefile
Hunk #1 FAILED at 26.
1 out of 1 hunk FAILED -- saving rejects to file kernel/Makefile.rej
patching file kernel/sched.c
Hunk #1 FAILED at 47.
Hunk #2 succeeded at 7360 with fuzz 1 (offset 1704 lines).
1 out of 2 hunks FAILED -- saving rejects to file kernel/sched.c.rej
patching file include/linux/kgdb.h
patching file MAINTAINERS
Hunk #1 succeeded at 2319 with fuzz 2 (offset 827 lines).
me@pc:~/sysbuild/linux-2.6.25.7$ sudo patch -p1 < linux-2.6.15.5-kgdb-2.4/core.patch
patching file kernel/kgdb.c
Hunk #2 succeeded at 1058 (offset 10 lines).
patching file kernel/softlockup.c
Hunk #1 succeeded at 15 with fuzz 2 (offset 1 line).
Hunk #2 FAILED at 39.
1 out of 2 hunks FAILED -- saving rejects to file kernel/softlockup.c.rej
patching file kernel/timer.c
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 894.
2 out of 2 hunks FAILED -- saving rejects to file kernel/timer.c.rej
patching file include/linux/kgdb.h
Hunk #1 succeeded at 38 (offset -4 lines).
me@pc:~/sysbuild/linux-2.6.25.7$ sudo patch -p1 < linux-2.6.15.5-kgdb-2.4/arm-lite.patch
patching file drivers/serial/amba-pl011.c
Hunk #1 succeeded at 332 (offset -18 lines).
patching file arch/arm/mach-versatile/kgdb_serial.c
patching file arch/arm/mach-pxa/kgdb-serial.c
patching file arch/arm/mach-pxa/Makefile
Hunk #1 FAILED at 28.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/mach-pxa/Makefile.rej
patching file arch/arm/mm/extable.c
patching file arch/arm/kernel/kgdb-jmp.S
patching file arch/arm/kernel/kgdb.c
patching file arch/arm/kernel/traps.c
Hunk #1 succeeded at 294 with fuzz 2 (offset 19 lines).
Hunk #2 FAILED at 304.
Hunk #3 FAILED at 704.
2 out of 3 hunks FAILED -- saving rejects to file arch/arm/kernel/traps.c.rej
patching file arch/arm/kernel/Makefile
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/kernel/Makefile.rej
patching file arch/arm/kernel/setup.c
Hunk #1 succeeded at 853 (offset 67 lines).
patching file arch/arm/mach-omap1/serial.c
Hunk #1 succeeded at 15 with fuzz 1.
patching file arch/arm/mach-ixp4xx/ixdp425-setup.c
Hunk #1 FAILED at 23.
Hunk #2 succeeded at 153 (offset 75 lines).
Hunk #3 succeeded at 163 (offset 75 lines).
Hunk #4 succeeded at 247 (offset 123 lines).
1 out of 4 hunks FAILED -- saving rejects to file arch/arm/mach-ixp4xx/ixdp425-setup.c.rej
patching file arch/arm/mach-ixp4xx/coyote-setup.c
Hunk #1 FAILED at 91.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/mach-ixp4xx/coyote-setup.c.rej
patching file arch/arm/mach-ixp2000/core.c
Hunk #2 succeeded at 185 (offset 10 lines).
patching file arch/arm/mach-ixp2000/ixdp2x01.c
Hunk #2 FAILED at 176.
1 out of 2 hunks FAILED -- saving rejects to file arch/arm/mach-ixp2000/ixdp2x01.c.rej
patching file lib/Kconfig.debug
Hunk #1 FAILED at 209.
1 out of 1 hunk FAILED -- saving rejects to file lib/Kconfig.debug.rej
patching file include/asm-arm/kgdb.h
patching file include/asm-arm/system.h
Hunk #1 succeeded at 378 with fuzz 2 (offset -27 lines).
And of course no KGDB under 'menconfig' --> 'kenrel hacking'?
use a recent kernel that has
use a recent kernel that has kgdb now so you won't need to modify the patch to suit your kernel.
You can not patch a kernel where the patch meant to be for another kernel version.
-Mathieu