* [U-Boot] Avoiding reload on ARM U-BOOT
@ 2012-02-02 15:03 yehuda80
2012-02-02 19:34 ` Marek Vasut
0 siblings, 1 reply; 6+ messages in thread
From: yehuda80 @ 2012-02-02 15:03 UTC (permalink / raw)
To: u-boot
Hello everyone
im trying to port u-boot 2011-09 to a new board with an arm based SOC
i found that u-boot will always relocate the code even if it is placed
already in DDR which is the case with my SOC.
is there any clean way to avoid relocating the u-boot ? does the various SPL
configs have something to do with that ?
if yes which one should i define ?
Thanks in advance
Yehuda
--
View this message in context: http://old.nabble.com/Avoiding-reload-on-ARM-U-BOOT-tp33250726p33250726.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] Avoiding reload on ARM U-BOOT
2012-02-02 15:03 [U-Boot] Avoiding reload on ARM U-BOOT yehuda80
@ 2012-02-02 19:34 ` Marek Vasut
[not found] ` <CAN2=dsw9rAkzKftow5Opo5vpXFiUz90i7941+WfViwN_BwqAkA@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2012-02-02 19:34 UTC (permalink / raw)
To: u-boot
> Hello everyone
>
> im trying to port u-boot 2011-09 to a new board with an arm based SOC
>
> i found that u-boot will always relocate the code even if it is placed
> already in DDR which is the case with my SOC.
The u-boot is always relocated to the end of the DRAM, which is likely what you
want. And it's quite a quick process. So if you are manufacturing your soc with
various size of RAM, you want the relocation to happen. What SoC is that anyway?
>
> is there any clean way to avoid relocating the u-boot ? does the various
> SPL configs have something to do with that ?
Not really and you don't want this to happen.
M
>
> if yes which one should i define ?
>
> Thanks in advance
>
> Yehuda
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] Avoiding reload on ARM U-BOOT
[not found] ` <CAN2=dsw9rAkzKftow5Opo5vpXFiUz90i7941+WfViwN_BwqAkA@mail.gmail.com>
@ 2012-02-03 8:15 ` Marek Vasut
2012-02-05 14:08 ` yehuda yitchak
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2012-02-03 8:15 UTC (permalink / raw)
To: u-boot
> Hello Marek
ALWAYS CC U-BOOT ML
>
> Thank you for your answer
>
> My SOC (Marvells Armada Controller) uses a bootrom code to copy to
> initialize the DRAM and to copy the u-boot image. so the entire DRAM init
> and copy sequence in u-boot is redundant.
I see. I know about this soc's bootrom. Though it still can't place the
bootloader properly to the end of DRAM.
>
> in previous version there was a way to avoid this. i find it limiting that
> there isn't a way in the new version.
>
> Why would i want to relocate the code anyway ?
See above, to place it to the end of DRAM.
>
> Yehuda
>
> On Thu, Feb 2, 2012 at 11:34 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > > Hello everyone
> > >
> > > im trying to port u-boot 2011-09 to a new board with an arm based SOC
> > >
> > > i found that u-boot will always relocate the code even if it is placed
> > > already in DDR which is the case with my SOC.
> >
> > The u-boot is always relocated to the end of the DRAM, which is likely
> > what you
> > want. And it's quite a quick process. So if you are manufacturing your
> > soc with
> > various size of RAM, you want the relocation to happen. What SoC is that
> > anyway?
> >
> > > is there any clean way to avoid relocating the u-boot ? does the
> > > various SPL configs have something to do with that ?
> >
> > Not really and you don't want this to happen.
> >
> > M
> >
> > > if yes which one should i define ?
> > >
> > > Thanks in advance
> > >
> > > Yehuda
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] Avoiding reload on ARM U-BOOT
2012-02-03 8:15 ` Marek Vasut
@ 2012-02-05 14:08 ` yehuda yitchak
2012-02-05 14:22 ` Marek Vasut
0 siblings, 1 reply; 6+ messages in thread
From: yehuda yitchak @ 2012-02-05 14:08 UTC (permalink / raw)
To: u-boot
Hello again
Sorry for slipping the u-boot list e-mail address
i understand the benefit of relocating u-boot to the end of DRAM but in
systems where boot time is critical this redundant copy is undesirable.
anyway i understand there is no official way of avoiding it.
One more question i have is regarding the SPL Framework. i read all the
documentation i could find about the SPL but i don't think i fully
understand the usage of this framework. since i noticed several SPL Macros
around the relocation code i suspected it has something to do with
relocation or u-boot running as secondary boot program
i would appreciate a short explanation when CONFIG_SPL or CONFIG_NAND_SPL
should be set ?
Thanks again
Yehuda
On Fri, Feb 3, 2012 at 10:15 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > Hello Marek
>
> ALWAYS CC U-BOOT ML
>
> >
> > Thank you for your answer
> >
> > My SOC (Marvells Armada Controller) uses a bootrom code to copy to
> > initialize the DRAM and to copy the u-boot image. so the entire DRAM init
> > and copy sequence in u-boot is redundant.
>
> I see. I know about this soc's bootrom. Though it still can't place the
> bootloader properly to the end of DRAM.
>
> >
> > in previous version there was a way to avoid this. i find it limiting
> that
> > there isn't a way in the new version.
> >
> > Why would i want to relocate the code anyway ?
>
> See above, to place it to the end of DRAM.
>
> >
> > Yehuda
> >
> > On Thu, Feb 2, 2012 at 11:34 AM, Marek Vasut <marek.vasut@gmail.com>
> wrote:
> > > > Hello everyone
> > > >
> > > > im trying to port u-boot 2011-09 to a new board with an arm based SOC
> > > >
> > > > i found that u-boot will always relocate the code even if it is
> placed
> > > > already in DDR which is the case with my SOC.
> > >
> > > The u-boot is always relocated to the end of the DRAM, which is likely
> > > what you
> > > want. And it's quite a quick process. So if you are manufacturing your
> > > soc with
> > > various size of RAM, you want the relocation to happen. What SoC is
> that
> > > anyway?
> > >
> > > > is there any clean way to avoid relocating the u-boot ? does the
> > > > various SPL configs have something to do with that ?
> > >
> > > Not really and you don't want this to happen.
> > >
> > > M
> > >
> > > > if yes which one should i define ?
> > > >
> > > > Thanks in advance
> > > >
> > > > Yehuda
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] Avoiding reload on ARM U-BOOT
2012-02-05 14:08 ` yehuda yitchak
@ 2012-02-05 14:22 ` Marek Vasut
2012-02-05 15:09 ` Stefano Babic
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2012-02-05 14:22 UTC (permalink / raw)
To: u-boot
> Hello again
>
> Sorry for slipping the u-boot list e-mail address
>
> i understand the benefit of relocating u-boot to the end of DRAM but in
> systems where boot time is critical this redundant copy is undesirable.
> anyway i understand there is no official way of avoiding it.
You can boot linux directly via SPL if your boottime is critical. And, if you do
not want to boot linux directly, implement some "hit key to interrupt direct
booting sequence" into SPL.
>
> One more question i have is regarding the SPL Framework. i read all the
> documentation i could find about the SPL but i don't think i fully
> understand the usage of this framework. since i noticed several SPL Macros
> around the relocation code i suspected it has something to do with
> relocation or u-boot running as secondary boot program
If you can read only a small piece of eg. NAND with your bootrom, you use SPL.
The purpose is to init the system (ram, gpio ...) and load the u-boot (the big
bootloader).
M
>
> i would appreciate a short explanation when CONFIG_SPL or CONFIG_NAND_SPL
> should be set ?
>
> Thanks again
>
> Yehuda
>
> On Fri, Feb 3, 2012 at 10:15 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > > Hello Marek
> >
> > ALWAYS CC U-BOOT ML
> >
> > > Thank you for your answer
> > >
> > > My SOC (Marvells Armada Controller) uses a bootrom code to copy to
> > > initialize the DRAM and to copy the u-boot image. so the entire DRAM
> > > init and copy sequence in u-boot is redundant.
> >
> > I see. I know about this soc's bootrom. Though it still can't place the
> > bootloader properly to the end of DRAM.
> >
> > > in previous version there was a way to avoid this. i find it limiting
> >
> > that
> >
> > > there isn't a way in the new version.
> > >
> > > Why would i want to relocate the code anyway ?
> >
> > See above, to place it to the end of DRAM.
> >
> > > Yehuda
> > >
> > > On Thu, Feb 2, 2012 at 11:34 AM, Marek Vasut <marek.vasut@gmail.com>
> >
> > wrote:
> > > > > Hello everyone
> > > > >
> > > > > im trying to port u-boot 2011-09 to a new board with an arm based
> > > > > SOC
> > > > >
> > > > > i found that u-boot will always relocate the code even if it is
> >
> > placed
> >
> > > > > already in DDR which is the case with my SOC.
> > > >
> > > > The u-boot is always relocated to the end of the DRAM, which is
> > > > likely what you
> > > > want. And it's quite a quick process. So if you are manufacturing
> > > > your soc with
> > > > various size of RAM, you want the relocation to happen. What SoC is
> >
> > that
> >
> > > > anyway?
> > > >
> > > > > is there any clean way to avoid relocating the u-boot ? does the
> > > > > various SPL configs have something to do with that ?
> > > >
> > > > Not really and you don't want this to happen.
> > > >
> > > > M
> > > >
> > > > > if yes which one should i define ?
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > > Yehuda
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] Avoiding reload on ARM U-BOOT
2012-02-05 14:22 ` Marek Vasut
@ 2012-02-05 15:09 ` Stefano Babic
0 siblings, 0 replies; 6+ messages in thread
From: Stefano Babic @ 2012-02-05 15:09 UTC (permalink / raw)
To: u-boot
On 05/02/2012 15:22, Marek Vasut wrote:
>> Hello again
>>
>> Sorry for slipping the u-boot list e-mail address
>>
>> i understand the benefit of relocating u-boot to the end of DRAM but in
>> systems where boot time is critical this redundant copy is undesirable.
>> anyway i understand there is no official way of avoiding it.
>
> You can boot linux directly via SPL if your boottime is critical.
To this purpose I have posted the final version of the patchset to boot
Linux directly from SPL - maybe you can try this way on your hardware.
Best regards,
Stefano Babic
--
=====================================================================
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
end of thread, other threads:[~2012-02-05 15:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 15:03 [U-Boot] Avoiding reload on ARM U-BOOT yehuda80
2012-02-02 19:34 ` Marek Vasut
[not found] ` <CAN2=dsw9rAkzKftow5Opo5vpXFiUz90i7941+WfViwN_BwqAkA@mail.gmail.com>
2012-02-03 8:15 ` Marek Vasut
2012-02-05 14:08 ` yehuda yitchak
2012-02-05 14:22 ` Marek Vasut
2012-02-05 15:09 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox