linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* still unable to compile with kgdb enabled
@ 2004-04-09 21:40 Christian Kujau
  2004-04-09 22:06 ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Kujau @ 2004-04-09 21:40 UTC (permalink / raw)
  To: linuxppc-dev list



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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: still unable to compile with kgdb enabled
  2004-04-09 21:40 still unable to compile with kgdb enabled Christian Kujau
@ 2004-04-09 22:06 ` Tom Rini
  2004-04-10 15:15   ` Christian
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2004-04-09 22:06 UTC (permalink / raw)
  To: Christian Kujau; +Cc: linuxppc-dev list


On Fri, Apr 09, 2004 at 11:40:17PM +0200, Christian Kujau wrote:

> 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]
> 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: still unable to compile with kgdb enabled
  2004-04-09 22:06 ` Tom Rini
@ 2004-04-10 15:15   ` Christian
  0 siblings, 0 replies; 3+ messages in thread
From: Christian @ 2004-04-10 15:15 UTC (permalink / raw)
  To: Tom Rini, Christian Kujau; +Cc: linuxppc-dev list


On Fri, 9 Apr 2004 15:06:46 -0700, Tom Rini wrote
> 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.

> 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.

hm, i'll see what it gives with the lite-patches now.

> 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-10 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-09 21:40 still unable to compile with kgdb enabled Christian Kujau
2004-04-09 22:06 ` Tom Rini
2004-04-10 15:15   ` Christian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).