Re: machine check in kernel for a mpc870 board

2010-07-02 Thread Scott Wood
On Fri, 2 Jul 2010 12:16:11 -0700 Shawn Jin wrote: > >> The chipselect? Isn't it just the child-bus-addr? BTW, do we have > >> to define the #address-cells to 2? 1 is not enough? > > > > The first cell of the child bus address is the chip select, the > > second cell is the offset into the chip se

Re: machine check in kernel for a mpc870 board

2010-07-02 Thread Shawn Jin
>> The chipselect? Isn't it just the child-bus-addr? BTW, do we have to >> define the #address-cells to 2? 1 is not enough? > > The first cell of the child bus address is the chip select, the second > cell is the offset into the chip select. I see. So the #address-sells of 2 doesn't necessarily in

Re: machine check in kernel for a mpc870 board

2010-07-02 Thread Scott Wood
On Fri, 2 Jul 2010 10:06:47 -0700 Shawn Jin wrote: > > Or more generally update this section to hold whatever is connected > > to the localbus on your board.  The first cell is the chipselect. > > The chipselect? Isn't it just the child-bus-addr? BTW, do we have to > define the #address-cells to

Re: machine check in kernel for a mpc870 board

2010-07-02 Thread Shawn Jin
>>        local...@fa200100 { >>                compatible = "fsl,mpc885-localbus", "fsl,pq1-localbus", >>                             "simple-bus"; >>                #address-cells =<2>; >>                #size-cells =<1>; >>                reg =<0xfa200100 0x40>; >> >>                ranges =< >>

Re: machine check in kernel for a mpc870 board

2010-07-01 Thread Scott Wood
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 0xfa20, then pretty much anywhere you see 0xff0x change it to 0xfa2x. I'm not sure about the range settings of 0xfe00. Ho

Re: machine check in kernel for a mpc870 board

2010-07-01 Thread Shawn Jin
>>> How do I find the address, reg, and range for nodes like localbus, >>> soc, eth0, cpm, serial etc.? > > If your CCSRBAR is 0xfa20, then pretty much anywhere you see 0xff0x > change it to 0xfa2x. I'm not sure about the range settings of 0xfe00. How do you get this? local

Re: machine check in kernel for a mpc870 board

2010-07-01 Thread Scott Wood
On 07/01/2010 02:50 AM, Shawn Jin wrote: Hi Scott, How do I find the address, reg, and range for nodes like localbus, soc, eth0, cpm, serial etc.? If your CCSRBAR is 0xfa20, then pretty much anywhere you see 0xff0x change it to 0xfa2x. I managed to proceed a little bit further

Re: machine check in kernel for a mpc870 board

2010-07-01 Thread Shawn Jin
Hi Scott, > How do I find the address, reg, and range for nodes like localbus, > soc, eth0, cpm, serial etc.? Do the addresses of localbus and soc > relate to IMMR? So my localbus and soc should be as follows? > >        local...@fa200100 { >                compatible = "fsl,mpc885-localbus", "fsl

Re: machine check in kernel for a mpc870 board

2010-06-30 Thread Shawn Jin
Hi Scott, > Does u-boot on your board put IMMR somewhere other than 0xff00?  If so, > you'll need to update the device tree to reflect this. Thanks a lot. I think you got something here. Please bear with me. This is the first dts file I'm creating. I have some question regarding to dts first.

Re: machine check in kernel for a mpc870 board

2010-06-30 Thread Scott Wood
On 06/30/2010 01:14 AM, Shawn Jin wrote: Hi Scott, Bus Fault @ 0x00404c40, fixup 0x Machine check in kernel mode. Caused by (from msr): regs 07d1cb80 Unknown values in msr NIP: 00404C40 XER: LR: 00404C24 REGS: 07d1cb80 TRAP: 0200 DAR: 0001 MSR: 1002 EE: 0 PR: 0 FP: 0 ME

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Shawn Jin
Hi Scott, >> Bus Fault @ 0x00404c40, fixup 0x >> Machine check in kernel mode. >> Caused by (from msr): regs 07d1cb80 Unknown values in msr >> NIP: 00404C40 XER: LR: 00404C24 REGS: 07d1cb80 TRAP: 0200 DAR: >> 0001 >> MSR: 1002 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00 > > Can you

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Scott Wood
On Tue, Jun 29, 2010 at 12:59:56AM -0700, Shawn Jin wrote: > I'm porting a mpc870 board to the powerpc arch. The base is the > adder-875 board. My first try to boot the cuImage.my870 is > experiencing a machine check. And I have no clue where to look. Any > help? > > => bootm 100 > ## Booting

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Shawn Jin
>> => bootm 100 >> ## Booting image at 0100 ... >>    Image Name:   Linux-2.6.33.5 >>    Image Type:   PowerPC Linux Kernel Image (gzip compressed) >>    Data Size:    747319 Bytes = 729.8 kB >>    Load Address: 0040 >>    Entry Point:  004004d4 > > Load and Entry Point should probably

Re: machine check in kernel for a mpc870 board

2010-06-29 Thread Joakim Tjernlund
> From: Shawn Jin > > I'm porting a mpc870 board to the powerpc arch. The base is the > adder-875 board. My first try to boot the cuImage.my870 is > experiencing a machine check. And I have no clue where to look. Any > help? > > => bootm 100 > ## Booting image at 0100 ... >Image Name:

machine check in kernel for a mpc870 board

2010-06-29 Thread Shawn Jin
I'm porting a mpc870 board to the powerpc arch. The base is the adder-875 board. My first try to boot the cuImage.my870 is experiencing a machine check. And I have no clue where to look. Any help? => bootm 100 ## Booting image at 0100 ... Image Name: Linux-2.6.33.5 Image Type: Po