
Hi Wolfgang,
Thanks for your kind guidance, I just want to rephrase my understanding as your guidance.
1. The file that I want to build should be raw binary file like we have u-boot.bin 2. Find out right address to load the binary file as per board.
Is this correct? If yes, I have a very limited knowledge of u-boot and hence was wondering if you could please help provide the right steps to follow.
I read the following document but it does not talk about compilation of the program or looking at any specific linker file for the right address, but infact, about how functions are exported to standalone program. 1. doc/README.standalone
2. About building the raw binary file. To my understanding when you build the U-Boot the standalone apps gets build as part of it. Hence I am not sure, how can I build the raw file for my ARM board. I could only see 3 hello world related binaries that are getting build and I choose hello_world just because after doing file hello_world* I could see hello_world file outputs some thing like file ../examples/standalone/hello_world* ../examples/standalone/hello_world: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped ../examples/standalone/hello_world.bin: SysEx File - Kawai ../examples/standalone/hello_world.c: ASCII C program text ../examples/standalone/hello_world.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped ../examples/standalone/hello_world.srec: Motorola S-Record; binary data in text format
and hence I believed its my target. I will be really very thankful if you can help me in this learning of mine.
Please, suggest me documentation/files to look/ anything else that can help me in getting hello world on my ARM EDB9302 mother board.
Regards, Vipul.
On Mon, Feb 22, 2010 at 12:27 AM, Wolfgang Denk wd@denx.de wrote:
Dear Vipul Jain,
In message b178b0fc1002212126o5ebe538bqca46310151cb0355@mail.gmail.com you wrote:
Some of the things that I have tried and would like to share with you.
Please re-read the documentation, carefully.
- as mine is ARM, I know that only file I am interested in is
examples/standalone/hello_world why? because its in ARM ELF format.
Wrong. The "go" command expects a raw binary image, it cannot handle ELF files.
- Now that I know the load addr, start addr and right hello_world file
to
use, I did the following
Wrong. You do not know, you assume. And probably your assumpions are wrong. You must CHECK if your assumptions are correct. Check the linker command that was used to link your program. Follow the advice in the FAQ to determine the entry point address.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de In general, they do what you want, unless you want consistency. - Larry Wall in the perl man page