still unable to compile with kgdb enabled
hi,
happily compiling kernels from 2.5 to 2.6 i finally wanted to give KGDB a try as suggested often enough. but i fail to do this.
i tried different kernels:
vanilla 2.4.25, results are here:
http://nerdbynature.de/bits/sheep/kgdb/kgdberror_linux-2.4.25.txt
i was looking for a kgdb patch on kgdb.sourceforge.net, but the latest version there is KGDB 2.0.1-2.0.5, which is for linux-2.6.1 only. on
http://spop.free.fr/kgdb/ i found a kgdb-1.9-for-2.4.25.patch.bz2, applying cleanly, but still gives me errors and does not compile:
http://nerdbynature.de/bits/sheep/kgdb/kgdberror_linux-2.4.25+kgdb-1.9.txt
2.4.25-ben1 (updated daily via rsync), results are here:
http://nerdbynature.de/bits/sheep/kgdb/kgdberror_linux-2.4.25-ben1.txt
again, i patched with kgdb-1.9-for-2.4.25.patch.bz2, giving me one reject in kernel/Makefile.rej:
~ obj-$(CONFIG_PM) += pm.o
+ obj-$(CONFIG_KGDB) += kgdbstub.o
results are here:
http://nerdbynature.de/bits/sheep/kgdb/kgdberror_linux-2.4.25-ben1+kgdb-1.9.txt
2.6.5-rc3-ben0 (updated daily via rsync), results are here:
http://nerdbynature.de/bits/sheep/kgdb/kgdberror_linux-2.6.5-rc3-ben0.txt
i was not able to apply the patches from KGDB 2.0.1-2.0.5 nor the patches from http://www.codemonkey.org.uk/projects/bitkeeper/kgdb/
(lots of rejects...details needed?)
so i my kernels still lack proper kgdb support :-( any hints?
powerpc-linux-ld -V
GNU ld version 2.14 20030612
~ Supported emulations:
~ elf32ppclinux ~ elf32ppc ~ elf32ppcsim
powerpc-linux-gcc --version
powerpc-linux-gcc (GCC) 3.3.2
(crosscompile toolchain under x86, running debian/unstable)
Thank you,
Christian.
- --
BOFH excuse #258:
That's easy to fix, but I can't be bothered.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Christian Kujau
hi,
happily compiling kernels from 2.5 to 2.6 i finally wanted to give KGDB a try as suggested often enough. but i fail to do this.
[snip]
Quoted 4 lines
i was looking for a kgdb patch on kgdb.sourceforge.net, but the latest version there is KGDB 2.0.1-2.0.5, which is for linux-2.6.1 only. on
http://spop.free.fr/kgdb/ i found a kgdb-1.9-for-2.4.25.patch.bz2, applying cleanly, but still gives me errors and does not compile:
The CVS version of the patch is against 2.6.5, and if you only pass in 'kgdbwait', it should work w/o mods (otherwise it breaks in very early, and requires some additional work). I've tested this out on a few machines locally, but not PPC_MULTIARCH, so there might be a few incidental things required to be fixed. I've been using the KGDB_8250, and not PPC_SIMPLE_SERIAL, but I plan on testing that sometime in the future.
FWIW, I'm about to go off for 2 weeks vacation, so I probably won't be able to help you, if it doesn't work right away.
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On Fri, 9 Apr 2004 15:06:46 -0700, Tom Rini wrote
Quoted 1 line
The CVS version of the patch is against 2.6.5, and if you only
the CVS version of kgdb.sourceforge.net? i fetched it, but it still does not apply:
------------
evil@sheep:/usr/src/linux-2.6-build$ head -n3 Makefile VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 5 evil@sheep:/usr/src/linux-2.6-build$ cat \ /usr/local/src/kgdb/kgdb-2/core.patch | patch -p1 --dry-run patching file include/linux/sched.h patching file include/linux/module.h can't find file to patch at input line 66 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- linux-2.6.5.orig/include/linux/kgdb.h 2004-04-08 09:40:25.496959430 -0700 |+++ linux-2.6.5/include/linux/kgdb.h 2004-04-08 16:14:12.662858861 -0700 -------------------------- File to patch: ------------
....and so on.
hm, i'll go then with the "-lite" patches, they apply cleanly.
Quoted 6 lines
pass in 'kgdbwait', it should work w/o mods (otherwise it breaks in very early, and requires some additional work). I've tested this out on a few machines locally, but not
PPC_MULTIARCH, so there might be a few incidental things required to be fixed. I've been using theKGDB_8250, and notPPC_SIMPLE_SERIAL, but I plan on testing that sometime in the future.
hm, i'll see what it gives with the lite-patches now.
Quoted 2 lines
FWIW, I'm about to go off for 2 weeks vacation, so I probably won't be able to help you, if it doesn't work right away.
happy holidays!
Thank you,
Christian.
--
BOFH excuse #95:
Pentium FDIV bug
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/