none
关于WinCE启动加载的疑问 RRS feed

  • 问题

  • 我用的EBD9261,Eboot在SDRAM中运行,从PB下载NK.bin到SDRAM的Eboot后的区域,config.bib部分如下所示:
    MEMORY
        NK            80A00000    01500000    RAMIMAGE
        RAM            82000000    02000000    RAM

        LCD            81F00000    00100000    RESERVED
        CHIPRAM        8FF00000    00028000    RESERVED

    SDRAM的起始地址是0X80000000,大小为64M。
    实验结果:Eboot可以正常工作,并成功下载NK.bin,但在WinCE启动加载的过程中,莫名的停下了,信息如下:

    The Kernel Debugger is waiting to connect with target.
          0 PID:0 TID:0 Error Reporting Memory Reserved, dump size = 00020000
          0 PID:0 TID:0 Booting Windows CE version 5.00 for (ARM)
          0 PID:0 TID:0 &pTOC = 80a09c1c, pTOC = 80b16170, pTOC->ulRamFree = 82080000, MemForPT = 00000000
          0 PID:0 TID:0
    Old or invalid version stamp in kernel structures - starting clean!
          0 PID:0 TID:0 Configuring: Primary pages: 8029, Secondary pages: 0, Filesystem pages = 4014
          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: 82081000, extension: 00002000, length: 01f5d000
          0 PID:0 TID:0 Sp=ffffc7cc
          1 PID:0 TID:0 Windows CE KernelInit
    4294767296 PID:3fdf002 TID:3fdf266 Updated eptr->e32_vsize to = 000b6000
    4294767298 PID:3fdf002 TID:3fdf266 Scheduling the first thread.
    4294767300 PID:3fdf002 TID:3fdf266 0x83fdf024: KernelInit2: pCurThread=83fdf024 hCurThread=03fdf266 hCurProc=03fdf002, KernelInit = 80a28eac
    4294767300 PID:3fdf002 TID:3fdf266 0x83fdf024: Detecting VFP...
    4294767301 PID:3fdf002 TID:3fdf266 0x83fdf024:  VFP Not Found!
    4294767301 PID:3fdf002 TID:3fdf266 0x83fdf024: Updated eptr->e32_vsize to = 00006000
    4294767302 PID:3fdf002 TID:3fdf266 0x83fdf024: Updated eptr->e32_vsize to = 00029000
    4294767304 PID:3fdf002 TID:3fdf266 0x83fdf024: Updated eptr->e32_vsize to = 00009000
    4294767305 PID:3fdf002 TID:3fdf266 0x83fdf024: Updated eptr->e32_vsize to = 00022000
    4294767306 PID:3fdf002 TID:3fdf266 0x83fdf024: Starting kernel debugger software probe (KdStub) - KD API version 18
    4294767309 PID:3fdf002 TID:3fdf266 0x83fdf024: >>> Loading module NK.EXE at address 0x80A00000-0x80AB6000 (RW data at 0x82006000-0x82066EDF)
    Kernel debugger connected.
    The Kernel Debugger connection has been established (Target CPU is ARM).
    Target name: CE Device
    Probe name: KdStub
    Binary Image should be loaded at 0x80a00000 / Data relocated at 0x82006000
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\NK.EXE'
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\KD.DLL'
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\OSAXST1.DLL'
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\OSAXST0.DLL'
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\HD.DLL'
    4294767313 PID:3fdf002 TID:3fdf266 0x83fdf024: first = 01f90000, last = 02000000, SharedDllBase = 037f0000
    4294767361 PID:3fdf002 TID:3fdf266 0x83fdf024: >>> Loading module coredll.dll at address 0x03F50000-0x04000000 (RW data at 0x01FFE000-0x01FFF145)
    Loaded symbols for 'C:\WINCE500\PBWORKSPACES\9261\RELDIR\AT91SAM9261_ARMV4I_DEBUG\COREDLL.DLL'

    到这儿就停止了,后面的filesys.exe还有device.exe等都还没加载,不知道什么原因,有人可以帮忙分析一下吗,谢谢!
    2008年1月17日 2:40

答案

  • 利用现有的消息还真是比较难判断问题,我发现Kernel Debugger已经初始化成功了,是不是接下来的信息输出到Platform Builder的Output窗口去了?

    还有既然KD已经起来了,能不能设置断点然后运行调试?

    2008年1月22日 12:32
    版主