* [U-Boot-Users] uImage wrapper removal?
@ 2003-08-15 4:34 Tom Guilliams
2003-08-15 6:05 ` Marc Singer
2003-08-15 8:31 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Tom Guilliams @ 2003-08-15 4:34 UTC (permalink / raw)
To: u-boot
Does anyone know if there's a utility to remove the U-Boot wrapper from
a uImage (gzipped kernel, etc)? I'm creating a single uImage with
kernel and ramdisk and I need to extract the kernel, replace the ramdisk
and put it all back together after my Linux kernel has booted. I
believe objcopy will allow me to extract the kernel from kernel/ramdisk
ELF image but that's off-topic.
Just checking to see if there's something already out there of if this
has been discussed before.
Thanks,
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] uImage wrapper removal?
2003-08-15 4:34 [U-Boot-Users] uImage wrapper removal? Tom Guilliams
@ 2003-08-15 6:05 ` Marc Singer
2003-08-15 8:31 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Marc Singer @ 2003-08-15 6:05 UTC (permalink / raw)
To: u-boot
Something along the lines of this
dd if=uImage of=zImage bs=64 skip=1
The header is the first 64 bytes.
On Thu, Aug 14, 2003 at 09:34:57PM -0700, Tom Guilliams wrote:
> Does anyone know if there's a utility to remove the U-Boot wrapper from
> a uImage (gzipped kernel, etc)? I'm creating a single uImage with
> kernel and ramdisk and I need to extract the kernel, replace the ramdisk
> and put it all back together after my Linux kernel has booted. I
> believe objcopy will allow me to extract the kernel from kernel/ramdisk
> ELF image but that's off-topic.
>
> Just checking to see if there's something already out there of if this
> has been discussed before.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] uImage wrapper removal?
2003-08-15 4:34 [U-Boot-Users] uImage wrapper removal? Tom Guilliams
2003-08-15 6:05 ` Marc Singer
@ 2003-08-15 8:31 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-08-15 8:31 UTC (permalink / raw)
To: u-boot
In message <3F3C62F1.8060509@san.rr.com> you wrote:
> Does anyone know if there's a utility to remove the U-Boot wrapper from
> a uImage (gzipped kernel, etc)? I'm creating a single uImage with
U-Boot just prepends a 64 byte header (see include/image.h).
So "dd if=uImage of=kernel bs=64 skip=1" will do the job, as will
"tail -c +65 uImage >kernel".
> Just checking to see if there's something already out there of if this
> has been discussed before.
No need for special tools. Just use the standard Unix toolbox for
file manipulation commands.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
They weren't that important. They were merely at the top. The people
who really run organizations are usually found several levels down,
where it's still possible to get things done.
- Terry Pratchett, _Small Gods_
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-15 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 4:34 [U-Boot-Users] uImage wrapper removal? Tom Guilliams
2003-08-15 6:05 ` Marc Singer
2003-08-15 8:31 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.