linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Uboot-1.2.0 on MPC8360EMDS board
@ 2008-09-23 18:56 mike zheng
  2008-09-23 21:07 ` Wolfgang Denk
  2008-09-23 21:41 ` How to use mtdcr from userland code Ayman El-Khashab
  0 siblings, 2 replies; 4+ messages in thread
From: mike zheng @ 2008-09-23 18:56 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I am having problem when I try to bootup MPC8360EMDS with Uboot1.2.
The following are logs. The board reboot when the uboot tried to run
on the RAM. Any idea on this issue?

Thanks,

Mike


U-Boot 1.2.1 (Sep 23 2008 - 14:35:42) MPC83XX

Clock configuration:
  Coherent System Bus:  264 MHz
  Core:                 528 MHz
  QE:                   396 MHz
  Local Bus Controller: 264 MHz
  Local Bus:             66 MHz
  DDR:                  264 MHz
  DDR Secondary:        264 MHz
  SEC:                   88 MHz
  I2C1:                 264 MHz
  I2C2:                 264 MHz
CPU: MPC8360E, Rev: 21 at 528 MHz
Board: Freescale MPC8360EMDS
I2C:   ready
DRAM:
cs0_bnds = 0x0000000f
cs0_config = 0x80000102
DDR:bar=0x00000000
DDR:ar=0x8000001b
DDR:Module maximum data rate is: 400Mhz
DDR:Effective data rate is: 266Mhz
DDR:The MSB 1 of CAS Latency is: 4
Errata DDR6 (debug_reg=0x002c0000)
DDR:timing_cfg_1=0x37353321
DDR:timing_cfg_2=0x00000800

   DDR DIMM: data bus width is 64 bit with ECC
DDR:sdram_mode=0x00000032
DDR:sdram_interval=0x045b0100
DDR:sdram_clk_cntl=0x00000000
   DDRC ECC mode: OFF
DDR:sdram_cfg=0xc2000000

   SDRAM on Local Bus: 64 MB
   DDR RAM: 256 MB
Top of RAM usable for U-Boot at: 10000000
Reserving 205k for U-Boot at: 0ffcc000
Reserving 136k for malloc() at: 0ffaa000
Reserving 76 Bytes for Board Info at: 0ffa9fb4
Reserving 104 Bytes for Global Data at: 0ffa9f4c
Stack Pointer at: 0ffa9f28

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

* Re: Uboot-1.2.0 on MPC8360EMDS board
  2008-09-23 18:56 Uboot-1.2.0 on MPC8360EMDS board mike zheng
@ 2008-09-23 21:07 ` Wolfgang Denk
  2008-09-23 21:41 ` How to use mtdcr from userland code Ayman El-Khashab
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2008-09-23 21:07 UTC (permalink / raw)
  To: mike zheng; +Cc: linuxppc-embedded

Dear Mike,

In message <5c9cd53b0809231156o3c24c053y26861d8f1cf24a93@mail.gmail.com> you wrote:
> 
> I am having problem when I try to bootup MPC8360EMDS with Uboot1.2.
> The following are logs. The board reboot when the uboot tried to run
> on the RAM. Any idea on this issue?

Two ideas actually:

1) Don't cross-post the very same question to several mailing lists.

2) Don't use ancient software versions. Use current code instead.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The ultimate barrier is one's viewpoint.
                        - Terry Pratchett, _The Dark Side of the Sun_

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

* How to use mtdcr from userland code
  2008-09-23 18:56 Uboot-1.2.0 on MPC8360EMDS board mike zheng
  2008-09-23 21:07 ` Wolfgang Denk
@ 2008-09-23 21:41 ` Ayman El-Khashab
  2008-09-24 12:33   ` Josh Boyer
  1 sibling, 1 reply; 4+ messages in thread
From: Ayman El-Khashab @ 2008-09-23 21:41 UTC (permalink / raw)
  To: linuxppc-embedded

Greetings,

I am developing an app that needs to map pci address space to the PLB on
the ppc460ex.  From what I gather I need to use the mtcdr
instruction/macro to configure the PIM0 space.  However, I cannot figure
out how to use that from userland code.  Is it possible?  Can I change
the PIM some other way?

Thanks

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

* Re: How to use mtdcr from userland code
  2008-09-23 21:41 ` How to use mtdcr from userland code Ayman El-Khashab
@ 2008-09-24 12:33   ` Josh Boyer
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Boyer @ 2008-09-24 12:33 UTC (permalink / raw)
  To: Ayman El-Khashab; +Cc: linuxppc-embedded

On Tue, 23 Sep 2008 16:41:49 -0500
"Ayman El-Khashab" <AymanE@tanisys.com> wrote:

> Greetings,
> 
> I am developing an app that needs to map pci address space to the PLB on
> the ppc460ex.  From what I gather I need to use the mtcdr
> instruction/macro to configure the PIM0 space.  However, I cannot figure
> out how to use that from userland code.  Is it possible? 

Normally, no.  The mtdcr/mfdcr instructions are privileged
instructions.  On that particular core though, there are userspace dcr
instructions.  They are mtdcrux/mfdcrux instructions documented in the
CPU manual.

You will have to hard code them, as there are no versions of binutils
that I know of that will emit the userspace dcr instructions.

> Can I change the PIM some other way?

Yes, write a proper driver.

josh

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

end of thread, other threads:[~2008-09-24 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23 18:56 Uboot-1.2.0 on MPC8360EMDS board mike zheng
2008-09-23 21:07 ` Wolfgang Denk
2008-09-23 21:41 ` How to use mtdcr from userland code Ayman El-Khashab
2008-09-24 12:33   ` Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).