Page 1 of 1

kernel with kgdb patches?

PostPosted: 23 Aug 2006, 15:35
by afxgroup
Hi i need an MMU ma of my G4
i've installed the 4.1 right now and i've found on some sites that i need to recompile the kernel with kgdb patches.
Anyone can help me??

Thx!

PostPosted: 23 Aug 2006, 16:29
by StarKnight83
what exactly do you need? your machine has a memory management unit built in and it should be fully utilized as its a processor bit. As for recompiling your kernel we can give you help there just ask where you get stuck

PostPosted: 23 Aug 2006, 20:31
by afxgroup
well. first of all i must recompile the kernel but i receive these undefined references:

arch/ppc/kernel/built-in.o(.text+0x7c98): In function `putpacket':
arch/ppc/kernel/ppc-stub.c:404: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7cb4):arch/ppc/kernel/ppc-stub.c:409: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7cd0):arch/ppc/kernel/ppc-stub.c:414: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7cdc):arch/ppc/kernel/ppc-stub.c:415: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7ce8):arch/ppc/kernel/ppc-stub.c:416: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7cec):arch/ppc/kernel/ppc-stub.c:417: undefined reference to `getDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7e00): In function `handle_exception':
arch/ppc/kernel/ppc-stub.c:591: undefined reference to `kgdb_interruptible'
arch/ppc/kernel/built-in.o(.text+0x7f44):arch/ppc/kernel/ppc-stub.c:352: undefined reference to `getDebugChar'
arch/ppc/kernel/built-in.o(.text+0x7f78):arch/ppc/kernel/ppc-stub.c:361: undefined reference to `getDebugChar'
arch/ppc/kernel/built-in.o(.text+0x8088):arch/ppc/kernel/ppc-stub.c:375: undefined reference to `getDebugChar'
arch/ppc/kernel/built-in.o(.text+0x8098):arch/ppc/kernel/ppc-stub.c:376: undefined reference to `getDebugChar'
arch/ppc/kernel/built-in.o(.text+0x80b8):arch/ppc/kernel/ppc-stub.c:378: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x8244):arch/ppc/kernel/ppc-stub.c:772: undefined reference to `kgdb_interruptible'
arch/ppc/kernel/built-in.o(.text+0x8434):arch/ppc/kernel/ppc-stub.c:380: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x8448):arch/ppc/kernel/ppc-stub.c:383: undefined reference to `putDebugChar'
arch/ppc/kernel/built-in.o(.text+0x8450):arch/ppc/kernel/ppc-stub.c:384: undefined reference to `putDebugChar'
arch/ppc/platforms/built-in.o(.init.text+0x9dc): In function `pmac_setup_arch':
arch/ppc/platforms/pmac_setup.c:301: undefined reference to `zs_kgdb_hook'
make: *** [.tmp_vmlinux1] Error 1

what's wrong? seems the debug library the problem?

PostPosted: 04 Sep 2006, 08:43
by afxgroup
no one?

however i need to put output to stdout not to the serial

PostPosted: 04 Sep 2006, 14:43
by StarKnight83
it sounds like you have some of the debugging stuff enabled; if you dont need it disable it (or make sure it all is)

PostPosted: 04 Sep 2006, 17:35
by afxgroup
StarKnight83 wrote:it sounds like you have some of the debugging stuff enabled; if you dont need it disable it (or make sure it all is)


i want the debug enabled. i want compile kgdb indeed

PostPosted: 05 Sep 2006, 13:21
by StarKnight83
Doh!!! yeah forgive my ignorance just dawned on me that kgdb is the front-end of gdb. well i guess first things first can you get output via cli before trying to make it handle the guil section