public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] P2020 L2 cache as SRAM
@ 2011-01-17  8:07 Fabian Cenedese
  2011-01-19  7:50 ` Fabian Cenedese
  0 siblings, 1 reply; 6+ messages in thread
From: Fabian Cenedese @ 2011-01-17  8:07 UTC (permalink / raw)
  To: u-boot

Hi

We're trying to configure the PPC P2020 cpu to use the L2 cache
as SRAM so we can load the U-Boot code in there. However we
stumble into problems. Sometimes the cpu goes on trap when
trying to access this area. Sometimes there's no trap but we
seem to access a different area. That's probably a problem with
setting up a TLB/LAW.

Has anybody already done this and could share some code with
us?

I've seen that there's a mpc85xx branch with quite some work
going on. Where should we base our work on? Should we use
the master or is it better to use this branch? I'm used to svn,
not git, so there may be other options I don't know about yet.

Thanks

bye  Fabi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] P2020 L2 cache as SRAM
  2011-01-17  8:07 [U-Boot] P2020 L2 cache as SRAM Fabian Cenedese
@ 2011-01-19  7:50 ` Fabian Cenedese
  2011-01-19 20:02   ` Scott Wood
  0 siblings, 1 reply; 6+ messages in thread
From: Fabian Cenedese @ 2011-01-19  7:50 UTC (permalink / raw)
  To: u-boot

At 09:07 17.01.2011 +0100, Fabian Cenedese wrote:
>Hi
>
>We're trying to configure the PPC P2020 cpu to use the L2 cache
>as SRAM so we can load the U-Boot code in there. However we
>stumble into problems. Sometimes the cpu goes on trap when
>trying to access this area. Sometimes there's no trap but we
>seem to access a different area. That's probably a problem with
>setting up a TLB/LAW.
>
>Has anybody already done this and could share some code with
>us?
>
>I've seen that there's a mpc85xx branch with quite some work
>going on. Where should we base our work on? Should we use
>the master or is it better to use this branch? I'm used to svn,
>not git, so there may be other options I don't know about yet.

I know you're busy with patches and releasing, I just wanted
to ask again if anybody has already done this.

Thanks

bye  Fabi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] P2020 L2 cache as SRAM
  2011-01-19  7:50 ` Fabian Cenedese
@ 2011-01-19 20:02   ` Scott Wood
  2011-01-20  9:21     ` Fabian Cenedese
  2011-10-19 11:53     ` DarkKhan
  0 siblings, 2 replies; 6+ messages in thread
From: Scott Wood @ 2011-01-19 20:02 UTC (permalink / raw)
  To: u-boot

On Wed, 19 Jan 2011 08:50:52 +0100
Fabian Cenedese <Cenedese@indel.ch> wrote:

> At 09:07 17.01.2011 +0100, Fabian Cenedese wrote:
> >Hi
> >
> >We're trying to configure the PPC P2020 cpu to use the L2 cache
> >as SRAM so we can load the U-Boot code in there. However we
> >stumble into problems. Sometimes the cpu goes on trap when
> >trying to access this area. Sometimes there's no trap but we
> >seem to access a different area. That's probably a problem with
> >setting up a TLB/LAW.
> >
> >Has anybody already done this and could share some code with
> >us?
> >
> >I've seen that there's a mpc85xx branch with quite some work
> >going on. Where should we base our work on? Should we use
> >the master or is it better to use this branch? I'm used to svn,
> >not git, so there may be other options I don't know about yet.
> 
> I know you're busy with patches and releasing, I just wanted
> to ask again if anybody has already done this.

Yes, it's been done.  P1_P2_RDB does this when configured for NAND boot.

Look for CONFIG_SYS_INIT_L2_ADDR.

-Scott

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] P2020 L2 cache as SRAM
  2011-01-19 20:02   ` Scott Wood
@ 2011-01-20  9:21     ` Fabian Cenedese
  2011-10-19 11:53     ` DarkKhan
  1 sibling, 0 replies; 6+ messages in thread
From: Fabian Cenedese @ 2011-01-20  9:21 UTC (permalink / raw)
  To: u-boot


>> >We're trying to configure the PPC P2020 cpu to use the L2 cache
>> >as SRAM so we can load the U-Boot code in there. However we
>> >stumble into problems. Sometimes the cpu goes on trap when
>> >trying to access this area. Sometimes there's no trap but we
>> >seem to access a different area. That's probably a problem with
>> >setting up a TLB/LAW.
>> >
>> >Has anybody already done this and could share some code with
>> >us?
>> >
>> >I've seen that there's a mpc85xx branch with quite some work
>> >going on. Where should we base our work on? Should we use
>> >the master or is it better to use this branch? I'm used to svn,
>> >not git, so there may be other options I don't know about yet.
>> 
>> I know you're busy with patches and releasing, I just wanted
>> to ask again if anybody has already done this.
>
>Yes, it's been done.  P1_P2_RDB does this when configured for NAND boot.
>
>Look for CONFIG_SYS_INIT_L2_ADDR.

Thanks for the hint. We have seen this and compared it to our
implementation which was based on the AN3646.pdf (chapter 4).
It seems that disabling the errors as done in cpu_init_nand.c
helps quite a bit. We've seen this code before but for some
reason that register got lost in the conversion to assembler.
So now it works fine.

Thanks.

bye  Fabi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] P2020 L2 cache as SRAM
  2011-01-19 20:02   ` Scott Wood
  2011-01-20  9:21     ` Fabian Cenedese
@ 2011-10-19 11:53     ` DarkKhan
  2011-10-19 12:12       ` Aggrwal Poonam-B10812
  1 sibling, 1 reply; 6+ messages in thread
From: DarkKhan @ 2011-10-19 11:53 UTC (permalink / raw)
  To: u-boot


Hi Scott,

I need your help with an issue ,i think, related to this topic.

I have P2020RDB development kit and try to boot it from nand flash using
u-boot codes.

But unfortunately,  nand boot process is trapped. Once i have changed the
value of the CONFIG_SYS_INIT_L2_ADDR definition from F8F80000 to the
F7F80000, than that  problem has been disappeared. Why ?! Any idea ?

Also i wonder, why this CONFIG_SYS_INIT_L2_ADDR is chosen as F8F80000  for
the L2 SRAM base adress through the u-boot codes.

Those codes can be found form those links below:

http://gitorious.org/beagleboard-validation/u-boot/blobs/f51cdaf19141151ce2b40d562a468605340f2315/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c
(=> Line number 48)

http://gitorious.org/beagleboard-validation/u-boot/blobs/525f6c3add71c0fba0911d770bba5e9282be0cf2/include/configs/P1_P2_RDB.h
(=> Line number 106)

I couldn't undertand  why  f8f80000 address is chosen for L2 SRAM base
adress in the the u-boot P1_P2_RDB.h header file?


thnx for 
your
attention.

-murat 


Scott Wood-2 wrote:
> 
> On Wed, 19 Jan 2011 08:50:52 +0100
> Fabian Cenedese <Cenedese@indel.ch> wrote:
> 
>> At 09:07 17.01.2011 +0100, Fabian Cenedese wrote:
>> >Hi
>> >
>> >We're trying to configure the PPC P2020 cpu to use the L2 cache
>> >as SRAM so we can load the U-Boot code in there. However we
>> >stumble into problems. Sometimes the cpu goes on trap when
>> >trying to access this area. Sometimes there's no trap but we
>> >seem to access a different area. That's probably a problem with
>> >setting up a TLB/LAW.
>> >
>> >Has anybody already done this and could share some code with
>> >us?
>> >
>> >I've seen that there's a mpc85xx branch with quite some work
>> >going on. Where should we base our work on? Should we use
>> >the master or is it better to use this branch? I'm used to svn,
>> >not git, so there may be other options I don't know about yet.
>> 
>> I know you're busy with patches and releasing, I just wanted
>> to ask again if anybody has already done this.
> 
> Yes, it's been done.  P1_P2_RDB does this when configured for NAND boot.
> 
> Look for CONFIG_SYS_INIT_L2_ADDR.
> 
> -Scott
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: http://old.nabble.com/-U-Boot--P2020-L2-cache-as-SRAM-tp30688713p32681721.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] P2020 L2 cache as SRAM
  2011-10-19 11:53     ` DarkKhan
@ 2011-10-19 12:12       ` Aggrwal Poonam-B10812
  0 siblings, 0 replies; 6+ messages in thread
From: Aggrwal Poonam-B10812 @ 2011-10-19 12:12 UTC (permalink / raw)
  To: u-boot

Hello 

The NAND boot on P2020RDB does not use L2 , instead it uses  DDR.
These changes are upstream.

Regards
Poonam

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> On Behalf Of DarkKhan
> Sent: Wednesday, October 19, 2011 5:23 PM
> To: u-boot at lists.denx.de
> Subject: Re: [U-Boot] P2020 L2 cache as SRAM
> 
> 
> Hi Scott,
> 
> I need your help with an issue ,i think, related to this topic.
> 
> I have P2020RDB development kit and try to boot it from nand flash using
> u-boot codes.
> 
> But unfortunately,  nand boot process is trapped. Once i have changed the
> value of the CONFIG_SYS_INIT_L2_ADDR definition from F8F80000 to the
> F7F80000, than that  problem has been disappeared. Why ?! Any idea ?
> 
> Also i wonder, why this CONFIG_SYS_INIT_L2_ADDR is chosen as F8F80000
> for the L2 SRAM base adress through the u-boot codes.
> 
> Those codes can be found form those links below:
> 
> http://gitorious.org/beagleboard-validation/u-
> boot/blobs/f51cdaf19141151ce2b40d562a468605340f2315/arch/powerpc/cpu/mpc8
> 5xx/cpu_init_nand.c
> (=> Line number 48)
> 
> http://gitorious.org/beagleboard-validation/u-
> boot/blobs/525f6c3add71c0fba0911d770bba5e9282be0cf2/include/configs/P1_P2
> _RDB.h
> (=> Line number 106)
> 
> I couldn't undertand  why  f8f80000 address is chosen for L2 SRAM base
> adress in the the u-boot P1_P2_RDB.h header file?
> 
> 
> thnx for
> your
> attention.
> 
> -murat
> 
> 
> Scott Wood-2 wrote:
> >
> > On Wed, 19 Jan 2011 08:50:52 +0100
> > Fabian Cenedese <Cenedese@indel.ch> wrote:
> >
> >> At 09:07 17.01.2011 +0100, Fabian Cenedese wrote:
> >> >Hi
> >> >
> >> >We're trying to configure the PPC P2020 cpu to use the L2 cache as
> >> >SRAM so we can load the U-Boot code in there. However we stumble
> >> >into problems. Sometimes the cpu goes on trap when trying to access
> >> >this area. Sometimes there's no trap but we seem to access a
> >> >different area. That's probably a problem with setting up a TLB/LAW.
> >> >
> >> >Has anybody already done this and could share some code with us?
> >> >
> >> >I've seen that there's a mpc85xx branch with quite some work going
> >> >on. Where should we base our work on? Should we use the master or is
> >> >it better to use this branch? I'm used to svn, not git, so there may
> >> >be other options I don't know about yet.
> >>
> >> I know you're busy with patches and releasing, I just wanted to ask
> >> again if anybody has already done this.
> >
> > Yes, it's been done.  P1_P2_RDB does this when configured for NAND
> boot.
> >
> > Look for CONFIG_SYS_INIT_L2_ADDR.
> >
> > -Scott
> >
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot
> >
> >
> 
> --
> View this message in context: http://old.nabble.com/-U-Boot--P2020-L2-
> cache-as-SRAM-tp30688713p32681721.html
> Sent from the Uboot - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-19 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17  8:07 [U-Boot] P2020 L2 cache as SRAM Fabian Cenedese
2011-01-19  7:50 ` Fabian Cenedese
2011-01-19 20:02   ` Scott Wood
2011-01-20  9:21     ` Fabian Cenedese
2011-10-19 11:53     ` DarkKhan
2011-10-19 12:12       ` Aggrwal Poonam-B10812

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox