
Hi Wolfgang,
Some of the things that I have tried and would like to share with you.
1. I read doc/README.standalone and it does mention default load addr and start addr of standalone application for various architecture. [Snippet] 4. The default load and start addresses of the applications are as follows:
Load address Start address x86 0x00040000 0x00040000 PowerPC 0x00040000 0x00040004 ARM 0x0c100000 0x0c100000 MIPS 0x80200000 0x80200000 Blackfin 0x00001000 0x00001000
[end of snippet]
2. 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. vipul@Gladiator:~/World/u-boot$ file examples/standalone/hello_world examples/standalone/hello_world: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped
3. Now that I know the load addr, start addr and right hello_world file to use, I did the following
EDB9302> tftp 0x0c100000 /tftpboot/hello_world Using ep93xx_eth-0 device TFTP from server 192.168.15.6; our IP address is 192.168.15.15 Filename '/tftpboot/hello_world'. Load address: 0xc100000 Loading: ######## done Bytes transferred = 37756 (937c hex) EDB9302> go 0x0c100000
4. Result. I still see a panic. I am not sure what part I am missing. I was wondering if you could provide your kind guidance.
Regards, Vipul.
On Sun, Feb 21, 2010 at 4:11 PM, Vipul Jain vipulsj@gmail.com wrote:
Hi Wolfgang,
I am totally newbie in u-boot who is trying to learn how to write/execute standlone application and as to start with learning I just blankly followed the steps I found on U-Boot twiki and on google. I personally don't know what those address mean. But would be very kind of you if you could please kindly help me understand what's the right way to learn which address to use and or how can I find this out?
You are correct I am using EDB9302 motherboard which is based on ARM920T processsor. Please kindly help me.
Regards, Vipul.
On Sun, Feb 21, 2010 at 3:22 PM, Wolfgang Denk wd@denx.de wrote:
Dear Vipul Jain,
In message b178b0fc1002211514n40ca7c7v1dd248612e6ba87@mail.gmail.com you wrote:
I am trying to execute the standlone examples of hello world by
following
the steps specified at the U-Boot wiki but have no success. This is what I am
getting.
You must not just follow the steps without thinking.
Method 1:
EDB9302> tftp 40000 /tftpboot/hello_world.srec
What makes you think this is the correct download address?
Using ep93xx_eth-0 device
ep93xx? Sounds line an ARM system to me. Are you sure you have RAM at this address, and that this is the correct address for this standalone app?
EDB9302> loadb 0x100000 ## Ready for binary (kermit) download to 0x00100000 at 115200 bps...
What makes you think this is the correct download address?
Please help me, how can I test simple hello world program like this on U-Boot.
Well, if you continue trying random addresses you will probably continue getting random results.
Please read the FAQ: http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork
Then think about your sytem, nd check the load and entry point addresses.
Best regards,
Wolfgang Denk