Re: Kernel Bootup Crashing at MDCreateThread

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Excuse me Sir, I meet the same problem as you. But I don't know if I use the
EPI emulator or not. Would you tell me how to run the kernel withoyt a JTAG
Emulator?

Thanks a lot.

"ER" wrote:

Found the issue, the problem was running the WinCE code while using an
EPI emulator that was taking over the exception handling on the OS.
The Kernel bootup worked fine when running without a JTAG Emulator,
which led to the solution. On an EPI Emulator, the vector_catch should
be disabled for WinCE to run.




On Feb 3, 7:15 pm, ER <E...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thanks Vinoth, But I already have NKForceCleanBoot() called in OEMInit(). Any
other ideas?
Thanks

"vinoth" wrote:
Hi,
Just try the NKForceCleanBoot(); in the OEMInit
--
vinoth.R
software Engineer

"ER" wrote:

Hello,
I've seen multiple ppl with posts having the same issue, but no one posted
a solution to the problem. So any help would be appreciated ?!

I'm porting a PXA270 to WinCE500 and the kernel boots up all the way past
OEMInit, then call the ARMinit()...to SchedInit().
In SchedInit is callsMDCreateThread() a data abort happens inside
MDCreateThread() at KSTKBOUND(pTh) = pTh->ctx.Sp & ~(PAGE_SIZE-1);

I'm using the Cache libraries from the Mainstoneii BSP under CSP code.

Dump:
OEMInit-
Error Reporting Memory Reserved, dump size = 00100000
Booting Windows CE version 5.00 for (ARM)
&pTOC = 80098ebc, pTOC = 8292f45c, pTOC->ulRamFree = 829cc000, MemForPT =
000000
00

Old or invalid version stamp in kernel structures - starting clean!
Configuring: Primary pages: 5425, Secondary pages: 0, Filesystem pages = 211

Booting kernel with clean memory configuration:
Memory Sections:
[0] : start: 829cd000, extension: 00002000, length: 01531000
Sp=ffffc7cc
ARMInit done.
Windows CE KernelInit
Updated eptr->e32_vsize to = 000d5000
<CRASH>

BIB FILE:

MEMORY
BOOTLOADER 80000000 00080000 RESERVED
NK 8008f000 02000000 RAMIMAGE
RAM 820B0000 01F18000 RAM

CONFIG
BOOTJUMP=NONE
COMPRESSION=ON
PROFILE=OFF
KERNELFIXUPS=ON
ROMFLAGS=0

FSRAMPERCENT=0x0A0A0A0A

AUTOSIZE=ON
ROMSTART=80090000
ROMWIDTH=32
ROMSIZE=04000000

IF IMGTRUSTROMONLY
IF IMGNOTALLKMODE
ROMFLAGS=12
ENDIF
IF IMGNOTALLKMODE !
ROMFLAGS=10
ENDIF
ENDIF

IF IMGTRUSTROMONLY !
IF IMGNOTALLKMODE
ROMFLAGS=2
ENDIF
IF IMGNOTALLKMODE !
ROMFLAGS=0
ENDIF
ENDIF

IF IMGPROFILER
PROFILE=ON
ENDIF
IF IMGPROFILER !
PROFILE=OFF
ENDIF

Thanks



.



Relevant Pages

  • Re: Kernel Bootup Crashing at MDCreateThread
    ... the problem was running the WinCE code while using an ... EPI emulator that was taking over the exception handling on the OS. ... The Kernel bootup worked fine when running without a JTAG Emulator, ... IF IMGNOTALLKMODE ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Kernel Bootup Crashing at MDCreateThread
    ... I will try it by disabling ... EPI emulator that was taking over the exception handling on the OS. ... In SchedInit is callsMDCreateThreada data abort happens inside ... IF IMGNOTALLKMODE ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Kernel Bootup Crashing at MDCreateThread
    ... I thought I responded with a fix 2 months ago. ... In the EPI emulator setting, the fix was to change the vector ... Just run without a JTAG, ... IF IMGNOTALLKMODE ...
    (microsoft.public.windowsce.platbuilder)