From: Rommel G Custodio <sessyargc+u-boot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Standalone application issue.
Date: Tue, 27 May 2014 23:35:21 +0000 (UTC) [thread overview]
Message-ID: <loom.20140528T012622-10@post.gmane.org> (raw)
In-Reply-To: 1401094839001-180707.post@n7.nabble.com
Dear Mazen
mazen.e <mazen.ezzeddine <at> gmail.com> writes:
>
> Thanks Wolfgang,
>
> I will do and post the result.
>
> Many thanks.
I've never got "bootm" to run any of the standalone applications in the
example directory but through trial and error (maybe luck) "bootelf" works
for me. I've tested that this works with old 2010.XX and latest 2014.XX
releases. Note I use PowerPC, but worth I try in your case I guess.
This is how I build the hello_world binary:
tools/mkimage -A powerpc -T standalone -C none -a 0x200000 -e 0x200000 -n
hello_world -d examples/standalone/hello_world hello_world.img
And these are these serries of commands that loads and executes the binary:
usb start
fatload usb 0 80000 hello_world.img
bootelf 80040
-----
test # usb start
(Re)start USB...
USB: Register 1111 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
test # fatload usb 0 80000 hello_world.img
reading hello_world.img
69441 bytes read
test # bootelf 80040
## Starting application at 0x00040000 ...
Example expects ABI version 6
Actual U-Boot ABI version 6
Hello World
argc = 1
argv[0] = "80040"
argv[1] = "<NULL>"
Hit any key to exit ...
## Application terminated, rc = 0x0
test #
-----
Good luck!
All the best,
Rommel
next prev parent reply other threads:[~2014-05-27 23:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 7:45 [U-Boot] Standalone application issue mazen.e
2014-05-23 12:10 ` Wolfgang Denk
2014-05-24 8:32 ` mazen.e
2014-05-24 16:04 ` Wolfgang Denk
2014-05-25 7:24 ` mazen.e
2014-05-25 8:22 ` Wolfgang Denk
2014-05-25 9:15 ` mazen.e
2014-05-25 21:01 ` Wolfgang Denk
2014-05-26 6:34 ` mazen.e
2014-05-26 8:00 ` Wolfgang Denk
2014-05-26 9:00 ` mazen.e
2014-05-27 23:35 ` Rommel G Custodio [this message]
2014-05-28 4:30 ` Wolfgang Denk
2014-05-28 4:59 ` Rommel G Custodio
2014-05-26 9:19 ` Jeroen Hofstee
2014-05-26 10:47 ` mazen.e
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=loom.20140528T012622-10@post.gmane.org \
--to=sessyargc+u-boot@gmail.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