Re: Boot loader woes



VG wrote:

A new boot loader that I built off a legacy code that I inherited is
giving me a lot of trouble. The BSP, code base has been in use for
production for several years. Recently there was a requirement to
upgrade RAM in one of our products. All these years it was 16 MB; now
it is 32 MB. That's the only change in hardware.

Tornado: 2.0.2
VxWorks: 5.4
Processor: MPC8241

This is my first brush with PowerPC architecture. And none of the
engineers who actually wrote/ported the BSP is with the company any
more. I just opened the project/workspace in Tornado, changed the
memory size macro and the RAM high address in config.h and project
parameters, that's it. The boot loader just does not start at all.
There is no activity on the serial console the moment I power my board
on. These are the old and new memory macros' values:

LOCAL_MEM_LOCAL_ADRS: 0x0 (no change)
LOCAL_MEM_SIZE: 0x1000000 (changed to 0x2000000)
RAM_LOW_ADRS: 0xA00000 (no change)
RAM_HIGH_ADRS: 0xE00000 (changed to 0x1F00000)
RAM_DST_ADRS: 0xA00000 (no change)
RAM_DATA_ADRS: 0xD00000 (no change)

First, I wonder if it's okay to have RAM_DATA_ADRS different from
RAM_HIGH_ADRS! Is this acceptable? Ours is a compressed boot loader.
Seems the boot loader has problem with the memory size. If I change
the LOCAL_MEM_SIZE back to 0x1000000, even with new RAM_HIGH_ADRS, if
works perfectly fine.

Could someone please provide me any clue as to what could be
happening? Has it anything to do with all those PPC's MMU, cache, etc?
Should I start looking at the romInit.s code and see how things are
being done there and probably change something there? Thanks.

I see a couple of things that may be causing your problems.

First, the value of RAM_HIGH_ADRS must be defined identically in both
the BSP's config.h and Makfile files and you didn't include Makefile
in the list of files you changed.

The second is that LOCAL_MEM_SIZE - RAM_HIGH_ADRS used to be 0x200000
and now it is 0x100000. This may not be enough room for the boot
loader image in RAM.

--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain
.



Relevant Pages

  • Re: Plan to build a CE6 Boot loader for S3C2440 platform
    ... I'll begin to port the CE 5.0 boot loader to CE 6.0. ... Bruce.Eitman AT EuroTech DOT com ... plan to impelement a boot loader following the CE 6.0 BSP framework. ... Screen, COM ports, USB ports, Ethernet, Audio, Cam, IrDA, JTag interfaces ...
    (microsoft.public.windowsce.embedded)
  • Re: Why project is required for a new boot loader development
    ... You need to create a basic CEC file for your BSP. ... > anything about how to build a project for the particular hw platform. ... But I don't have any hardware platform built yet. ... >> boot loader is just one part of a complete system. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Bootloader wince.net 4.2
    ... just because we have a PXA255 BSP we sell, but because I know how much it ... the IDE to build the boot loader is the least of your worries. ... BSP includes a DIRS file in the root of the BSP folder %_TARGETPLATROOT% ... them (e.g boot loader needs physical addresses, ...
    (microsoft.public.windowsce.platbuilder)