public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Steven_cheng" <05071@alphanetworks.com>
To: <ecos-discuss@sources.redhat.com>
Subject: [ECOS] Can I assign the offset of code start in redboot.bin when using startup from ROM
Date: Thu, 07 Jul 2005 09:34:00 -0000	[thread overview]
Message-ID: <01fa01c582d7$28c64870$016ffea9@stevencheng> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="big5", Size: 1256 bytes --]

Hi All,

Environment:
    arch: MPC8245
    package: RedBoot
    startup type: ROM

After building the code, I burn the the redboot.bin into my rom flash, but
it
seems not to be executed. Then I found that the code offset starts in 0x0,
not
in 0x100,  in the redboot.bin.  The MPC8245 can not start from offset 0x100
to execute the rom code. So the rom code is failed.

Questions:
    1) The MPC8245 rom code should start from 0x100 in redboot.bin for
burning.(???)
    2) Does anybody know how I can move the code offset start from 0x0 to
0x100 ??
    3) Does the code start from the _start in the vector.S  for startup type
"ROM" ??

It was as following:

0x00000000  rom_code  _start    # map to _start in vectors.S
0x00000010  rom_code
0x00000020  rom_code ......“¡
...
0x00000100  rom_code ......“¡
......


But I think it should be as following:

0x00000000  Vector
0x00000010  empty
0x00000020  empty
...
0x00000100  rom_code _start ......“¡# map to _start in vectors.S
......

4) Is it  correct ??



Thank you in advence!!



/Steven Cheng



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

             reply	other threads:[~2005-07-07  9:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07  9:34 Steven_cheng [this message]
2005-07-07 10:40 ` Gary Thomas
2005-07-07 12:00   ` [ECOS] Can I assign the offset of code start in redboot.binwhen " Steven_cheng
2005-07-07 12:40     ` Gary Thomas
2005-07-07 14:30 [ECOS] Can I assign the offset of code start in redboot.bin when " Steven_cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01fa01c582d7$28c64870$016ffea9@stevencheng' \
    --to=05071@alphanetworks.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).