Hello.

Sergei Shtylyov wrote:

>>I also have tried to patch   KGDB 2.4 for 2.6.15.5 kernel on 2.6.15 provided 
>>with ELDK4.0. The patching procedure seems okay, but when I compile for 
>>PowerPC405 and 440 board, it always fails like this:
>>    For 405:
>>  CC      arch/ppc/syslib/gen550_dbg.o
>>  LD      arch/ppc/syslib/built-in.o
>>  AS      arch/powerpc/sysdev/dcr.o
>>  LD      arch/powerpc/sysdev/built-in.o
>>  CC      arch/powerpc/lib/bitops.o
>>  LD      arch/powerpc/lib/built-in.o
>>  CC      arch/ppc/platforms/4xx/ppchameleon.o
>>arch/ppc/platforms/4xx/ppchameleon.c: In function 'platform_init':
>>arch/ppc/platforms/4xx/ppchameleon.c:252: error: 'struct machdep_calls' has 
>>no member named 'early_serial_map'
>>make[1]: *** [arch/ppc/platforms/4xx/ppchameleon.o] Error 1
>>make: *** [arch/ppc/platforms/4xx] Error 2

>>    For 440:
>>  LD      arch/ppc/syslib/built-in.o
>>  CC      arch/powerpc/sysdev/indirect_pci.o
>>  AS      arch/powerpc/sysdev/dcr.o
>>  LD      arch/powerpc/sysdev/built-in.o
>>  CC      arch/powerpc/lib/bitops.o
>>  LD      arch/powerpc/lib/built-in.o
>>  CC      arch/ppc/platforms/4xx/yosemite.o
>>arch/ppc/platforms/4xx/yosemite.c: In function 'yosemite_early_serial_map':
>>arch/ppc/platforms/4xx/yosemite.c:288: warning: implicit declaration of 
>>function 'gen550_init'
>>arch/ppc/platforms/4xx/yosemite.c: In function 'platform_init':
>>arch/ppc/platforms/4xx/yosemite.c:349: error: 'struct machdep_calls' has no 
>>member named 'early_serial_map'
>>make[1]: *** [arch/ppc/platforms/4xx/yosemite.o] Error 1
>>make: *** [arch/ppc/platforms/4xx] Error 2
>>Would anyone like to give me some informaiton to solve this error?

>    I'm going to post a patch I have for arch/ppc/ -- we'll see if it fixes 
> the complilation issues.

    Hm, I'm not seeing these particular files in the Linus' tree. But here's 
what should help:

1) #include <syslib/gen550.h> instead of <asm/kgdb.h>;
2) remove the code initializing ppc_md.early_serial_map

WBR, Sergei

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to