From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] hello world application
Date: Sun, 31 Oct 2004 22:25:43 +0100 [thread overview]
Message-ID: <20041031212548.B0BCDC146B@atlas.denx.de> (raw)
In-Reply-To: Your message of "Sun, 31 Oct 2004 01:04:57 MST." <20041031080457.27425.qmail@web12009.mail.yahoo.com>
In message <20041031080457.27425.qmail@web12009.mail.yahoo.com> you wrote:
> I want to make gzipped hello_world application and
> later execute it using bootm command.
Please use correct terms. The "hello_world" is so small that
compressing it makes no sense. Maybe you are talking about some other
standalone application, which is bigger?
> I figured that mkimage is the utility for making
> compressed STANDALONE image.
>
> But it needs an option mkimage -d <datafile>
>
> Now what is this datafile? Is it hello_world or
> hello_world.bin or hello_world.srec
It is none of them. You mentioned that you want to build a compressed
image, so you must compress the fiule first, and none of hello_world
nor hello_world.bin nor hello_world.srec is compressed. Also, ask
yoruself if the processor will be able to find executable
instructions in a S-Record file, or in a ELF header. it will not.
You should run gzip on hello_world.bin and use the resulting
compressed binary image as input.
> I tried all 3, but they give different sizes of
> gzipped image. So i am confused.
I would be confused if it was different. Since mkimage always adds a
64 byte header, the resulting file sizes MUST be different when you
use files with different sizes as input.
Best regards,
Wolfgang Denk
--
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
While most peoples' opinions change, the conviction of their correct-
ness never does.
prev parent reply other threads:[~2004-10-31 21:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-31 8:04 [U-Boot-Users] hello world application Jhavk
2004-10-31 14:43 ` Detlev Zundel
2004-10-31 21:29 ` Wolfgang Denk
2004-10-31 21:25 ` Wolfgang Denk [this message]
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=20041031212548.B0BCDC146B@atlas.denx.de \
--to=wd@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