From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Wed, 30 May 2007 19:54:15 +0200 Subject: [U-Boot-Users] Relocatable U-Boot References: <625fc13d0705290952y5e8cecc1gdf837749974026f8@mail.gmail.com><465BD683.3010202@atmel.com><625fc13d0705300739u6fb2eaf0m84418542417a162c@mail.gmail.com> <200705301721.49566.sr@denx.de> Message-ID: <018e01c7a2ef$45eafce0$0302a8c0@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >> > > A handful of projects I have worked on use multiple copies of u-boot >> > > stored in different locations of flash and a small assembly stub >> > > determines which to boot. Currently, to do that u-boot has to be >> > > compiled two different times with different settings to accommodate >> > > the different base addresses. >> > > >> > > Is there a way to use a single build of u-boot which can be placed at >> > > two different addresses in flash? That seems to me that it would be a >> > > useful general feature. >> > >> > If you copy your U-Boot to RAM, you can have multiple U-Boots >> > each linked to the same location. >> > You need a small utility which runs before U-Boot which >> > determines which version to use. >> >> Hm... yes. Though I think that is more of a workaround than a truly >> relocatable u-boot. > I don't think having relocatable U-Boot is a good goal. Having the possiblility to choose between several different U-boot image is... Copying the image to SDRAM is one method to do this. If you don't want to copy to SDRAM, then you can enable a MMU (when this is available) as an alternative. Best Regards Ulf Samuelsson