All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] P4080 Reset Vector
@ 2010-09-08 13:48 MArunKumar
  2010-09-08 14:03 ` Kumar Gala
  2010-09-10  7:03 ` Tony Wang
  0 siblings, 2 replies; 14+ messages in thread
From: MArunKumar @ 2010-09-08 13:48 UTC (permalink / raw)
  To: u-boot


Hi
Im new to u-boot. Right now im in the process of customizing P4080DS(RDB) to
my board.
My doubt is, for P4080 the reset vec address is 0x0_ffff_fffc. 
1) But in the config.mk file it is mentioned as 0xefff_fffc wat it mean?.

Regards
M.Arunkumar
  
-- 
View this message in context: http://old.nabble.com/P4080-Reset-Vector-tp29641685p29641685.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] P4080 Reset Vector
  2010-09-08 13:48 [U-Boot] P4080 Reset Vector MArunKumar
@ 2010-09-08 14:03 ` Kumar Gala
  2010-09-14  8:43   ` MArunKumar
  2010-09-10  7:03 ` Tony Wang
  1 sibling, 1 reply; 14+ messages in thread
From: Kumar Gala @ 2010-09-08 14:03 UTC (permalink / raw)
  To: u-boot


On Sep 8, 2010, at 8:48 AM, MArunKumar wrote:

> 
> Hi
> Im new to u-boot. Right now im in the process of customizing P4080DS(RDB) to
> my board.
> My doubt is, for P4080 the reset vec address is 0x0_ffff_fffc. 
> 1) But in the config.mk file it is mentioned as 0xefff_fffc wat it mean?.

This is because the link address is 0xeff80000.  We end up running at this address after the initial boot.

- k

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

* [U-Boot] P4080 Reset Vector
  2010-09-08 13:48 [U-Boot] P4080 Reset Vector MArunKumar
  2010-09-08 14:03 ` Kumar Gala
@ 2010-09-10  7:03 ` Tony Wang
  2010-09-10 11:47   ` Kumar Gala
  1 sibling, 1 reply; 14+ messages in thread
From: Tony Wang @ 2010-09-10  7:03 UTC (permalink / raw)
  To: u-boot

Hi All,

Could you tell me where can I download U-Boot for p4080, I have this board now.

Thanks

/Tony

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

* [U-Boot] P4080 Reset Vector
  2010-09-10  7:03 ` Tony Wang
@ 2010-09-10 11:47   ` Kumar Gala
  2010-09-14  3:34     ` Tony Wang
  0 siblings, 1 reply; 14+ messages in thread
From: Kumar Gala @ 2010-09-10 11:47 UTC (permalink / raw)
  To: u-boot


On Sep 10, 2010, at 2:03 AM, Tony Wang wrote:

> Hi All,
> 
> Could you tell me where can I download U-Boot for p4080, I have this board now.

What board?  You can basic support for P4080 in the git tree for u-boot.

- k

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

* [U-Boot] P4080 Reset Vector
  2010-09-10 11:47   ` Kumar Gala
@ 2010-09-14  3:34     ` Tony Wang
  2010-09-14  3:45       ` Liu Dave-R63238
  0 siblings, 1 reply; 14+ messages in thread
From: Tony Wang @ 2010-09-14  3:34 UTC (permalink / raw)
  To: u-boot


> What board?  You can basic support for P4080 in the git tree for u-boot.
> 
> - k
> 

Thanks Kumar,

Now I am use p4080ds board from freescale, I download U-Boot

2010.06 version.I check the board code for freescale, just

find p2020 directory, no p4080 board.

You said U-Boot has basic support for P4080, can you give

some more detail informaion such as file name or directory

name?

Best Regards,
/Tony

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

* [U-Boot] P4080 Reset Vector
  2010-09-14  3:34     ` Tony Wang
@ 2010-09-14  3:45       ` Liu Dave-R63238
  2010-09-15  8:10         ` Tony Wang
  0 siblings, 1 reply; 14+ messages in thread
From: Liu Dave-R63238 @ 2010-09-14  3:45 UTC (permalink / raw)
  To: u-boot

> 
> Now I am use p4080ds board from freescale, I download U-Boot
> 
> 2010.06 version.I check the board code for freescale, just
> 
> find p2020 directory, no p4080 board.
> 
> You said U-Boot has basic support for P4080, can you give
> 
> some more detail informaion such as file name or directory
> 
> name?

If you can get the P4080DS board from Freecale,
Why did not you ask local Freescale sales to get the SDK software?
There is all u-boot and kernel source code in the SDK software.

Thanks,
 Dave

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

* [U-Boot] P4080 Reset Vector
  2010-09-08 14:03 ` Kumar Gala
@ 2010-09-14  8:43   ` MArunKumar
  2010-09-14 19:13     ` Scott Wood
  0 siblings, 1 reply; 14+ messages in thread
From: MArunKumar @ 2010-09-14  8:43 UTC (permalink / raw)
  To: u-boot


Hi Kumar Gala

Thanks for ur kind reply.

Till, I am not clear why the resect vector points different
address(0xefff_fffc). 

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

* [U-Boot] P4080 Reset Vector
  2010-09-14  8:43   ` MArunKumar
@ 2010-09-14 19:13     ` Scott Wood
  0 siblings, 0 replies; 14+ messages in thread
From: Scott Wood @ 2010-09-14 19:13 UTC (permalink / raw)
  To: u-boot

On Tue, 14 Sep 2010 01:43:40 -0700
MArunKumar <marunk2004@yahoo.com> wrote:

> 
> Hi Kumar Gala
> 
> Thanks for ur kind reply.
> 
> Till, I am not clear why the resect vector points different
> address(0xefff_fffc). 
> 
> From your reply, I understood Text_Base address is 0xeff8_0000, so the
> resetvec address points to 0xefff_fffc.
> 
> For all 85xx processor except(MPC8572) the  resetvec = 0xffff_fffc,
> Text_Base = 0xfff8_0000
> For p4080 the resetvec = 0xefff_fffc,Text_Base = 0xeff8_0000
> 
> For p4080 why the resetvec and Text_Base address is different from the other
> 85xx processor ?. 

The reset vector is 0xfffffffc.  0xeffffffc is where the reset vector
code sits once flash has been remapped.  Until that remapping happens,
you can't use any absolute addresses by symbol.

-Scott

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

* [U-Boot] P4080 Reset Vector
  2010-09-14  3:45       ` Liu Dave-R63238
@ 2010-09-15  8:10         ` Tony Wang
  2010-09-15 10:22           ` Liu Dave-R63238
  0 siblings, 1 reply; 14+ messages in thread
From: Tony Wang @ 2010-09-15  8:10 UTC (permalink / raw)
  To: u-boot

Thanks Dave and All,

For that reset address question, I think because p4080ds's FPGA can do this
address decode and map 0xefffxxxx to 0xffffxxxx setting by SW7, is it right?

I also has another quesition, if I choose boot from bank0, why RCW should be
programmed into address 0xe8000000? is it a rule of chip design?

Regards,
/Tony

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

* [U-Boot] P4080 Reset Vector
  2010-09-15  8:10         ` Tony Wang
@ 2010-09-15 10:22           ` Liu Dave-R63238
  2010-09-17  8:01             ` Tony Wang
  0 siblings, 1 reply; 14+ messages in thread
From: Liu Dave-R63238 @ 2010-09-15 10:22 UTC (permalink / raw)
  To: u-boot

> For that reset address question, I think because p4080ds's FPGA can do
this address
> decode and map 0xefffxxxx to 0xffffxxxx setting by SW7, is it right?

No. FPGA doesn't matter with it.

The e500mc core boot start address(0xFFFF_FFFC) will point to the end of
CS0 Flash due to OR0[AM]=0.
In this phase, the core is using the relative addressing.
After you change the BR0,OR0, you can use absolute addressing.

Keep in mind, the bootloader is placed to the end of CS0, and the RCW is
placed to the start of CS0.
 
> I also has another quesition, if I choose boot from bank0, why RCW
should be
> programmed into address 0xe8000000? is it a rule of chip design?

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

* [U-Boot] P4080 Reset Vector
  2010-09-15 10:22           ` Liu Dave-R63238
@ 2010-09-17  8:01             ` Tony Wang
  2010-09-17  8:40               ` Liu Dave-R63238
  0 siblings, 1 reply; 14+ messages in thread
From: Tony Wang @ 2010-09-17  8:01 UTC (permalink / raw)
  To: u-boot

Liu Dave-R63238 <r63238 <at> freescale.com> writes:

> 
> > For that reset address question, I think because p4080ds's FPGA can do
> this address
> > decode and map 0xefffxxxx to 0xffffxxxx setting by SW7, is it right?
> 
> No. FPGA doesn't matter with it.
> 
> The e500mc core boot start address(0xFFFF_FFFC) will point to the end of
> CS0 Flash due to OR0[AM]=0.
> In this phase, the core is using the relative addressing.
> After you change the BR0,OR0, you can use absolute addressing.
> 
> Keep in mind, the bootloader is placed to the end of CS0, and the RCW is
> placed to the start of CS0.
> 
> > I also has another quesition, if I choose boot from bank0, why RCW
> should be
> > programmed into address 0xe8000000? is it a rule of chip design?
> 

 Thanks Dave, 

It look same as other PQ2/3 which using BR0/OR0 to set boot vecror base address.

just confirm, do you know CPU will read RCW data before it jump to 0xFFFF_FFFC?

/Tony

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

* [U-Boot] P4080 Reset Vector
  2010-09-17  8:01             ` Tony Wang
@ 2010-09-17  8:40               ` Liu Dave-R63238
  2010-09-27  8:43                 ` MArunKumar
  0 siblings, 1 reply; 14+ messages in thread
From: Liu Dave-R63238 @ 2010-09-17  8:40 UTC (permalink / raw)
  To: u-boot

> It look same as other PQ2/3 which using BR0/OR0 to set boot vecror
base address.
> 
> just confirm, do you know CPU will read RCW data before it jump to
0xFFFF_FFFC?

Yes. CPU reset module must fetch RCW and configure CPU itself.
then reset to 0xFFFF_FFFC, it is also same as PQ3.

Thanks,
 Dave

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

* [U-Boot] P4080 Reset Vector
  2010-09-17  8:40               ` Liu Dave-R63238
@ 2010-09-27  8:43                 ` MArunKumar
  2010-09-27 18:17                   ` Scott Wood
  0 siblings, 1 reply; 14+ messages in thread
From: MArunKumar @ 2010-09-27  8:43 UTC (permalink / raw)
  To: u-boot


hi
Kindly let me know how the branch instruction is loaded in reset vector
address (0xffff_fffc), but i have mapped my boot flash  from 0xE000_0000 to
EFFF_FFFF in LAW. 
please clarify me.


Liu Dave-R63238-2 wrote:
> 
>> It look same as other PQ2/3 which using BR0/OR0 to set boot vecror
> base address.
>> 
>> just confirm, do you know CPU will read RCW data before it jump to
> 0xFFFF_FFFC?
> 
> Yes. CPU reset module must fetch RCW and configure CPU itself.
> then reset to 0xFFFF_FFFC, it is also same as PQ3.
> 
> Thanks,
>  Dave
> 
> _______________________________________________
> 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/P4080-Reset-Vector-tp29641685p29815731.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] P4080 Reset Vector
  2010-09-27  8:43                 ` MArunKumar
@ 2010-09-27 18:17                   ` Scott Wood
  0 siblings, 0 replies; 14+ messages in thread
From: Scott Wood @ 2010-09-27 18:17 UTC (permalink / raw)
  To: u-boot

On Mon, 27 Sep 2010 01:43:53 -0700
MArunKumar <marunk2004@yahoo.com> wrote:

> 
> hi
> Kindly let me know how the branch instruction is loaded in reset vector
> address (0xffff_fffc), but i have mapped my boot flash  from 0xE000_0000 to
> EFFF_FFFF in LAW. 

When the chip starts execution, the boot vector is mapped at
0xfffffffc.  The boot code then changes the flash mapping (with an
interim state where it's mapped repeatedly throughout the address
space) before it runs any code that depends on the link address.

-scott

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

end of thread, other threads:[~2010-09-27 18:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-08 13:48 [U-Boot] P4080 Reset Vector MArunKumar
2010-09-08 14:03 ` Kumar Gala
2010-09-14  8:43   ` MArunKumar
2010-09-14 19:13     ` Scott Wood
2010-09-10  7:03 ` Tony Wang
2010-09-10 11:47   ` Kumar Gala
2010-09-14  3:34     ` Tony Wang
2010-09-14  3:45       ` Liu Dave-R63238
2010-09-15  8:10         ` Tony Wang
2010-09-15 10:22           ` Liu Dave-R63238
2010-09-17  8:01             ` Tony Wang
2010-09-17  8:40               ` Liu Dave-R63238
2010-09-27  8:43                 ` MArunKumar
2010-09-27 18:17                   ` Scott Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.