From: Laurent Pinchart <laurentp@cse-semaphore.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Return values from u-boot to standalone application.
Date: Mon, 29 Oct 2007 14:46:45 +0100 [thread overview]
Message-ID: <200710291446.46347.laurentp@cse-semaphore.com> (raw)
In-Reply-To: <406A31B117F2734987636D6CCC93EE3C02528FEA@ehost011-3.exch011.intermedia.net>
Hi Leonid,
On Monday 29 October 2007 14:34, Leonid wrote:
> Sorry, I forgot to mention that I'm using at91rm9200 CPU (ARM9 from
> Atmel) and u-boot version is 1.2.0 official release. May be there are
> some known issues with standalone application for ARM? Stack getting
> corrupted?
>
> My code is but small variation of standard hello_world (attached) and
> here is output:
>
> U-Boot$ tftp 21000000 $image_path/hello_world.bin; go 21000000;
> TFTP from server 192.168.0.108; our IP address is 192.168.0.205
> Filename 'leonid/ref/images/hello_world.bin'.
> Load address: 0x21000000
> Loading: #
> done
> Bytes transferred = 620 (26c hex)
> ## Starting application at 0x21000000 ...
> Example expects ABI version 3
> Actual U-Boot ABI version 3
> Hello World
> argc = 1
> argv[0] = "21000000"
> argv[1] = "<NULL>"
> main:48 line=help len=553648684
> Hit any key to exit ...
>
> ## Application terminated, rc = 0x0
> U-Boot$
>
> Application is compiled to run from the address 0x21000000 which is the
> middle of RAM.
For what it's worth, 553648684 is 0x2100022c in hex, which is in the middle of
your application's memory. This either means you end up feeding the function
address to printf instead of calling the function, or you got a stack/calling
convention issue.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chauss?e de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
next prev parent reply other threads:[~2007-10-29 13:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 14:15 [U-Boot-Users] [PATCH] DHCP Client Fix Justin Flammia
2007-10-28 22:01 ` Wolfgang Denk
2007-10-29 2:00 ` Ben Warren
2007-10-29 6:00 ` [U-Boot-Users] Return values from u-boot to standalone application Leonid
2007-10-29 13:34 ` Leonid
2007-10-29 13:46 ` Laurent Pinchart [this message]
2007-10-29 14:45 ` Leonid
2007-10-29 19:46 ` [U-Boot-Users] Return values from u-boot to standaloneapplication Leonid
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=200710291446.46347.laurentp@cse-semaphore.com \
--to=laurentp@cse-semaphore.com \
--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