From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuke Tian Date: Fri, 26 Sep 2008 15:02:14 -0400 Subject: [U-Boot] mpc83xx U-boot questions In-Reply-To: <48DD2F3D.8010100@ovro.caltech.edu> References: <48DD0C2D.50604@bnl.gov> <48DD144D.4040302@ovro.caltech.edu> <48DD16CB.2000904@bnl.gov> <48DD1DD8.3040206@ge.com> <48DD2207.3050502@bnl.gov> <48DD2475.1050304@ge.com> <48DD2ADB.2080100@bnl.gov> <48DD2F3D.8010100@ovro.caltech.edu> Message-ID: <48DD31B6.8000306@bnl.gov> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de David Hawkins wrote: > Hi Yuke, > >> 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. >> 2) Download the RTEMS (4.9.0 for the latest version) and use the toolset >> to build RTEMS. >> 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). I just want to use >> the vendor provided U-Boot to download the .exe and get it run. I didn't >> expect to rebuilt U-Boot, but that might be educational :-) > > Great, that is useful background information in which > to pose your questions. > > It sounds like the Makefile puts a .exe extension on > the ELF file, and that can safely be ignored. > > Does the RTEMs BSP for the MPC8313 board have a README > that tells you how to boot RTEMs? The ELF file is > not what will be executed by U-Boot. powerpc-linux-objcopy > would most likely be used to convert the ELF into a binary > image. mkimage might be run on that image to add a header. > However, I've only used U-Boot with standalone apps and > Linux, so someone else would have to comment. > (VxWorks/RTEMs users - any help here?) > > It does however sound like you have a reasonable tools > setup, and the step you are looking for is > > 'what is necessary to convert the ELF file to a U-Boot > compatible format, and then what U-Boot command is needed > to execute it?' > That is exactly what I want now (I need to pick up U-boot later :-) ). I will try powerpc-linux-objcopy and let you know. Thank you and sorry again for the unclear statement. > Hopefully someone can help answer that. Please go and re-review > the U-Boot README file too, there's a chance that there are > some useful comments in there - now that you know what you > are looking for. > > If someone on the RTEMs list answers your question, please > post the results back to this list so that the solution > is available in the archive. > > Cheers, > Dave > >