public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mpc83xx U-boot questions
Date: Fri, 26 Sep 2008 14:55:41 -0400	[thread overview]
Message-ID: <48DD302D.2090400@ge.com> (raw)
In-Reply-To: <48DD2ADB.2080100@bnl.gov>

Yuke Tian wrote:
> Thanks.
> 
> To be specific, I followed the steps to build RTEMS:
> 1) Download a set of toolsets (gcc-4.2.3, binutils-2.18, newlib-1.16 and
> RTEMS specific patches) and build them or use the pre-built rpm toolset
> for RHLE5.

OK.

> 2) Download the RTEMS (4.9.0 for the latest version) and use the toolset
> to build RTEMS.

OK for RTEMS, it may be some work getting it to compile u-boot or linux. 
  Or maybe not.  Around here, ELDK dominates because it is easy to build 
u-boot and linux with it (thanks, Wolfgang!).  If you get serious about 
rebuilding u-boot or linux, I would strongly urge you to use ELDK to 
build the first one before trying to get RTEMS' toolset to work.  Rule 
#1 of engineering: change only ONE variable at a time!

> 3) Compile a RTEMS application,  tailed for specific BSP.  That is where
> I get .exe (it is ELF 32-bit MSB executable, PowerPC or cisco 4500,
> version 1 (SYSV), statically linked, not stripped).

That's good.

> I just want to use the vendor provided U-Boot to download the .exe
> and get it run.

I don't know anything about RTEMS and its BSP.  It may want to be burned 
into flash, replacing u-boot.  In that case, open your wallet and buy a 
JTAG debugger (e.g. BDI-3000).

----

If you want to use u-boot to load & go, you need to figure out where the 
.exe is loaded in memory and make sure it is in RAM, not by the start of 
RAM (interrupt vectors) or end of RAM (u-boot).  You probably will need 
to change the load location (Makefile or linker script *.lds).

You will need to figure out where RTEMS wants to live.  It may want to 
live at the start of RAM so it can take over the interrupt vectors.  You 
will need to figure out how to get it where it needs to be, if you 
cannot load it directly there.  You may be able to learn from how u-boot 
boots a vxWorks image?  That is the closest match that I can think of to 
how RTEMS will work.

You will also have to figure out how to make RTEMS support your board's 
I/O (serial first, ethernet second).

All of the above should be addressed more or less successfully by the 
BSP.  Whether your RTEMS+BSP plays well (or at all) with u-boot, I don't 
have a clue.  Since we (I) don't know much about RTEMS and the BSP you 
have, we (I) cannot say much specific.

> I didn't expect to rebuilt U-Boot, but that might be educational :-)          

It could be expensive too, if you don't have a JTAG debugger to recover 
from oopses. :-/

> Yuke

BTW, please bottom/inline post.
   <http://en.wikipedia.org/wiki/Posting_style#Bottom-posting>

Best regards,
gvb

> Jerry Van Baren wrote:
>> Yuke Tian wrote:
>>> Hi,
>>>
>>> Sorry to ask the stupid question. I did study the RTEMS for a while and
>>> am sure the tool set are correct (from ftp://www.rtems.com), otherwise
>>> they will not build RTEMS.  All the tools and development are done in
>>> linux (RHLE5).  I just got this board using U-boot and not sure about
>>> it. David's manual help a lot. Thanks.
>>>
>>> Yuke
>> I didn't call your question stupid, just clueless.  ;-)
>>
>> It sounds like you are coming up to speed rapidly, including providing
>> useful background information and asking smart questions.  You might
>> add the following to your reading list:
>>   <http://www.catb.org/esr/faqs/smart-questions.html>
>>
>> Best regards,
>> gvb
>>
> 

  parent reply	other threads:[~2008-09-26 18:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26 16:22 [U-Boot] mpc83xx U-boot questions Yuke Tian
2008-09-26 16:56 ` David Hawkins
2008-09-26 17:07   ` Yuke Tian
2008-09-26 17:24     ` David Hawkins
2008-09-26 17:37     ` Jerry Van Baren
2008-09-26 17:55       ` Yuke Tian
2008-09-26 18:05         ` David Hawkins
2008-09-26 18:33           ` Jerry Van Baren
2008-09-26 18:51             ` Yuke Tian
2008-09-26 18:55               ` David Hawkins
2008-09-26 18:05         ` Jerry Van Baren
2008-09-26 18:32           ` Yuke Tian
2008-09-26 18:51             ` David Hawkins
2008-09-26 19:02               ` Yuke Tian
2008-09-26 19:20                 ` David Hawkins
2008-09-26 20:00                   ` Yuke Tian
2008-09-26 20:14                     ` David Hawkins
2008-09-26 18:55             ` Jerry Van Baren [this message]
2008-10-04  1:42             ` [U-Boot] U-boot Saveenv question Suresh Bhaskaran
2008-10-05 15:55               ` Andrejs Cainikovs
2008-10-06 17:02                 ` Suresh Bhaskaran
2008-10-06 17:06                   ` Jerry Van Baren
2008-10-06 18:17                     ` Suresh Bhaskaran
2008-10-07  0:57                     ` [U-Boot] U-boot Saveenv question --> final tested solution Suresh Bhaskaran
2008-10-07 22:24                       ` Jerry Van Baren

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=48DD302D.2090400@ge.com \
    --to=gerald.vanbaren@ge.com \
    --cc=u-boot@lists.denx.de \
    /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