RE: Checksum Failure on OS download to Flash



I figured out the download problem, but NOW HAVE ANOTHER PROBLEM.

To download the kernel to flash and TRY to XIP, the RAMIMAGE address for NK
must be an UNCACHED virtual address in flash. I specfied a cached address
similar to that used when loading into SDRAM.

MY NEW PROBLEM is that although it calls the launch function in startup.s
with the correct physical address of the kernel's entery point in flash, it
hangs.

I tried using the same settings used in eboot.bib which also starts
executing in flash, but this had no effect.

Any Ideas?
Wayne

"WAB2" wrote:

> Hi Folks,
>
> I've developed a Wince 5.0 OS for the Intel PXA270 using the MainstoneII BSP.
>
> Eboot comes configured to download the OS to RAM. My OS runs fine out of
> RAM. Now I what to download the OS to flash and have it XIP. However, I get a
> checksum failure. I must be stepping on something, but I can't figure out
> what.
>
> The OS is less than 17 Mb and I'm trying to load it into flash after eboot
> which is 256 kb and 64 kb of boot configuration data stored right after
> eboot.
>
> Here are the eboot.bib and orginal config.bib files followed by my changes
> to the config.bib.
>
> eboot.bib
> MEMORY
> STACK 80000000 00010000 RESERVED
> RAM 80010000 00010000 RAM
> EBOOT 80020000 00040000 RAMIMAGE
> RSVD 80060000 0009F000 RESERVED
> ARGS 80FF0000 00001000 RESERVED
> CONFIG
> AUTOSIZE=OFF
> COMPRESSION=OFF
> PROFILE=OFF
> KERNELFIXUPS=ON
> ROMSTART=80020000
> ROMWIDTH=32
> ROMSIZE=00040000
> ROMOFFSET=3C9E0000
> nk.exe $(_TARGETPLATROOT)\target\$(_TGTCPU)\$(WINCEDEBUG)\eboot.exe
> EBOOT
>
> config.bib
> MEMORY
> RSVD 80000000 000FF000 RESERVED
> ARGS 800FF000 00001000 RESERVED
> NK 80100000 03000000 RAMIMAGE
> RAM 83100000 00F00000 RAM
> ZBANK 96500000 00100000 RESERVED
> CONFIG
> AUTOSIZE=ON
> KERNELFIXUPS=ON
> ; @CESYSGEN IF !NK_NKNOCOMP
> COMPRESSION=ON
> ; @CESYSGEN ENDIF !NK_NKNOCOMP
> ; @CESYSGEN IF NK_NKNOCOMP
> COMPRESSION=OFF
> ; @CESYSGEN ENDIF NK_NKNOCOMP
> IF IMGPROFILER
> PROFILE=ON
> ELSE
> PROFILE=OFF
> ENDIF
> IF IMGTRUSTROMONLY
> IF IMGNOTALLKMODE
> ROMFLAGS=12
> ELSE
> ROMFLAGS=10
> ENDIF
> ELSE
> IF IMGNOTALLKMODE
> ROMFLAGS=02
> ELSE
> ROMFLAGS=00
> ENDIF
> ENDIF
>
> The only changes made to config.bib were:
> NK 80100000 03000000 RAMIMAGE
> RAM 83100000 00F00000 RAM
> was replace with
> RAM 80100000 03F00000 RAM
> NK 9CA50000 01100000 RAMIMAGE
> and AUTOSIZE was turned off.
>
> Any ideas?
> Wayne
>
.



Relevant Pages

  • FLASH access/FMD question.
    ... from H'00000000; this is the FLASH. ... executing from FLASH or RAM; if FLASH, copies itself to RAM then jumps to ... do I need to reserve memory for accessing the FLASH ... ; @CESYSGEN ENDIF!NK_NKNOCOMP ...
    (microsoft.public.windowsce.platbuilder)
  • Re: lots of easy questions about eboot/nk startup
    ... > You can activate compression in your image for some modules, ... not when loading from flash to RAM. ... > support download on eboot without activating kernel debugging on CE ...
    (microsoft.public.windowsce.platbuilder)
  • Re: lots of easy questions about eboot/nk startup
    ... >space when copying NK in RAM or if it can be overwritten. ... not when loading from flash ... maintain eboot space ... >6/ MAybe you should maintain a download support in eboot ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to define MEMERY section in config.bib?
    ... Well yuo can just assigne the RAM section to 0x800B8000 while the OS iamge ... is XIP in Flash ... > ENDIF ... the reserved memory space, I think the beginning address of RAM should be ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Performance and Flash Pipelining on TI 28F12 DSPs
    ... > of "critical code" we could move to RAM. ... > from internal flash? ... Since the external RAM is as big as the internal flash, ... the timers and all other interrupts are shut off, ...
    (comp.dsp)

Loading