Re: Debug and RELFSD



There have been some notes in the past about problems with the kernel
debugging and certain network parameters on the PC. Here's a thread where
Dean identified the problem for someone else:

http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/72d7e4385dacbe8d/7c692c3cc9d370f0?hl=en&lnk=st&q=#7c692c3cc9d370f0

Paul T.

"Joe Welfeld" <jwelfeldnospam@xxxxxxxxxxxxx> wrote in message
news:usPhbmjeIHA.5788@xxxxxxxxxxxxxxxxxxxxxxx
Hi All.

(please excuse if this is a second post, I have been having trouble with
posting...)

I am trying to get my NK.bin to boot using debugger and I get so far and
the system hangs...
This is brand new hardware, If I build a release nk.bin and put it on
the hardware to boot locally it will boot.

but if I build a debug version and load it via debug

I get to the point where I am trying to mount the
RELFSD. I can set break points and step through code right up to where
the system hangs. Its not really a hang its a blocking INFINITE call


RelfsdMountThread

which in turn calls

PPSHConnect()


PPSHConnect calls write_header

and then calls read_header

eventually a call to

EdbgRecv(KITL_SVC_PPSH, PpfsEthBuf,&dwLen, INFINITE);

this EdbgRecv is called with an INFINITE timeout and here I set...

My debug window output up until this time is pasted below...

After the "hang" I run ethereal and I can see my ethernet debug is
still
running and there poth sides are trading messages, so the system is still
alive but I am still waiting n this edbgrcv...

Any help ? any Idea what I am missing ?

0 PID:0 TID:0 CEPC Firmware Init
0 PID:0 TID:0 RTC - Status Reg B - 0x02
0 PID:0 TID:0 g_dwCPUFeatures = 0088a93d
0 PID:0 TID:0 Looking for rom chain
0 PID:0 TID:0 Rom chain NOT found
0 PID:0 TID:0 Firmware Init Done.
0 PID:0 TID:0 Error Reporting Memory Reserved, dump size = 00020000
0 PID:0 TID:0 Booting Windows CE version 5.00 for (x86)
0 PID:0 TID:0 &pTOC = 80227b58, pTOC = 825be294, pTOC->ulRamFree =
8264a000, MemForPT = 00004000
0 PID:0 TID:0
Old or invalid version stamp in kernel structures - starting clean!
0 PID:0 TID:0 Configuring: Primary pages: 6543, Secondary pages: 0,
Filesystem pages = 3271
0 PID:0 TID:0
Booting kernel with clean memory configuration:
0 PID:0 TID:0 Memory Sections:
0 PID:0 TID:0 [0] : start: 8264f000, extension: 00002000, length:
0198f000
0 PID:0 TID:0 X86Init done, OEMAddressTable = 8023ee28.
0 PID:0 TID:0 Windows CE KernelInit
4294767297 PID:3fdf002 TID:3fdf1de Updated eptr->e32_vsize to = 00092000
4294767297 PID:3fdf002 TID:3fdf1de Scheduling the first thread.
4294767298 PID:3fdf002 TID:3fdf1de 0x83fdf030: KernelInit2:
pCurThread=83fdf030 hCurThread=03fdf1de hCurProc=03fdf002, KernelInit =
80261f90
4294767298 PID:3fdf002 TID:3fdf1de 0x83fdf030: Updated eptr->e32_vsize to
=
00005000
4294767298 PID:3fdf002 TID:3fdf1de 0x83fdf030: Updated eptr->e32_vsize to
=
00022000
4294767317 PID:3fdf002 TID:3fdf1de 0x83fdf030: Updated eptr->e32_vsize to
=
00007000
4294767337 PID:3fdf002 TID:3fdf1de 0x83fdf030: Updated eptr->e32_vsize to
=
00018000
4294767348 PID:3fdf002 TID:3fdf1de 0x83fdf030: Starting kernel debugger
software probe (KdStub) - KD API version 18
4294767348 PID:3fdf002 TID:3fdf1de 0x83fdf030: Calling KDEnableInt (FALSE,
NULL) without previously calling KDEnableInt (FALSE, p)
4294767362 PID:3fdf002 TID:3fdf1de 0x83fdf030: >>> Loading module NK.EXE
at
address 0x80220000-0x802B2000 (RW data at 0x825C1000-0x8262F2DF)
Kernel debugger connected.
The Kernel Debugger connection has been established (Target CPU is X86).
Target name: CE Device
Probe name: KdStub
Binary Image should be loaded at 0x80220000 / Data relocated at 0x825c1000
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\NK.EXE'
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\KD.DLL'
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\OSAXST1.DLL'
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\OSAXST0.DLL'
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\HD.DLL'
4294767405 PID:3fdf002 TID:3fdf1de 0x83fdf030: first = 01750000, last =
02000000, SharedDllBase = 02130000
4294767433 PID:3fdf002 TID:3fdf1de 0x83fdf030: >>> Loading module
coredll.dll at address 0x03F50000-0x03FF3000 (RW data at
0x01FFE000-0x01FFF765)
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\COREDLL.DLL'
4294767455 PID:3fdf002 TID:3fdf1de 0x83fdf030: Did not find emulation code
for x86... using floating point hardware.
4294767516 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: >>> Loading module
coredll.dll at address 0x03F50000-0x03FF3000 (RW data at
0x01FFE000-0x01FFF765)
4294767558 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: >>> Loading module
filesys.exe at address 0x04010000-0x0407F000
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\FILESYS.EXE'
4294767582 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: CertMod.dll not found,
using old OEM Trust Model
4294767583 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: FileSystem Starting -
starting with clean file system
4294767584 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: FS: initializing ROM/RAM
file system
4294767584 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: SC_CreateAPIHandle:
pvData
== NULL
4294767584 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: FS: Registering file
system
ROM, index 2, flags 0x00000031
4294767584 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: FS: Mount complete (ROM,
index 2, flags 0x00000031)
4294767585 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: OEMIoControl: Unsupported
Code 0x101008c - device 0x0101 func 35
4294767708 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: Succeeded on CheckFile
4294767708 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: RestoreFile(0x23fb0a22)
called fDelete = TRUE
4294767995 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: PCIReg(key:
Drivers\BuiltIn\PCI\Instance\KITL, device: 0/14/0)
4294768023 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: >>> Loading module
fsdmgr.dll at address 0x03C90000-0x03CB3000 (RW data at
0x01FCF000-0x01FCF810)
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\FSDMGR.DLL'
4294768047 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: FS: Registering file
system
StoreMgr, index 3, flags 0x00000001
4294768048 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: InitSharedHeap: 44000000
10000 c
4294768048 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: InitSharedHeap: return
44000060
4294768076 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: >>> Loading module
relfsd.dll at address 0x03E60000-0x03E69000 (RW data at
0x01FEB000-0x01FEBADC)
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\AMDLXZ\RELDIR\GEODELX_X86_DEBUG\RELFSD.DLL'
4294768112 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: RELFSD!DllMain:
DLL_PROCESS_ATTACH
4294768132 PID:c3fc8c1a TID:c3fc8bea 0x83fc8a3c: ReleaseFSD: FSD_MountDisk

Thanks,

Joe W.






.



Relevant Pages

  • Re: Error 4309 returned when writing files
    ... kernel (or at least debug version of filesys) and enable all debug zones ... I enabled KITL and the kernel debugger in my retail build and set ... on Sector 4040 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Firewire blues
    ... I compiled a kernel with exactly the same options that you cited below. ... it entering the debugger and waiting for the remote gdb attach. ... When I try to attach from the debug machine, ...
    (freebsd-hackers)
  • Re: Unable to get debug message which is in kernel
    ... kernel image on to the target and I have ensured that ARMInit function ... I don't get the debug message " ARMInit done" printed on the ... I take it that you have no JTAG debugger? ... I am using the same OEMDebugInit, OEMWriteDebugString, ...
    (microsoft.public.windowsce.platbuilder)
  • Debugging server hangs in 7.2-RELEASE
    ... I get no errors on the serial console to indicate any problems, and until a relatively recent upgrade of the kernel, this server was one of my most solid ... ... the serial console doesn't do anything, or, it just prints the message about breaking to the debugger and then hangs there ... ... Is there something else I can do here to debug this? ...
    (freebsd-stable)
  • Re: Debugging VS2008 App and Driver under PB5
    ... application using .NET CF 3.5 running in DEBUG OS build over the kernel ... But I can't debug the app under VS2008 if my OS is generated to include ... Kernel Debugger. ...
    (microsoft.public.windowsce.platbuilder)