* [U-Boot-Users] mkimage question
@ 2006-06-16 16:21 Travis B. Sawyer
0 siblings, 0 replies; only message in thread
From: Travis B. Sawyer @ 2006-06-16 16:21 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-16 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 16:21 [U-Boot-Users] mkimage question Travis B. Sawyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox