Kernel debugger related queries

From: Mariam (dcsmrg_at_nus.edu.sg)
Date: 03/29/04


Date: Mon, 29 Mar 2004 04:48:10 -0800


Hi all,
 I have a few problems related to kernel debugger. I am porting WinCE4.1
to Altera's excalibur board. I have been successful in connecting my
kernel image to the platform builder over KITL (serial communication)
except for a few problems. The kernel is debugger enabled.
Of the three waiting processes (target messages, target shell, debugger),
the kernel boots up, and target messages are visible in the debug window
of platform builder. The kernel debugger connects (I get the message
Kernel debugger is connected (kdbg stream opened) in the debug window of
platform builder). It hangs after that. Apparently, the kernel is not
returning from 'kdpsendwaitcontinue' in the 'SC_Connectdebugger' routine.
I manually sidestepped this function call in my ARM debugger, and I could
see that the rest of the kernel boots up, and shell finally appears. I
wish to understand the following.

1. Why is the 'kdpsendwait' continue function hanging? From the source
code, it seems that KD routines work in polling mode. I am using
interrupts and I force the interrupts to be 'ON'. Is there any specific
reason why KD should be operated in polling mode?

2. How can I disable the kernel debugger and still have the rest (target
messages and shell)? I tried the following settings- IMGNODEBUGGER=1,
WINCE_DEBUG=retail (sysgen settings). However no clients connects when I
use this setting.
I am building the kernel from commandline.

3. The shell is very slow. Loading the shell, as well as running any
commands on the shell takes a considerably long time. I am using serial
port connection. However the delay is much too large (around 5 mins for
the shell to load). Is something going wrong?

Thank you all in advance,
Mariam.



Relevant Pages

  • Re: How to enable KITL for CEPC..
    ... KeyIndex 0 = -1 ... The Kernel Debugger has been disconnected successfully. ... PID:0 TID:0 CEPC Firmware Init ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to enable KITL for CEPC..
    ... KeyIndex 0 = -1 ... Cannot access selected Device from service host. ... The Kernel Debugger has been disconnected successfully. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to enable KITL for CEPC..
    ... KeyIndex 0 = -1 ... Debugger could not initialize connection. ... The Kernel Debugger has been disconnected successfully. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: OMAP2420 Kernel Debugging problem
    ... OALKitlCreateName has been implemented specifically and in the bootloader ... But for Kernel, the funtion in name.c is taken. ... Connecting to Desktop .. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to enable KITL for CEPC..
    ... KeyIndex 0 = -1 ... The Kernel Debugger has been disconnected successfully. ... Booting kernel with clean memory configuration: ...
    (microsoft.public.windowsce.platbuilder)