From: Travis B. Sawyer <tsawyer@broadcom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] mkimage question
Date: Fri, 16 Jun 2006 12:21:31 -0400 [thread overview]
Message-ID: <4492DA8B.1070403@broadcom.com> (raw)
List:
I'm sending this to the u-boot list as I figure this is where I'll get
the expert
advise on mkimage, if the wrong list, I'll cross post to linux embedded ppc.
I have a bit of a dilemma. I'm using mtd in linux for several images:
Linux Kernel
Ramdisk
FPGA code
Das U-Boot (and env vars)
When storing the kernel, I'd like to be able to use md5sum, but since
the kernel does
not take up the entire mtd partition, md5sum fails when I do:
md5sum /dev/mtd1
md5sum uImage
Usually I md5sum uImage > uImage.md5sum and change the file name to
/dev/mtd1
so I can do: md5sum -c uImage.md5sum
So, I though maybe mkimage -l /dev/mtd1 would work. No dice:
mkimage -l /dev/mtd1
/tftpboot/mkimage: Bad size: "/dev/mtd1" is no valid image
so,
dd if=/dev/mtd1 of=test.bin
mkimage -l test.bin
*** Warning: "test.bin" has corrupted data!
Image Name: Linux-2.6.16.16-Sandburst
Created: Wed Jun 7 14:00:21 2006
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1280248 Bytes = 1250.24 kB = 1.22 MB
Load Address: 0x00000000
Entry Point: 0x00000000
See ***Warning above.
Anyone have a better approach?
TIA,
travis
reply other threads:[~2006-06-16 16:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4492DA8B.1070403@broadcom.com \
--to=tsawyer@broadcom.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