Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2004 22:34:17 -0600 (MDT)
From:      Mike Holling <myke@ees.com>
To:        freebsd-tokenring@freebsd.org
Cc:        y3k@gti.net
Subject:   lanstreamer on 4.10?
Message-ID:  <20040620221723.C28794@claw.ees.com>

next in thread | raw e-mail | index | archive | help
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<BROADCAST,MULTICAST> mtu 17960
        lladdr 8.0.5a.fd.95.69
        media: Token ring UTP/16Mbit (autoselect)
        status: no ring
lns1: flags=8002<BROADCAST,MULTICAST> mtu 1500
        lladdr 8.0.5a.fd.95.6a
        media: Token ring autoselect
        status: no ring
lns2: flags=8002<BROADCAST,MULTICAST> 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: <IBM Auto LANStreamer> 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: <IBM Auto LANStreamer> 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: <IBM Auto LANStreamer> 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




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