
13 Mar
2012
13 Mar
'12
1:22 a.m.
Hi Marek, Wolfgang,
On Tue, Mar 13, 2012 at 11:13 AM, Marek Vasut marex@denx.de wrote:
Dear Wolfgang Denk,
While we are at it:
- zi = (struct zimage_header *)images->ep;
- if (zi->zi_magic != LINUX_ARM_ZIMAGE_MAGIC) {
This gave me an idea ... this might be how to check for zImage inside bootm and be done with it. Simply squash those two together.
While we are on the subject - Do either of you think support for the x86 zimage/bzImage format should end up here in common code? Not that the x86 (b)zImage header is unique (see arch/x86/include/asm/bootparam.h) and decompressing vmlinux out of an x86 (b)zImage is non-trivial given the header and decompression stub
Regards,
Graeme