* Mpc875 Ethernet does not work under linux.
@ 2007-02-08 10:00 Cem Vedat ISIK
2007-02-09 17:26 ` Dan Malek
0 siblings, 1 reply; 6+ messages in thread
From: Cem Vedat ISIK @ 2007-02-08 10:00 UTC (permalink / raw)
To: linuxppc-embedded, linuxppc-dev
Hi all,
Sorry for duplicate posting, since I'm not sure about the topic.
I'm having a problem using ethernet with denx-provided kernel:
linuxppc_2_4_devel-2006-04-06-1735 on mpc875 (a member of mpc885 family).
Ethernet just works (tftpboot and ping are functional) under U-Boot
1.1.6 with mpc875. U-Boot boots with tftpboot, kernel starts (seems
correct-with no error messages) and ifconfig displays,
~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:D1:02:06:00
inet addr:192.168.2.135 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5540 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:583298 (569.6 KiB) TX bytes:42 (42.0 B)
Base address:0xe00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
$
where, the MAC addr is same as in U-Boot ( U-Boot correctly hands the
mac addr to linux kernel).
The mpc875 is situated on a daughter card, plugged onto the main board,
that contains a single phy (lxt972a). We already have a mpc852 based
daughter board which only has a single MII interface that works with the
mainboard hardware and with linuxppc_2_4_devel-2006-04-06-1735 kernel. I
mean, the difference is only the cpu type. The same mainboard/kernel
configuration for mpc852 works fine.
For some real-time patches and considerations, I have to use 2.4.25
kernel (linuxppc_2_4_devel-2006-04-06-1735). Therefore, need an idea on
using ethernet with this kernel.
Despite identifying the eth0 correctly ( which pings itself and
127.0.0.1 ), ping (and wget also) does not work, not only in pinging out
but also in replying pings.
(Pinging PC, from mpc875)
~ $ ping 192.168.2.108
No response from 192.168.2.108
~ $
Pinging the other way around (mpc875 from PC), I get "Destination
Unreachable", that is,
root@cem-kubuntu:/opt/kernel# ping 192.168.2.135
PING 192.168.2.135 (192.168.2.135) 56(84) bytes of data.
>From 192.168.2.108 icmp_seq=1 Destination Host Unreachable
root@cem-kubuntu:/opt/kernel#
At this time, on the serial console of mpc875 I get,
~ $ NETDEV WATCHDOG: eth0: transmit timed out
eth0: transmit timed out.
Ring data dump: cur_tx c3070108, tx_free 0, dirty_tx c3070108, cur_rx
c3070018
tx: 16 buffers
c3070100: 9c00 002a 00eb9aa2
c3070108: 9c00 002a 00eb9322
c3070110: 9c00 002a 00eb93a2
c3070118: 9c00 002a 00eb9422
c3070120: 9c00 002a 00eb94a2
c3070128: 9c00 002a 00eb9522
c3070130: 9c00 002a 00eb95a2
c3070138: 9c00 002a 00eb9622
c3070140: 9c00 002a 00eb96a2
c3070148: 9c00 002a 00eb9722
c3070150: 9c00 002a 00eb97a2
c3070158: 9c00 002a 00eb9822
c3070160: 9c00 002a 00eb98a2
c3070168: 9c00 002a 00eb9922
c3070170: 9c00 002a 00eb99a2
c3070178: bc00 002a 00eb9a22
rx: 32 buffers
c3070000: 8880 0072 0025c000
c3070008: 8880 0040 0025c800
c3070010: 8880 0040 0025b000
c3070018: 8880 0072 0025b800
c3070020: 8880 0060 0025a000
c3070028: 8880 0140 0025a800
c3070030: 8880 0072 00259000
c3070038: 8880 0040 00259800
c3070040: 8880 0072 00258000
c3070048: 8880 0040 00258800
c3070050: 8880 0072 00257000
c3070058: 8880 0072 00257800
c3070060: 8880 0072 00256000
c3070068: 8880 005c 00256800
c3070070: 8880 005c 00255000
c3070078: 8880 0072 00255800
c3070080: 8880 0072 00254000
c3070088: 8880 0072 00254800
c3070090: 8880 0072 00253000
c3070098: 8880 0040 00253800
c30700a0: 8880 0040 00252000
c30700a8: 8880 0059 00252800
c30700b0: 8880 0062 00251000
c30700b8: 8880 0072 00251800
c30700c0: 8880 0072 00250000
c30700c8: 8880 0065 00250800
c30700d0: 8880 0068 0024f000
c30700d8: 8880 0040 0024f800
c30700e0: 8880 0072 0024e000
c30700e8: 8880 0072 0024e800
c30700f0: 8880 0072 0024d000
c30700f8: a880 0072 0024d800
NETDEV WATCHDOG: eth0: transmit timed out
eth0: transmit timed out.
What can I do, to get ethernet up and working?
I appreciate your help, thank you very much.
--
Cem Vedat ISIK
cem.isik@karel.com.tr
-----------------------------------------------------------------------
Bu mesaj Karel MailScanner ile tehlikeli icerik ve virus kontrolunden gecirilmistir.
KAREL A.S. - Bilgi Teknolojileri Bolumu
This message has been scanned for viruses and dangerous content by Karel MailScanner, and is believed to be clean.
KAREL A.S. - Information Technologies Department
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mpc875 Ethernet does not work under linux.
2007-02-08 10:00 Mpc875 Ethernet does not work under linux Cem Vedat ISIK
@ 2007-02-09 17:26 ` Dan Malek
2007-02-14 8:35 ` Cem Vedat ISIK
0 siblings, 1 reply; 6+ messages in thread
From: Dan Malek @ 2007-02-09 17:26 UTC (permalink / raw)
To: Cem Vedat ISIK; +Cc: linuxppc-dev list, ppc embedded list
On Feb 8, 2007, at 5:00 AM, Cem Vedat ISIK wrote:
> I'm having a problem using ethernet with denx-provided kernel:
> linuxppc_2_4_devel-2006-04-06-1735 on mpc875 (a member of mpc885
> family).
Sounds like you didn't properly port your
kernel. I use both 2.4 and 2.6 on 875 and 885
every day. Works fine. Take a look at your
clock routing and PHY support functions to
ensure that's all correct.
-- Dan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mpc875 Ethernet does not work under linux.
2007-02-09 17:26 ` Dan Malek
@ 2007-02-14 8:35 ` Cem Vedat ISIK
2007-02-14 8:48 ` DI BACCO ANTONIO - technolabs
0 siblings, 1 reply; 6+ messages in thread
From: Cem Vedat ISIK @ 2007-02-14 8:35 UTC (permalink / raw)
To: Dan Malek; +Cc: linuxppc-dev list, ppc embedded list
Dan,
As 2.4.25 kernel, I'm using denx-supplied
linuxppc_2_4_devel-2006-04-06-1735 kernel, which shows me "8xx" option
as "Processor Type" in "Platform Support" section with "make menuconfig"
command.
Well, I want to try kernel 2.6.x but, I haven't seen any option for 875
support with "make menuconfig" command. Could you suggest any methods to
configure 2.6 kernel for mpc875?
Thanks in advance, looking forward to hearing from you soon.
Dan Malek wrote:
>
> On Feb 8, 2007, at 5:00 AM, Cem Vedat ISIK wrote:
>
>> I'm having a problem using ethernet with denx-provided kernel:
>> linuxppc_2_4_devel-2006-04-06-1735 on mpc875 (a member of mpc885 family).
>
> Sounds like you didn't properly port your
> kernel. I use both 2.4 and 2.6 on 875 and 885
> every day. Works fine. Take a look at your
> clock routing and PHY support functions to
> ensure that's all correct.
>
>
> -- Dan
--
Cem Vedat ISIK
cem.isik@karel.com.tr
PGP Key ID = 0×6D7B02F7
fingerprint = 8C34 144C 999A 917C 8EA0 1199 C136 C114 6D7B 02F7
-----------------------------------------------------------------------
Bu mesaj Karel MailScanner ile tehlikeli icerik ve virus kontrolunden gecirilmistir.
KAREL A.S. - Bilgi Teknolojileri Bolumu
This message has been scanned for viruses and dangerous content by Karel MailScanner, and is believed to be clean.
KAREL A.S. - Information Technologies Department
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Mpc875 Ethernet does not work under linux.
2007-02-14 8:35 ` Cem Vedat ISIK
@ 2007-02-14 8:48 ` DI BACCO ANTONIO - technolabs
2007-02-22 8:16 ` Cem Vedat ISIK
0 siblings, 1 reply; 6+ messages in thread
From: DI BACCO ANTONIO - technolabs @ 2007-02-14 8:48 UTC (permalink / raw)
To: Cem Vedat ISIK; +Cc: linuxppc-embedded
=20
>Well, I want to try kernel 2.6.x but, I haven't seen any option for 875
>support with "make menuconfig" command. Could you suggest any methods
to
>configure 2.6 kernel for mpc875?
A good starting point could be a board like mpc885ads
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mpc875 Ethernet does not work under linux.
2007-02-14 8:48 ` DI BACCO ANTONIO - technolabs
@ 2007-02-22 8:16 ` Cem Vedat ISIK
0 siblings, 0 replies; 6+ messages in thread
From: Cem Vedat ISIK @ 2007-02-22 8:16 UTC (permalink / raw)
To: DI BACCO ANTONIO - technolabs; +Cc: linuxppc-embedded
Could you please tell me how I can activate the menu to select mpc885ads?
DI BACCO ANTONIO - technolabs wrote:
>
>> Well, I want to try kernel 2.6.x but, I haven't seen any option for 875
>> support with "make menuconfig" command. Could you suggest any methods
> to
>> configure 2.6 kernel for mpc875?
>
> A good starting point could be a board like mpc885ads
>
--
Cem Vedat ISIK
cem.isik@karel.com.tr
Iletisim Teknolojileri
Tasarim Muhendisi
PGP Key ID = 0×6D7B02F7
fingerprint = 8C34 144C 999A 917C 8EA0 1199 C136 C114 6D7B 02F7
-----------------------------------------------------------------------
Bu mesaj Karel MailScanner ile tehlikeli icerik ve virus kontrolunden gecirilmistir.
KAREL A.S. - Bilgi Teknolojileri Bolumu
This message has been scanned for viruses and dangerous content by Karel MailScanner, and is believed to be clean.
KAREL A.S. - Information Technologies Department
^ permalink raw reply [flat|nested] 6+ messages in thread
* Mpc875 Ethernet does not work under linux
@ 2007-02-08 14:43 Kenneth Poole
0 siblings, 0 replies; 6+ messages in thread
From: Kenneth Poole @ 2007-02-08 14:43 UTC (permalink / raw)
To: linuxppc-embedded
Looking at your printout from IFCONFIG, your link is receiving but not
transmitting. It attempted to send one packet, but got a carrier sense
lost error (error=3D1, carrier=3D1). This can be caused by a mismatch in
duplex setting between the FEC and the PHY. If the FEC is in half
duplex, it will expect to see carrier during its own transmissions. If
the PHY is in full duplex, the carrier will be absent causing the error.
Make sure that the DRT bit in the R_CNTRL register and the FDEN bit in
the X_CNTRL register are set correctly according to the duplex mode
under which the PHY is operating.=20
Ken Poole
MRV Communications, Inc.
kpoole@bos.mrv.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-22 8:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 10:00 Mpc875 Ethernet does not work under linux Cem Vedat ISIK
2007-02-09 17:26 ` Dan Malek
2007-02-14 8:35 ` Cem Vedat ISIK
2007-02-14 8:48 ` DI BACCO ANTONIO - technolabs
2007-02-22 8:16 ` Cem Vedat ISIK
2007-02-08 14:43 Kenneth Poole
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.