This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: PPC Board Port and Memory Map probs


The problem is in the CDL -> Makefile fragment which creates the S-record
image.  The one you copied (from the 'mbx' port) adjusts the ROM based 
addresses (0xFE000000) to RAM addresses (0x00040000).

You'll need to change the '--change-address=0x02040000' to be
'--change-address=0xFF840000' (based on your .ldi file).  This will relocate
the S-records to a reasonable address 0x00040000 in your RAM.

Of course if you're going to program this directly into ROM/FLASH, you'll
need a different adjustment, probably one which will make your programmer
happy.

On 24-Aug-2000 Ross Wightman wrote:
> I'm in the process of porting eCos for a different MPC860 based board. I
> started using the MBX code and I believe I've made most of the necessary
> changes. However, I've been having some problems with the memory map. When
> I try compiling the GDB stubs, the resulting bin/srec has an entry point
> of 0x02840100. The flash ROM on this board starts at 0x00800000 and is
> 0x200000 large. While I don't completely understand all of the details of
> the mlt_ memory map files, I believe I made the changed required for this
> boards memory config.
> 
> For comparison, I looked at the entry point of the GDB stubs built with
> the default MBX config. This has an entry point of 0x00040100 which would
> also appear to be wrong based upon the location of the MBX's ROM. 
> 
> Any help would be very much appreciated! 
> 
> Thanks
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]