From: Scott Wood <scottwood@freescale.com>
To: Shawn Jin <shawnxjin@gmail.com>
Cc: ppcdev <linuxppc-dev@ozlabs.org>
Subject: Re: machine check in kernel for a mpc870 board
Date: Thu, 01 Jul 2010 15:25:11 -0500 [thread overview]
Message-ID: <4C2CF9A7.7010801@freescale.com> (raw)
In-Reply-To: <AANLkTikuI49rzT6j9glIB-Vmp6kZSTVT5ri3Hb-JHgKO@mail.gmail.com>
On 07/01/2010 03:17 PM, Shawn Jin wrote:
>>>> How do I find the address, reg, and range for nodes like localbus,
>>>> soc, eth0, cpm, serial etc.?
>>
>> If your CCSRBAR is 0xfa200000, then pretty much anywhere you see 0xff0xxxxx
>> change it to 0xfa2xxxxx.
>
> I'm not sure about the range settings of 0xfe000000. How do you get this?
>
> localbus@fa200100 {
> compatible = "fsl,mpc885-localbus", "fsl,pq1-localbus",
> "simple-bus";
> #address-cells =<2>;
> #size-cells =<1>;
> reg =<0xfa200100 0x40>;
>
> ranges =<
> 0 0 0xfe000000 0x01000000 // I'm not sure about this?
> >;
> };
Change 0xfe000000 to wherever u-boot maps your flash, and 0x01000000 to
whatever the size of the flash localbus mapping is.
Or more generally update this section to hold whatever is connected to
the localbus on your board. The first cell is the chipselect.
>> Make sure that you've got Linux platform code enabled that matches the
>> top-level compatible of your device tree. Try enabling PPC_EARLY_DEBUG_CPM,
>> making sure to update PPC_EARLY_DEBUG_CPM_ADDR to 0xfa202008.
>
> I enabled this early debug feature but don't know this address change.
The address change is for the different IMMR base, only this use is too
early/hacky to get it from the device tree.
-Scott
next prev parent reply other threads:[~2010-07-01 20:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 7:59 machine check in kernel for a mpc870 board Shawn Jin
2010-06-29 8:06 ` Joakim Tjernlund
2010-06-29 8:37 ` Shawn Jin
2010-06-29 18:56 ` Scott Wood
2010-06-30 6:14 ` Shawn Jin
2010-06-30 16:16 ` Scott Wood
2010-06-30 22:25 ` Shawn Jin
2010-07-01 7:50 ` Shawn Jin
2010-07-01 17:42 ` Scott Wood
2010-07-01 20:17 ` Shawn Jin
2010-07-01 20:25 ` Scott Wood [this message]
2010-07-02 17:06 ` Shawn Jin
2010-07-02 17:47 ` Scott Wood
2010-07-02 19:16 ` Shawn Jin
2010-07-02 19:41 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C2CF9A7.7010801@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=shawnxjin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).