From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Date: Tue, 3 Jul 2007 02:09:10 +0200 Subject: [U-Boot-Users] U-Boot-NG ? In-Reply-To: <20070702233929.F1935353AF8@atlas.denx.de> References: <20070702184259.GA2533@pengutronix.de> <20070702233929.F1935353AF8@atlas.denx.de> Message-ID: <20070703000910.GA15081@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 03, 2007 at 01:39:29AM +0200, Wolfgang Denk wrote: > In message <20070702184259.GA2533@pengutronix.de> you wrote: > > > > bigger if you enable the same features. But on Arm you do not need zlib, > > which is configurable now. This saves you around 15k. > > You don't? How do you uncompress an image then? On Arm by default zImages are used to generate the uImage, so the kernel decompresses itself. > > > The PowerPC images got smaller than before. The code is not position > > independent anymore, this saves around 10% of binary space. > > The code has never been position independent; it gets relocated. The code itself would have been position independent because it was compiled with -fPIC. > > Do you mean you don't relocate the code any more? It still gets copied from the address U-Boot starts (Flash) to RAM, but pointer offsets are not recalculated. This means that you must not use statically initialized pointers during startup since the code is not running at its link address. The Arm part has done this for years. On PowerPC we have the luxury of having SRAM, so we can setup a stack and do SDRAM initialization in C before jumping to RAM. Regards Sascha -- Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord http://www.pengutronix.de