On Sun 17 Feb 2008 17:09, Wolfgang Denk pondered: > In message <[EMAIL PROTECTED]> you wrote: > > > > I always thought that when decompressing a uImage, that the entry > > point was stored in the header, (at the beginning of the file) and > > was read after the decompression took place - is that wrong? > > I'm not sure what all the different architectures do, but at least > for PowerPC, ARM and MIPS I know that one of the very first things we > do in the bootm code is to create a local copy of the image header. > > Search for 'memcpy.*header'.
What I saw that in common/cmd_bootm.c:do_bootm() there is a: /* Copy header so we can blank CRC field for re-calculation */ memmove (&header, (char *)addr, sizeof(image_header_t)); but this seems only to be used in the calc/checking of the CRC. When I look at do_bootm_linux (cmdtp, flag, argc, argv, addr, len_ptr, verify); I saw it not being used, and what I missed was that header is a global (and doesn't need to be passed to do_bootm_linux as a parameter). Thanks & sorry for the noise. -Robin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users