Rafael,

I don't think anyone has tried compiling kgdb for mac mini. 

Functions reported as undefined are defined in arch/ppc/kernel/kgdb.c file in 
powerpc-lite.patch This file is included in vmlinux compilation because of 
following part of the same patch ->

--- linux-2.6.17.orig/arch/powerpc/kernel/Makefile      2006-07-06 
13:12:37.000000000 +0530
+++ linux-2.6.17/arch/powerpc/kernel/Makefile   2006-07-06 14:22:17.000000000 
+0530
@@ -59,6 +59,7 @@
 obj-$(CONFIG_SMP)              += smp.o
 obj-$(CONFIG_KPROBES)          += kprobes.o
 obj-$(CONFIG_PPC_UDBG_16550)   += legacy_serial.o udbg_16550.o
+obj-$(CONFIG_KGDB)             += kgdb.o
 module-$(CONFIG_PPC64)         += module_64.o
 obj-$(CONFIG_MODULES)          += $(module-y)
 

I guess you would have applied this powerpc-lite.patch Can you think of the 
reason why kgdb.o was not compiled?
-Amit

On Friday 18 August 2006 00:08, Rafael Garabato wrote:
> Hi,
>
>         I am trying to compile kgdb for a mac mini. I first tried to use
> the linux kernel 2.6.15.5 with the patches present in
> linux-2.6.15.5-kgdb-2.4.tar.bz2 but I had some problems in link time
> because there was an undefined symbol "zs_kgdb_hook" in the file
> "/arch/ppc/platforms/pmac_setup.c". I fixed this by making the same
> modifications that the "powerpc-lite" patch did to
> "/arch/powerpc/platforms/powermac/setup.c". After these changes the kernel
> compiled but it hanged when I booted it.
>         An other problem that I had was that the powerpc-lite patch
> required that the i386-lite patch had been applied on beforehand. I mean,
> that It shouldn't be optional.
>
>         I also tried to use the latest patches on the kernel 2.6.17.8. I
> applied all the patches (for all architectures). An I had an other problem
> while compiling. The powerpc-lite patch removed the arch/ppc/kernel/ppc-
> stub.c  file but it did not make any changes to the makefile (as the
> 2.4version for
> 2.6.15.5 did) so the compilation failed. I made a change to the Makefile
> (remove the ppc-stub.c compilation) and then I got this error:
>
> LD      .tmp_vmlinux1
> arch/ppc/mm/built-in.o(.text+0x514): In function `bad_page_fault':
> arch/ppc/mm/fault.c:337: undefined reference to `kgdb_fault_longjmp'
> kernel/built-in.o(.text+0x30dc0): In function `kgdb_set_mem':
> kernel/kgdb.c:796: undefined reference to `kgdb_fault_setjmp'
> kernel/built-in.o(.text+0x30e94): In function `kgdb_get_mem':
> kernel/kgdb.c:779: undefined reference to `kgdb_fault_setjmp'
> kernel/built-in.o(.text+0x30fbc): In function `kgdb_mem2hex':
> kernel/kgdb.c:446: undefined reference to `kgdb_fault_setjmp'
> kernel/built-in.o(.text+0x31140): In function `kgdb_hex2mem':
> kernel/kgdb.c:571: undefined reference to `kgdb_fault_setjmp'
> kernel/built-in.o(.text+0x313dc): In function `write_mem_msg':
> kernel/kgdb.c:549: undefined reference to `kgdb_fault_setjmp'
> kernel/built-in.o(.text+0x32058): In function `kgdb_handle_exception':
> kernel/kgdb.c:1198: undefined reference to `regs_to_gdb_regs'
> kernel/built-in.o(.text+0x32068):kernel/kgdb.c:1204: undefined reference to
> `sleeping_thread_to_gdb_regs'
> kernel/built-in.o(.text+0x320b8):kernel/kgdb.c:1218: undefined reference to
> `gdb_regs_to_regs'
> kernel/built-in.o(.text+0x329f0):kernel/kgdb.c:1499: undefined reference to
> `kgdb_arch_handle_exception'
> kernel/built-in.o(.sdata+0x68): undefined reference to `arch_kgdb_ops'
> drivers/built-in.o(.text+0x58898): In function `init_hwif_amd74xx':
> drivers/ide/pci/amd74xx.c:419: undefined reference to
> `pci_get_legacy_ide_irq'
>
>
> Does anybody know if somebody could successfully build a kernel with the
> kgdb patches for a mac mini with ppc processor?.
>
> Thanks in advanced,
>                          Rafael.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to