Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2003 20:00:13 +0200
From:      Thomas Moestl <t.moestl@tu-bs.de>
To:        Maxim Mazurok <maxim@km.ua>
Cc:        freebsd-sparc@freebsd.org
Subject:   Re: sio(4) driver
Message-ID:  <20030823180012.GA668@crow.dom2ip.de>
In-Reply-To: <20030822185956.GL21392@km.ua>
References:  <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, 2003/08/22 at 21:59:56 +0300, Maxim Mazurok wrote:
> but i no reslolve next problem.
> in my Ultra AXi motherboard i have:
> 1. 4 rl cards
> 2. dual-port sio card
> 3. VGA+dual ethernet (hme) card
> 
> on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have
> same mac-address. Width any value OFW option "local-mac-address?".

That should not be too hard to fix. Do you actually require different
MAC addresses for some network setup?

> i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same
> effect. width new problem: rl cards no worked. i have not any arp addresses
> from rl cards.

The attached patch might fix that, I haven't tested it because of lack
of hardware, though.

	- Thomas

-- 
Thomas Moestl <t.moestl@tu-bs.de>	http://www.tu-bs.de/~y0015675/
              <tmm@FreeBSD.org>		http://people.FreeBSD.org/~tmm/
PGP fingerprint: 1C97 A604 2BD0 E492 51D0  9C0F 1FE6 4F1D 419C 776C

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rl-enaddr.diff"

Index: if_rl.c
===================================================================
RCS file: /vol/ncvs/src/sys/pci/if_rl.c,v
retrieving revision 1.113
diff -u -r1.113 if_rl.c
--- if_rl.c	22 Aug 2003 07:13:21 -0000	1.113
+++ if_rl.c	23 Aug 2003 17:45:29 -0000
@@ -2673,8 +2673,9 @@
 	 * register write enable" mode to modify the ID registers.
 	 */
 	CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG);
-	CSR_WRITE_4(sc, RL_IDR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0]));
-	CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4]));
+	/* Init our MAC address */
+	for (i = 0; i < ETHER_ADDR_LEN; i++)
+		CSR_WRITE_1(sc, RL_IDR0 + i, sc->arpcom.ac_enaddr[i]);
 	CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
 
 	/*

--EVF5PPMfhYS0aIcm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030823180012.GA668>