public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Guilliams <tguilliams@san.rr.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: mkimage multi file use?
Date: Mon, 18 Aug 2003 11:24:44 -0700	[thread overview]
Message-ID: <3F4119EC.4030401@san.rr.com> (raw)
In-Reply-To: <20030818181931.13475C59E4@atlas.denx.de>

Wolfgang Denk wrote:

>Sorry,  I  have  no  idea.  If  really  needed,  I  can  arrange   to
>(temporarily) put a copy of the U-Boot archive on our FTP server (the
>bzip2ed tarball for U-Boot-Users is 22 MB, and 40 MB for PPCBoot).
>
OK, well I may take you up on that but I'll get back to you.  I hate 
having to ask questions I know have been answered already.

>So try:
>
>	bash$ mkimage -T multi -C gzip -a 0 -e 0 -n 'test multifile' \
>	-d /path/to/kernel_image:/path/to/ramdisk_image uMulti
>
Hmmm... include/image.h talks about having byte counts in there as 
well.  Maybe I'm just confused.  I'll recheck it.

>See the README (section "More About U-Boot Image Types") for the file
>format. This explains that with a mutlifile image with a kernel and a
>ramdisk you will  have  to  skip  a  total  of  76  bytes  of  header
>information (64 for U-Boot header + 4 for kernel size + 4 for ramdisk
>size + 4 for terminating null).
>
Thank you.  Very helpful.  Can't believe I missed the README reference!  
Ugh!

>
>So I recommend a three step approach:
>
>	bash$ mkimage -l uMulti
>	Image Name:   Linux-2.4.4-2003-04-05 Multiboot
>	Created:      Sun Apr  6 12:44:18 2003
>	Image Type:   PowerPC Linux Multi-File Image (gzip compressed)
>	Data Size:    2610664 Bytes = 2549.48 kB = 2.49 MB
>	Load Address: 0x00000000
>	Entry Point:  0x00000000
>	Contents:
>	   Image 0:   715859 Bytes =  699 kB = 0 MB
>	   Image 1:  1894792 Bytes = 1850 kB = 1 MB
>
>	bash$ dd if=uMulti bs=76 skip=1 of=foo
>	34350+1 records in
>	34350+1 records out
>	bash$ dd if=foo of=kernel.gz bs=715859 count=1
>	1+0 records in
>	1+0 records out
>	bash$ gzip -vt kernel.gz 
>	kernel.gz:       OK
>
>The "bs=715859" uses the kernel data size as printed by the  "mkimage
>-l" command.
>  
>
Very much appreciated.  Thanks again!

Tom

  reply	other threads:[~2003-08-18 18:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-18 17:55 [U-Boot-Users] mkimage multi file use? Tom Guilliams
2003-08-18 18:19 ` [U-Boot-Users] " Wolfgang Denk
2003-08-18 18:24   ` Tom Guilliams [this message]
2003-08-18 19:05     ` 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=3F4119EC.4030401@san.rr.com \
    --to=tguilliams@san.rr.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