* [U-Boot-Users] Relocatable U-Boot
2007-05-29 16:52 [U-Boot-Users] Relocatable U-Boot Josh Boyer
@ 2007-05-29 7:30 ` Ulf Samuelsson
2007-05-30 14:39 ` Josh Boyer
0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-05-29 7:30 UTC (permalink / raw)
To: u-boot
>
> 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.
>
> josh
>
--
Best Regards,
Ulf Samuelsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulf.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070529/29946c79/attachment.vcf
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Relocatable U-Boot
@ 2007-05-29 16:52 Josh Boyer
2007-05-29 7:30 ` Ulf Samuelsson
0 siblings, 1 reply; 6+ messages in thread
From: Josh Boyer @ 2007-05-29 16:52 UTC (permalink / raw)
To: u-boot
Hi All,
My apologies if this has been discussed before, but I could not find
it in the archives I have. I'm wondering if anyone has spent time on
making u-boot relocatable.
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.
josh
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Relocatable U-Boot
2007-05-29 7:30 ` Ulf Samuelsson
@ 2007-05-30 14:39 ` Josh Boyer
2007-05-30 15:21 ` Stefan Roese
0 siblings, 1 reply; 6+ messages in thread
From: Josh Boyer @ 2007-05-30 14:39 UTC (permalink / raw)
To: u-boot
On 5/29/07, Ulf Samuelsson <ulf@atmel.com> wrote:
>
> >
> > 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.
josh
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Relocatable U-Boot
2007-05-30 14:39 ` Josh Boyer
@ 2007-05-30 15:21 ` Stefan Roese
2007-05-30 17:54 ` Ulf Samuelsson
2007-05-30 17:54 ` Ulf Samuelsson
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Roese @ 2007-05-30 15:21 UTC (permalink / raw)
To: u-boot
Hi Josh,
On Wednesday 30 May 2007, Josh Boyer wrote:
> On 5/29/07, Ulf Samuelsson <ulf@atmel.com> wrote:
> > > 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.
Yes, the relocation in U-Boot still is a big problem. There was a series of
mails some time ago that at least described how it could be done correctly.
Unfortunately no real acceptable patch till now.
IIRC, Grant Likely had some relocation fixes in his patch queue too. But he is
most likely busy with other high priority stuff too (as we all are,
right? ;)).
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Relocatable U-Boot
2007-05-30 15:21 ` Stefan Roese
2007-05-30 17:54 ` Ulf Samuelsson
@ 2007-05-30 17:54 ` Ulf Samuelsson
1 sibling, 0 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-05-30 17:54 UTC (permalink / raw)
To: u-boot
>> > > 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Relocatable U-Boot
2007-05-30 15:21 ` Stefan Roese
@ 2007-05-30 17:54 ` Ulf Samuelsson
2007-05-30 17:54 ` Ulf Samuelsson
1 sibling, 0 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-05-30 17:54 UTC (permalink / raw)
To: u-boot
>> > > 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-30 17:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 16:52 [U-Boot-Users] Relocatable U-Boot Josh Boyer
2007-05-29 7:30 ` Ulf Samuelsson
2007-05-30 14:39 ` Josh Boyer
2007-05-30 15:21 ` Stefan Roese
2007-05-30 17:54 ` Ulf Samuelsson
2007-05-30 17:54 ` Ulf Samuelsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox