public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marc Singer <elf@buici.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Using tools/mkimage
Date: Tue, 5 Aug 2003 00:35:13 -0700	[thread overview]
Message-ID: <20030805073513.GA32163@buici.com> (raw)
In-Reply-To: <20030805070827.F2CCEC59E4@atlas.denx.de>

On Tue, Aug 05, 2003 at 09:08:22AM +0200, Wolfgang Denk wrote:
> In message <20030805020001.GA15284@buici.com> you wrote:
> > I'm having trouble understanding how an image should be created.  
> 
> See the README. See the U-Boot and Linux Guide
> at http://www.denx.de/twiki/bin/view/DULG/WebHome

Nice to see some organized documentation.  I'm not finding mkimage in
the table of contents.  Where is it described?

> > It was my intention to use the zImage file already compressed with a
> > loader.  RAM starts at 0xc0000000, the kernel wants to load, after
> 
> It makes no sense to use a zImage file. It was one of the  intentions
> of  U-Bot  (well,  it  was PPCBoot then) to get rid of this bootstrap
> loader.

Perhaps it is strong to say "no sense".  In fact, there is a good
reason to use zImage when u-boot is one of several methods of booting
a kernel.  It helps us to know that the same exact code is running in
every situation.

> > decompression, to 0xc00c8000.  Normally, compressed kernel images are
> > loaded at 0xc0008000.
> > 
> >   tools/mkimage -A arm -C none -a 0xc0008000 -d zImage image
> 
> I don't see any use of the "-e" option in this command. And zImage is
> not what you want. If you want to use an  uncompressed  kernel  image
> this should be something like
> 
> 	mkimage -A arm -O linux -T kernel -C none -a 0x0C008000 \
> 	-e 0x0C008000 -n 'ARM Linux' \
> 	-d arch/arm/boot/compressed/piggy uImage

I'm not sure what you mean.  Setting -a sets -e automatically.

Where do you get a uImage file?

I'm not sure why, but it appears to be working now.  It is probable
that one of the components was out-of-sync.

I'm on to a new problem.  For some reason, a kernel booted from blob
returns a bogo-mips value of 79 while the same kernel booted from
u-boot returns a bogo-mips value of 39.  It's an intriguing mystery.

Cheers.

  reply	other threads:[~2003-08-05  7:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-05  2:00 [U-Boot-Users] Using tools/mkimage Marc Singer
2003-08-05  7:08 ` Wolfgang Denk
2003-08-05  7:35   ` Marc Singer [this message]
2003-08-05  7:47     ` Wolfgang Denk
2003-08-05 16:37       ` Marc Singer
2003-08-05 17:37         ` Wolfgang Denk
2003-08-05 17:55           ` Marc Singer

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=20030805073513.GA32163@buici.com \
    --to=elf@buici.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