From: Robert Schwebel Date: Thu, 24 Jul 2008 08:20:41 +0200 Subject: [U-Boot-Users] Changing u-boot relocation scheme In-Reply-To: References: Message-ID: <20080724062041.GM4319@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 Wed, Jul 23, 2008 at 10:39:00AM -0700, vb wrote: > While this relocation is seamless for u-boot in its released form, it > becomes a pain each time a module needs to be added (not necessarily > for following release to the Open Source community, for instance used > for inhouse installations which include tens of thousand units for > some companies). If these added modules were not written in position > independent manner (namely, using structures with multiple stage > indirect pointers interleaved with data), the effort to make these > modules work in u-boot is very exhausting. Note that in U-Boot-v2 we have loadable module support; code can EXPORT_SYMBOL() "public" APIs to other components, which, for example, can be such custom modules. The mechanism was invented for the scenario you describe above. It comes for a cost (footprint), but the overhead is not so big as one might think. You can play around with the feature by building the "sandbox" target, which is a user-mode-u-boot (port of u-boot to Linux userspace). rsc -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9