[tulip] Linksys LNE100TX on PowerPC system works only in promiscuous mode?

Donald Becker becker@scyld.com
Thu, 8 Mar 2001 08:29:17 -0500 (EST)


On 7 Mar 2001, Gregorio Gervasio Jr. wrote:

> Date: 07 Mar 2001 23:57:41 -0800
> From: Gregorio Gervasio Jr. <gtgj@pacbell.net>
> To: tulip@scyld.com
> Subject: [tulip] Linksys LNE100TX on PowerPC system works only in promiscuous
    mode?
> 
>         I'm running Linux v2.2.18 on a PowerPC and my Linksys LNE100TX
> card works only with the interface in promiscuous mode.  If
> promiscuous mode is disabled, the DHCP server on my machine can
> respond to requests correctly but it looks like the card is not
> responding to regular traffic (ping, telnet, ftp, http, etc.).  In
> promiscuous mode, everything is otherwise working fine.

What Ethernet station address is reported by 'ifconfig' ?

>         I'm using this version of tulip.c:
> 
> "tulip.c:v0.92t 1/15/2001  Written by Donald Becker <becker@scyld.com>\n";

It's helpful to provide the rest of the detection message.
I see from the 'mii-diag' output that you are using an ADMtek
transceiver, thus you must have a v4.1 card.

Please try the following change around line 710
	} else if (chip_idx == COMET) {
		/* No need to read the EEPROM. */
-		put_unaligned(inl(ioaddr + 0xA4), (u32 *)dev->dev_addr);
-		put_unaligned(inl(ioaddr + 0xA8), (u16 *)(dev->dev_addr + 4));
+		put_unaligned(le32_to_cpu(inl(ioaddr + 0xA4)),
				(u32 *)dev->dev_addr);
		put_unaligned(le16_to_cpu(inl(ioaddr + 0xA8)),
				(u16 *)(dev->dev_addr + 4));
		for (i = 0; i < 6; i ++)
			sum += dev->dev_addr[i];
> 
>         I'm unable to build tulip-diag on this platform.  The output
> of "mii-diag -v" is:

Grrrr, someone should fix the PPC library -- diagnostics used to work.
I don't have a PPC here to fix it myself.

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993