
Hi Yuke,
To be specific, I followed the steps to build RTEMS:
- 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?'
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