This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

ROM-startup RedBoot can't load RAM-startup RedBoot


I've built ROM-startup and RAM-startup versions of RedBoot for
the NIOS2 architecture.  When loaded into RAM via JTAG, the
RAM-startup version works fine. The ROM-startup verions works
fine (except that it erases itself anytime it tries to write to
flash).

What I can't seem to be able to do is to use RedBoot in ROM to
load the RAM-startup version of RedBoot.  I think it's because
the text section in the RAM-startup version loads on top of the
running ROM-startup RedBoot's ".rwdata" section.

Is that the way things are supposed to work?

Here is the memory map for the ROM-startup version:

Idx Name          Size      VMA       LMA       File off  Algn
  0 .entry        00000020  00000000  00000000  000000b4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .exceptions   0000002c  00000020  00000020  000000d4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .text         0001f39c  0000004c  0000004c  00000100  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  3 .rodata       00004fb0  0001f3e8  0001f3e8  0001f49c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .rom_monitor_rwdata 00000108  08000000  00024398  0002444c  2**0
                  ALLOC
  5 .rwdata       00000f88  08000108  000244a0  0002444c  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  6 .bss          00020158  08001090  08001090  000253d4  2**4
                  ALLOC

And here is the memory map for the RAM-startup version:

Idx Name          Size      VMA       LMA       File off  Algn
  0 .entry        00000000  00000000  00000000  000000d4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .exceptions   00000000  00000020  00000020  00023e60  2**0
                  CONTENTS
  2 .rom_monitor_rwdata 00000108  08000000  08000000  000000d4  2**0
                  ALLOC
  3 .text         0001deac  08000108  08000108  000000d4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  4 .rodata       00004f9c  0801dfb4  0801dfb4  0001df80  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .rwdata       00000f44  08022f50  08022f50  00022f1c  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  6 .bss          00020094  08023ea0  08023ea0  00023e60  2**4
                  ALLOC

-- 
Grant Edwards                   grante             Yow!  World War Three can
                                  at               be averted by adherence
                               visi.com            to a strictly enforced
                                                   dress code!


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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