From owner-freebsd-tokenring@FreeBSD.ORG Mon Jun 21 04:34:28 2004 Return-Path: Delivered-To: freebsd-tokenring@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C637416A4CE for ; Mon, 21 Jun 2004 04:34:28 +0000 (GMT) Received: from claw.ees.com (claw.ees.com [204.212.231.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B1B943D31 for ; Mon, 21 Jun 2004 04:34:28 +0000 (GMT) (envelope-from myke@ees.com) Received: from localhost (myke@localhost) by claw.ees.com (8.11.6/8.11.6) with ESMTP id i5L4YIa98031; Sun, 20 Jun 2004 22:34:18 -0600 (MDT) (envelope-from myke@ees.com) Date: Sun, 20 Jun 2004 22:34:17 -0600 (MDT) From: Mike Holling To: freebsd-tokenring@freebsd.org Message-ID: <20040620221723.C28794@claw.ees.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: y3k@gti.net Subject: lanstreamer on 4.10? X-BeenThere: freebsd-tokenring@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Support Token Ring in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 04:34:28 -0000 i'm trying to revive the beta lanstreamer driver. i unpacked the beta driver in /usr/src/sys and tried to compile it. to get it to compile i added the following to if_lns_var.h: #ifndef __packed #define __packed __attribute__ ((packed)) #endif this seems to be necessary to make the struct definitions in the rest of that header work. i put device token in the kernel, rebooted, and loaded the module. it seems to work so far: russianthistle# kldload if_lns russianthistle# ifconfig lns0 ; ifconfig lns1 ; ifconfig lns2 lns0: flags=8002 mtu 17960 lladdr 8.0.5a.fd.95.69 media: Token ring UTP/16Mbit (autoselect) status: no ring lns1: flags=8002 mtu 1500 lladdr 8.0.5a.fd.95.6a media: Token ring autoselect status: no ring lns2: flags=8002 mtu 17960 lladdr 8.0.5a.fd.95.6b media: Token ring UTP/16Mbit (autoselect) status: no ring lns0 should be plugged into a CAU, which has two linux boxes with working tokenring setup (the box is some 2500 miles away for extra fun). dmesg shows lns0 as being connected to rj45: lns0: port 0xa000-0xa0ff mem 0xef100000-0xef1000ff irq 5 at device 1.0 on pci2 lns0: RJ-45 cable, Last insert: 16Mbps, No FDX lns0: MAC address: 08.00.5a.fd.95.69 lns1: port 0xa400-0xa4ff mem 0xef101000-0xef1010ff irq 5 at device 2.0 on pci2 lns1: LANStreamer Configuration Not Valid. lns1: No cable, No saved ring speed, No FDX lns1: MAC address: 08.00.5a.fd.95.6a lns2: port 0xa800-0xa8ff mem 0xef102000-0xef1020ff irq 11 at device 3.0 on pci2 lns2: LANStreamer Configuration Not Valid. lns2: No cable, Last insert: 16Mbps, No FDX lns2: MAC address: 08.00.5a.fd.95.6b unfortunately trying to do russianthistle# ifconfig lns0 10.1.1.10 causes the box to reboot, presumably from a kernel panic. unfortunately i don't have a serial console setup, only ssh, so i can't tell exactly what happens before it reboots. any help is appreciated! it looks like it's fairly close to working. i've never laid eyes on any of this hardware, yet, we're trying to get it working for a demonstration setup at a convention in a few weeks. i'm pretty sure this card will work under linux but it'd be much nicer for us if we could get it running under freebsd, although not essential. - Mike