linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-11 15:52 Freescale MPC8313ERDB-RevA and newer BSP/kernel Mark Bishop
@ 2009-03-11 15:42 ` Kumar Gala
  2009-03-11 16:03   ` Mark Bishop
  0 siblings, 1 reply; 9+ messages in thread
From: Kumar Gala @ 2009-03-11 15:42 UTC (permalink / raw)
  To: Mark Bishop; +Cc: linuxppc-dev


On Mar 11, 2009, at 10:52 AM, Mark Bishop wrote:

> Has anyone been able to get a newer Freescale BSP to work with a  
> RevA (processor version 1.0) RDB?
>
> The boards we received didn't have SPI compiled into the kernel and  
> when we went to go re-compile the kernel using the 20081222 and  
> 20080711 BSPs.  I realize that the interrupts were reversed for  
> eTEC1 and eTEC2 and I've made the changes in the .dtb file and I no  
> longer hang when I ping, etc.   But I still can't get the board on  
> the network.  I've verified it isn't the network settings.
>
> I've pinged Freescale for support (didn't help much) and I am now  
> looking for someone who has actually done it (if ever).

Have you tried a kernel.org kernel?  The group here would be more than  
happy to help with any issues you might find with the kernel.org kernel.

- k

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

* Freescale MPC8313ERDB-RevA and newer BSP/kernel
@ 2009-03-11 15:52 Mark Bishop
  2009-03-11 15:42 ` Kumar Gala
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Bishop @ 2009-03-11 15:52 UTC (permalink / raw)
  To: linuxppc-dev

Has anyone been able to get a newer Freescale BSP to work with a RevA  
(processor version 1.0) RDB?

The boards we received didn't have SPI compiled into the kernel and  
when we went to go re-compile the kernel using the 20081222 and  
20080711 BSPs.  I realize that the interrupts were reversed for eTEC1  
and eTEC2 and I've made the changes in the .dtb file and I no longer  
hang when I ping, etc.   But I still can't get the board on the  
network.  I've verified it isn't the network settings.

I've pinged Freescale for support (didn't help much) and I am now  
looking for someone who has actually done it (if ever).

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-11 15:42 ` Kumar Gala
@ 2009-03-11 16:03   ` Mark Bishop
  2009-03-11 16:53     ` Scott Wood
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Bishop @ 2009-03-11 16:03 UTC (permalink / raw)
  To: linuxppc-dev


Yes I have actually.  I have booted a 2.6.28.6.  Same problem.

Also, is it me but at some point from 2.6.23 to 2.6.28 did they =20
started using hex numbers in the .dts file for "interrupts =3D " without =20
the 0x preamble?

I've been looking at 2.6.20, 2.6.23, and 2.6.28 .dts files for this =20
board and .28 looked way different in the interrupt section for the =20
eTSEC.

Quoting Kumar Gala <galak@kernel.crashing.org>:

>
> On Mar 11, 2009, at 10:52 AM, Mark Bishop wrote:
>
>> Has anyone been able to get a newer Freescale BSP to work with a =20
>> RevA (processor version 1.0) RDB?
>>
>> The boards we received didn't have SPI compiled into the kernel and =20
>> when we went to go re-compile the kernel using the 20081222 and =20
>> 20080711 BSPs.  I realize that the interrupts were reversed for =20
>> eTEC1 and eTEC2 and I've made the changes in the .dtb file and I no =20
>> longer hang when I ping, etc.   But I still can't get the board on =20
>> the network.  I've verified it isn't the network settings.
>>
>> I've pinged Freescale for support (didn't help much) and I am now =20
>> looking for someone who has actually done it (if ever).
>
> Have you tried a kernel.org kernel?  The group here would be more =20
> than happy to help with any issues you might find with the =20
> kernel.org kernel.
>
> - k
>
>

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-11 16:03   ` Mark Bishop
@ 2009-03-11 16:53     ` Scott Wood
  2009-03-11 18:27       ` Mark Bishop
  0 siblings, 1 reply; 9+ messages in thread
From: Scott Wood @ 2009-03-11 16:53 UTC (permalink / raw)
  To: Mark Bishop; +Cc: linuxppc-dev

On Wed, Mar 11, 2009 at 12:03:00PM -0400, Mark Bishop wrote:
> Yes I have actually.  I have booted a 2.6.28.6.  Same problem.

I've booted many recent kernels on revA 8313ERDB; networking works fine. 
I'll try 2.6.28.6 specifically, though u-boot is acting up at the moment
so I have to address that first. :-(

Are you using the stock config and device tree from 2.6.28.6, or have you
made any changes?

> Also, is it me but at some point from 2.6.23 to 2.6.28 did they  
> started using hex numbers in the .dts file for "interrupts = " without  
> the 0x preamble?

Yes.  dts version 0 had hex by default (with OF-like radix prefixes), and version 1 (indicated by
/dts-v1/; at the top of the file) has decimal by default (with C-like
radix prefixes).

> I've been looking at 2.6.20, 2.6.23, and 2.6.28 .dts files for this  
> board and .28 looked way different in the interrupt section for the  
> eTSEC.
> 
> Quoting Kumar Gala <galak@kernel.crashing.org>:

Please don't top-post.

> >>The boards we received didn't have SPI compiled into the kernel and  
> >>when we went to go re-compile the kernel using the 20081222 and  
> >>20080711 BSPs.  I realize that the interrupts were reversed for  
> >>eTEC1 and eTEC2 and I've made the changes in the .dtb file and I no  
> >>longer hang when I ping, etc.   But I still can't get the board on  
> >>the network.  I've verified it isn't the network settings.

You're sure you're not trying to talk to the switch (which will claim
link-up regardless of what's plugged into it)?  The non-switch ethernet
port is eTSEC2.

What *does* it do when you ping, if neither hang nor work?

-Scott

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-11 16:53     ` Scott Wood
@ 2009-03-11 18:27       ` Mark Bishop
  2009-03-16  5:41         ` Vijay Nikam
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Bishop @ 2009-03-11 18:27 UTC (permalink / raw)
  To: linuxppc-dev

Quoting Scott Wood <scottwood@freescale.com>:

> On Wed, Mar 11, 2009 at 12:03:00PM -0400, Mark Bishop wrote:
>> Yes I have actually.  I have booted a 2.6.28.6.  Same problem.
>
> I've booted many recent kernels on revA 8313ERDB; networking works fine.
> I'll try 2.6.28.6 specifically, though u-boot is acting up at the moment
> so I have to address that first. :-(
>
> Are you using the stock config and device tree from 2.6.28.6, or have you
> made any changes?
>
>> Also, is it me but at some point from 2.6.23 to 2.6.28 did they
>> started using hex numbers in the .dts file for "interrupts =3D " without
>> the 0x preamble?
>
> Yes.  dts version 0 had hex by default (with OF-like radix =20
> prefixes), and version 1 (indicated by
> /dts-v1/; at the top of the file) has decimal by default (with C-like
> radix prefixes).
>
>> I've been looking at 2.6.20, 2.6.23, and 2.6.28 .dts files for this
>> board and .28 looked way different in the interrupt section for the
>> eTSEC.
>>
>> Quoting Kumar Gala <galak@kernel.crashing.org>:
>
> Please don't top-post.
>
>> >>The boards we received didn't have SPI compiled into the kernel and
>> >>when we went to go re-compile the kernel using the 20081222 and
>> >>20080711 BSPs.  I realize that the interrupts were reversed for
>> >>eTEC1 and eTEC2 and I've made the changes in the .dtb file and I no
>> >>longer hang when I ping, etc.   But I still can't get the board on
>> >>the network.  I've verified it isn't the network settings.
>
> You're sure you're not trying to talk to the switch (which will claim
> link-up regardless of what's plugged into it)?  The non-switch ethernet
> port is eTSEC2.
>
> What *does* it do when you ping, if neither hang nor work?
>
> -Scott
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
>

After remapping the IRQs, it is working now.

Any idea on what I need to do to get SPI working?  I've compiled it =20
into the kernel but don't see anything in /proc/bus

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-11 18:27       ` Mark Bishop
@ 2009-03-16  5:41         ` Vijay Nikam
  2009-03-17 16:52           ` Mark Bishop
  0 siblings, 1 reply; 9+ messages in thread
From: Vijay Nikam @ 2009-03-16  5:41 UTC (permalink / raw)
  To: Mark Bishop; +Cc: linuxppc-dev

Hi Mark,

Could you please let me know how you booted the latest Linux kernel on
MPC8313ERDB board ? ? ? As I tried but was not successful. It hangs or
does nothing and waits at network configuration, mean to determine IP
address (as I have used dhcp).

Kindly please acknowledge ... thank you ...

Kind Regards,
Vijay Nikam


On 3/11/09, Mark Bishop <mark@bish.net> wrote:
>
> Quoting Scott Wood <scottwood@freescale.com>:
>
>
> > On Wed, Mar 11, 2009 at 12:03:00PM -0400, Mark Bishop wrote:
> >
> > > Yes I have actually. =A0I have booted a 2.6.28.6. =A0Same problem.
> > >
> >
> > I've booted many recent kernels on revA 8313ERDB; networking works fine=
.
> > I'll try 2.6.28.6 specifically, though u-boot is acting up at the momen=
t
> > so I have to address that first. :-(
> >
> > Are you using the stock config and device tree from 2.6.28.6, or have y=
ou
> > made any changes?
> >
> >
> > > Also, is it me but at some point from 2.6.23 to 2.6.28 did they
> > > started using hex numbers in the .dts file for "interrupts =3D " with=
out
> > > the 0x preamble?
> > >
> >
> > Yes. =A0dts version 0 had hex by default (with OF-like radix prefixes),=
 and version 1 (indicated by
> > /dts-v1/; at the top of the file) has decimal by default (with C-like
> > radix prefixes).
> >
> >
> > > I've been looking at 2.6.20, 2.6.23, and 2.6.28 .dts files for this
> > > board and .28 looked way different in the interrupt section for the
> > > eTSEC.
> > >
> > > Quoting Kumar Gala <galak@kernel.crashing.org>:
> > >
> >
> > Please don't top-post.
> >
> >
> > > >>The boards we received didn't have SPI compiled into the kernel and
> > > >>when we went to go re-compile the kernel using the 20081222 and
> > > >>20080711 BSPs. =A0I realize that the interrupts were reversed for
> > > >>eTEC1 and eTEC2 and I've made the changes in the .dtb file and I no
> > > >>longer hang when I ping, etc. =A0 But I still can't get the board o=
n
> > > >>the network. =A0I've verified it isn't the network settings.
> > >
> >
> > You're sure you're not trying to talk to the switch (which will claim
> > link-up regardless of what's plugged into it)? =A0The non-switch ethern=
et
> > port is eTSEC2.
> >
> > What *does* it do when you ping, if neither hang nor work?
> >
> > -Scott
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-dev
> >
> >
> >
>
> After remapping the IRQs, it is working now.
>
> Any idea on what I need to do to get SPI working? =A0I've compiled it int=
o the kernel but don't see anything in /proc/bus
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-16  5:41         ` Vijay Nikam
@ 2009-03-17 16:52           ` Mark Bishop
  2009-03-18 17:50             ` Scott Wood
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Bishop @ 2009-03-17 16:52 UTC (permalink / raw)
  To: Vijay Nikam; +Cc: linuxppc-dev

Quoting Vijay Nikam <vijay.t.nikam@gmail.com>:

> Hi Mark,
>
> Could you please let me know how you booted the latest Linux kernel on
> MPC8313ERDB board ? ? ? As I tried but was not successful. It hangs or
> does nothing and waits at network configuration, mean to determine IP
> address (as I have used dhcp).
>
> Kindly please acknowledge ... thank you ...
>
> Kind Regards,
> Vijay Nikam
>
>

I modified the .dts file (mpc8313erdb.dts)

WAS interrupts = <37 0x8 36 0x8 35 0x8>;
IS  interrupts = <34 0x8 33 0x8 32 0x8>;

WAS interrupts = <34 0x8 33 0x8 32 0x8>;
IS  interrupts = <37 0x8 36 0x8 35 0x8>;

This is from memory, so let me know if you have a problem.

And sorry for the manual diff.



Any idea on how to get spidev up and running on this board?  :)

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-17 16:52           ` Mark Bishop
@ 2009-03-18 17:50             ` Scott Wood
  2009-05-14 12:29               ` Vijay Nikam
  0 siblings, 1 reply; 9+ messages in thread
From: Scott Wood @ 2009-03-18 17:50 UTC (permalink / raw)
  To: Mark Bishop; +Cc: Vijay Nikam, linuxppc-dev

On Tue, Mar 17, 2009 at 12:52:52PM -0400, Mark Bishop wrote:
> Quoting Vijay Nikam <vijay.t.nikam@gmail.com>:
>
>> Hi Mark,
>>
>> Could you please let me know how you booted the latest Linux kernel on
>> MPC8313ERDB board ? ? ? As I tried but was not successful. It hangs or
>> does nothing and waits at network configuration, mean to determine IP
>> address (as I have used dhcp).
>>
>> Kindly please acknowledge ... thank you ...
>>
>> Kind Regards,
>> Vijay Nikam
>>
>>
>
> I modified the .dts file (mpc8313erdb.dts)
>
> WAS interrupts = <37 0x8 36 0x8 35 0x8>;
> IS  interrupts = <34 0x8 33 0x8 32 0x8>;

Should actually be <32 8 33 8 34 8> for newer revs.

> WAS interrupts = <34 0x8 33 0x8 32 0x8>;
> IS  interrupts = <37 0x8 36 0x8 35 0x8>;

Likewise, <35 8 36 8 37 8>.

-Scott

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

* Re: Freescale MPC8313ERDB-RevA and newer BSP/kernel
  2009-03-18 17:50             ` Scott Wood
@ 2009-05-14 12:29               ` Vijay Nikam
  0 siblings, 0 replies; 9+ messages in thread
From: Vijay Nikam @ 2009-05-14 12:29 UTC (permalink / raw)
  To: Scott Wood; +Cc: Mark Bishop, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

Hello,

I have actually tried with this set Interrupt mappings ... needed to
be done for mpc8313erdb Rev. 1.0 board dts, but still not able to
boot. It hangs at udhcpc pre started. please check the attached
screenshot.

Please let me know the way to proceed further, Kindly please
acknowledge ... thank you

Kind Regards,
Vijay Nikam

On Wed, Mar 18, 2009 at 11:20 PM, Scott Wood <scottwood@freescale.com> wrote:
>
> On Tue, Mar 17, 2009 at 12:52:52PM -0400, Mark Bishop wrote:
> > Quoting Vijay Nikam <vijay.t.nikam@gmail.com>:
> >
> >> Hi Mark,
> >>
> >> Could you please let me know how you booted the latest Linux kernel on
> >> MPC8313ERDB board ? ? ? As I tried but was not successful. It hangs or
> >> does nothing and waits at network configuration, mean to determine IP
> >> address (as I have used dhcp).
> >>
> >> Kindly please acknowledge ... thank you ...
> >>
> >> Kind Regards,
> >> Vijay Nikam
> >>
> >>
> >
> > I modified the .dts file (mpc8313erdb.dts)
> >
> > WAS interrupts = <37 0x8 36 0x8 35 0x8>;
> > IS  interrupts = <34 0x8 33 0x8 32 0x8>;
>
> Should actually be <32 8 33 8 34 8> for newer revs.
>
> > WAS interrupts = <34 0x8 33 0x8 32 0x8>;
> > IS  interrupts = <37 0x8 36 0x8 35 0x8>;
>
> Likewise, <35 8 36 8 37 8>.
>
> -Scott

[-- Attachment #2: udhcp_log.JPG --]
[-- Type: image/jpeg, Size: 226925 bytes --]

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

end of thread, other threads:[~2009-05-14 12:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-11 15:52 Freescale MPC8313ERDB-RevA and newer BSP/kernel Mark Bishop
2009-03-11 15:42 ` Kumar Gala
2009-03-11 16:03   ` Mark Bishop
2009-03-11 16:53     ` Scott Wood
2009-03-11 18:27       ` Mark Bishop
2009-03-16  5:41         ` Vijay Nikam
2009-03-17 16:52           ` Mark Bishop
2009-03-18 17:50             ` Scott Wood
2009-05-14 12:29               ` Vijay Nikam

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).