linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Tigon3 driver, broadcom 5307, 440GP, working?
@ 2002-07-24 18:29 Stephen Cameron
  2002-07-25 17:29 ` Matt Porter
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Cameron @ 2002-07-24 18:29 UTC (permalink / raw)
  To: linuxppc-embedded


I've been playing around with the tigon3 driver and a broadcom
5307 gigabit NIC in my IBM ebony... No luck so far.  The driver compiles
and even loads, I can run ifconfig(busybox really) to configure
the NIC,  and if I pull the network cable, the driver seems to
notice (get log messages about link is down, link is up) but so
far, I can't actually transmit or receive any packets.

Anyone had any luck with this combination?

-- steve


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Tigon3 driver, broadcom 5307, 440GP, working?
  2002-07-24 18:29 Stephen Cameron
@ 2002-07-25 17:29 ` Matt Porter
  0 siblings, 0 replies; 5+ messages in thread
From: Matt Porter @ 2002-07-25 17:29 UTC (permalink / raw)
  To: steve.cameron; +Cc: linuxppc-embedded


On Wed, Jul 24, 2002 at 01:29:23PM -0500, Stephen Cameron wrote:
>
> I've been playing around with the tigon3 driver and a broadcom
> 5307 gigabit NIC in my IBM ebony... No luck so far.  The driver compiles
> and even loads, I can run ifconfig(busybox really) to configure
> the NIC,  and if I pull the network cable, the driver seems to
> notice (get log messages about link is down, link is up) but so
> far, I can't actually transmit or receive any packets.
>
> Anyone had any luck with this combination?

I assume you mean a BCM5703?

FWIW, BCM5700/5701 on 440GP works for me with the current tg3 driver.


Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* RE: Tigon3 driver, broadcom 5307, 440GP, working?
@ 2002-07-25 20:22 Cameron, Steve
  0 siblings, 0 replies; 5+ messages in thread
From: Cameron, Steve @ 2002-07-25 20:22 UTC (permalink / raw)
  To: Matt Porter; +Cc: linuxppc-embedded


>
> On Wed, Jul 24, 2002 at 01:29:23PM -0500, Stephen Cameron wrote:
> >
> > I've been playing around with the tigon3 driver and a broadcom
> > 5307 gigabit NIC in my IBM ebony... No luck so far.  The
> driver compiles
> > and even loads, I can run ifconfig(busybox really) to configure
> > the NIC,  and if I pull the network cable, the driver seems to
> > notice (get log messages about link is down, link is up) but so
> > far, I can't actually transmit or receive any packets.
> >
> > Anyone had any luck with this combination?
>
> I assume you mean a BCM5703?

I guess so... I know it colloquially as a "Broadcom 5703 gigabit NIC"

>
> FWIW, BCM5700/5701 on 440GP works for me with the current tg3 driver.
>

Hmm, I got ahold of a 5701 and tried it.  Same behavior as my 5703.
I can load the driver, ifconfig it, the link status appears correct,
but can't transmit packets.

here's what I get (on the off chance that somebody will see this
and recognized the problem):

Upon loading the driver:

eth2: Tigon3 [partno(284685-001) rev 0105 PHY(5701)] (PCIX:133MHz:64-bit) 10/102

Then,
/sbin/ifconfig eth2 192.168.2.55 netmask 255.255.255.0 broadcast 192.168.2.255
eth2: Link is up at 10 Mbps, half duplex.
eth2: Flow control is off for TX and off for RX.

So far so good.

Then,
ping 192.168.2.55

Now, trouble:
(some debugging output is in here....)
sys_sendto
sock_sendmsg, sock=c3a8a1c0, len=64
scm_send returns 0
sk->prot->sendmsg = c00c1058
a b d g j L b e f g rt_intern_hash
A B C, n = -22z2, err=-22
rt_intern_has returns -22
err = -22
sock->ops->sendmsg = c00c9a50
sock->ops->sendmsg returns -22
err = -22
sendto: Invalid argument

so, it seems that in net/ipv4/arp.c, arp_bind_neighbour(),
__neigh_lookup_errno returns -22.

Don't know why.

Other NICs in the system (on-chip NICs) work fine.

Also, if I try to ping 192.168.2.0 (the network address)
ping doesn't bail, but I still get the -22 from arp_bind_neighbour,
and though ping claims such-and-such many packets transmitted, when
I do ifconfig eth2, I see:

eth2      Link encap:Ethernet  HWaddr 00:02:A5:E7:1C:Dand though ping claims such-and-such many packets transmitted, when
I do ifconfig eth2, I see:

eth2      Link encap:Ethernet  HWaddr 00:02:A5:E7:1C:D2
          inet addr:192.168.2.55  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1448 (1.4 kb)  TX bytes:0 (0.0 b)
          Interrupt:24

(notice, zero packets transmitted.)


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* RE: Tigon3 driver, broadcom 5307, 440GP, working?
@ 2002-08-07 16:05 Cameron, Steve
  2002-08-07 18:15 ` James Dougherty
  0 siblings, 1 reply; 5+ messages in thread
From: Cameron, Steve @ 2002-08-07 16:05 UTC (permalink / raw)
  To: linuxppc-embedded


On Wed, Jul 24, 2002 at 01:29:23PM -0500, I wrote:
>
> I've been playing around with the tigon3 driver and a broadcom
> 5307 gigabit NIC in my IBM ebony... No luck so far.  The driver compiles
> and even loads, I can run ifconfig(busybox really) to configure
> the NIC,  and if I pull the network cable, the driver seems to
> notice (get log messages about link is down, link is up) but so
> far, I can't actually transmit or receive any packets.
>
> Anyone had any luck with this combination?

Ok, I have determined that my problem lies in user-land, not
the kernel.  Using the same kernel, but with a more elaborate
start-up scripts/root filesystem (those from DENX ELDK-1.0)
it works fine.

Using my minimal rootfs, with busybox, tinylogin, it doesn't
work.  Is there anything needed to get the broadcom 5703 going
besides ifconfig?

Well, I now have a root filesystem that works and one that
doesn't so I can slowly make one more like the other until
I see which piece is the culprit/magic.

Thanks,

-- steve

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Tigon3 driver, broadcom 5307, 440GP, working?
  2002-08-07 16:05 Tigon3 driver, broadcom 5307, 440GP, working? Cameron, Steve
@ 2002-08-07 18:15 ` James Dougherty
  0 siblings, 0 replies; 5+ messages in thread
From: James Dougherty @ 2002-08-07 18:15 UTC (permalink / raw)
  To: Cameron, Steve; +Cc: linuxppc-embedded, jfd, mchan


Hi,

AFAIK, the TIGON3 driver in the latest 2_4_devel kernel does
not work with 5703. I did a code review of both the broadcom
and tigon3 driver and found that the open-source driver doesn't
have all the workarounds and, it doesn't support all the chips/board
flavors that are out there...

This brings up the bigger question of why people aren't using
the Broadcom OpenSource driver? I've used it successfully now
with all the latest chips (5700, 5701, 5703).

What does it take to add BSP and driver support to the 2_4_devel
tree?

			Thanks,
			-James


>
> On Wed, Jul 24, 2002 at 01:29:23PM -0500, I wrote:
> >
> > I've been playing around with the tigon3 driver and a broadcom
> > 5307 gigabit NIC in my IBM ebony... No luck so far.  The driver compiles
> > and even loads, I can run ifconfig(busybox really) to configure
> > the NIC,  and if I pull the network cable, the driver seems to
> > notice (get log messages about link is down, link is up) but so
> > far, I can't actually transmit or receive any packets.
> >
> > Anyone had any luck with this combination?
>
> Ok, I have determined that my problem lies in user-land, not
> the kernel.  Using the same kernel, but with a more elaborate
> start-up scripts/root filesystem (those from DENX ELDK-1.0)
> it works fine.
>
> Using my minimal rootfs, with busybox, tinylogin, it doesn't
> work.  Is there anything needed to get the broadcom 5703 going
> besides ifconfig?
>
> Well, I now have a root filesystem that works and one that
> doesn't so I can slowly make one more like the other until
> I see which piece is the culprit/magic.
>
> Thanks,
>
> -- steve
>

--
James F. Dougherty, III
Broadcom Corporation
jfd@broadcom.com
(408) 501-8273


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-08-07 18:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-07 16:05 Tigon3 driver, broadcom 5307, 440GP, working? Cameron, Steve
2002-08-07 18:15 ` James Dougherty
  -- strict thread matches above, loose matches on Subject: below --
2002-07-25 20:22 Cameron, Steve
2002-07-24 18:29 Stephen Cameron
2002-07-25 17:29 ` Matt Porter

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