public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Hello world application running problem
Date: Sat, 30 Oct 2004 17:08:28 +0200	[thread overview]
Message-ID: <87brek9rbn.fsf@deepthought.outer.space.org> (raw)
In-Reply-To: <20041029154109.80624.qmail@web12009.mail.yahoo.com> (Jhavk's message of "Fri, 29 Oct 2004 08:41:09 -0700 (PDT)")

Hi Jhavk,

>> I have read README.standalone. My target board is
>> smdk2440(Arm 9).
>> 
>> So i transfer hello_world using tftp to address
>> 0x0c100000 and then call "go 0x0c100000 hello world"
>> 
>> But after that the application seems to get stuck
>> and
>> nothing happens. Eventually i have to reset the
>> board.
>> 
>> I have some doubts:
>> 1. Which file should i send. I think it should be
>> hello_world and not the srec or bin format. I ran
>> file
>>  command on  all 3 and found that hello_world is the
>> one meant for ARM.

You should use the .bin file as tftp does not interpret ELF files so
you need a binary image.  file cannot tell anything about binary
images because there is no magic in there anymore - its a plain memory
dump.

>> 2.Is the load and start address correct? May be its
>> different for ARM9?

This is just a theoretical answer as I don't have an ARM board ready -
but judging by the makefile it looks ok.  Apart from that on PPC we
have to skip the first 4 bytes because of reasons explained on this
list not long ago (search mailing list - I don't have a good keyword
ready) - so try a "go 0x0c100004".  This is also explained in the
DULG.

>> If all these are correct then what may be the
>> problem?

I saw at least two problems.

Cheers
  Detlev

-- 
A statistician can have his head in an oven and his feet in ice, and
he will say that on the average he feels fine.

  reply	other threads:[~2004-10-30 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 15:41 [U-Boot-Users] Hello world application running problem Jhavk
2004-10-30 15:08 ` Detlev Zundel [this message]
2004-10-31 21:17 ` Wolfgang Denk
2004-11-01  5:17   ` Jhavk
2004-11-01  8:55     ` Wolfgang Denk

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=87brek9rbn.fsf@deepthought.outer.space.org \
    --to=dzu@denx.de \
    --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