From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Date: Thu, 15 Mar 2007 22:13:40 +0100 Subject: [U-Boot-Users] arm linux images with load address == entry point In-Reply-To: <20070315202503.100A4352669@atlas.denx.de> References: <20070315155550.GA7760@lala> <20070315202503.100A4352669@atlas.denx.de> Message-ID: <20070315211340.GA27920@informatik.uni-freiburg.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wolfgang, > You download the image to an arbitrary address which should be > sufficiently out of the way of the [load_addr,load_addr+size of > uncompressed kernel] area. The bootm will (uncompress &) copy the > image to the load_addr, and jumpt to the entry point. With the above command line (i.e. -C none) it will only copy it, not uncompress. But probably you meant that, as you put uncompress in parenthesis. > > For an image created with the above rule from the vanilla kernel, that > > means, jump to the header (instead of the actual image at entry point + > > 0x40). > > No. The header will not be copied by U-Boot's "bootm" command. Ah, OK, I see. Then you may want to take the patch I'll send as a follow up. > > So I think the linux rule is wrong, or did I miss anything? > > Yes. You talk about two addresses, but there are three. > > > PS: Linux uses entry point == load address == 0 for PowerPC. Didn't > > look in the PowerPC version of bootm_linux, but maybe it has the same > > problem? > > It works the same in this respect. Note that I write *it works*. > > > [1] For Linux this is not needed, because the decompressor (at least for > > 2.6) is position independant. But that's another topic. > > Right - the decompressor itself is not needed, as it's already > included in U-Boot. Adding it to the Kernel image just wastes memroy > and time as it makes booting slower. So you suggest to gzip the vmlinux image and use -C gzip? Best regards, Uwe -- Uwe Kleine-K?nig http://www.google.com/search?q=12+mol+in+dozen