From owner-freebsd-tokenring Tue Nov 28 9:19:59 2000 Delivered-To: freebsd-tokenring@freebsd.org Received: from mailgate2.sabre.com (mailgate2.sabre.com [144.9.158.82]) by hub.freebsd.org (Postfix) with ESMTP id 9028337B400 for ; Tue, 28 Nov 2000 09:19:57 -0800 (PST) Received: from AAHDQ01-GI1.aa.com ([10.150.8.45]) by mailgate2.sabre.com (8.9.3/8.9.3) with SMTP id LAA23454 for ; Tue, 28 Nov 2000 11:19:54 -0600 (CST) Received: from USGWA1-Message_Server by AAHDQ01-GI1.aa.com with Novell_GroupWise; Tue, 28 Nov 2000 11:19:49 -0600 Message-Id: X-Mailer: Novell GroupWise 5.5.4 Date: Tue, 28 Nov 2000 11:19:16 -0600 From: "Lawrence Kreitzer" To: Subject: unknown0 > unknown0: at port 0xa00-0xa1f irq 3 drq1 = on ISA0 This agrees with the IRQ and DMA I have set using the CFG3118 utiity from = Olicom. Having browsed the tokenring mailing list archive, I have seen comments = that the ISA cards have had support dropped, to be replaced later, after = the PCI card drivers came out. I hope this is not the case and that = instead I am doing something stupidly wrong. Conversely, must I do a = MAKEDEV? (which I have already tried to no success, because the code = doesn't have any references to oltr in it) or even a mknod ? If so, = could someone provide me with the parameters for it ? I appreciate y'all (as they say down here in Texas) shedding some light on = this for me. Thanks ! Lawrence Kreitzer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-tokenring" in the body of the message From owner-freebsd-tokenring Thu Nov 30 9: 6: 9 2000 Delivered-To: freebsd-tokenring@freebsd.org Received: from mailgate2.sabre.com (mailgate2.sabre.com [144.9.158.82]) by hub.freebsd.org (Postfix) with ESMTP id 10BCF37B401 for ; Thu, 30 Nov 2000 09:06:07 -0800 (PST) Received: from AAHDQ01-GI1.aa.com ([10.150.8.45]) by mailgate2.sabre.com (8.9.3/8.9.3) with SMTP id LAA22350 for ; Thu, 30 Nov 2000 11:05:58 -0600 (CST) Received: from USGWA1-Message_Server by AAHDQ01-GI1.aa.com with Novell_GroupWise; Thu, 30 Nov 2000 11:05:48 -0600 Message-Id: X-Mailer: Novell GroupWise 5.5.4 Date: Thu, 30 Nov 2000 11:05:27 -0600 From: "Lawrence Kreitzer" To: Subject: OC3139 won't insert Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-tokenring@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everyone, thanks in advance for taking a look at this and helping me = come up to speed on FBSD ...=20 I have a OC-3139 in my Dell Deskpro 133, 64MB memory, am running FBSD 4.1 = Release, have built a new kernel which finds the card on boot with =20 "oltr0: adapter self-test complete (status=3D0)" So far, so good. =20 BUT, afterwards, however, I get the following message repeatedy interrupti= ng whatever I am doing -=20 =20 "oltr0: ring insert (4Mbps - TPK)" Am I correct in assuming the card has not inserted itself into the network = ? (me, the master of the obvious ...) I know the card is not broken because it will attach to the network when I = boot from a DOS disk and load ODI drivers to attach to our Novell IPX = network. Do I need to enable IPX protocol ? If I ping the gateway, I get=20 =20 "TRlldTransmitFrame returned 1" and=20 "ping: sendto: host is down"=20 which doesn't suprise me, considering. Do I need to create a new kernel with some of the LINT options, i.e.=20 =20 OLTR_NO_BULLSEYE_MAC OLTR_NO_HAWKEYE_MAC=20 OLTR_NO_TMS_MAC ? Also, as a side issue, what are these specifying and under what circumstanc= es would one need to use them ? Thanks again for the help , I need it. Larry Kreitzer=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-tokenring" in the body of the message From owner-freebsd-tokenring Thu Nov 30 9:51: 6 2000 Delivered-To: freebsd-tokenring@freebsd.org Received: from otdel-1.org (Draculina.Otdel-1.ORG [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id 3395B37B6A7 for ; Thu, 30 Nov 2000 09:51:02 -0800 (PST) Received: by otdel-1.org (CommuniGate Pro PIPE 3.4b6) with PIPE id 610644; Thu, 30 Nov 2000 20:50:45 +0300 Date: Thu, 30 Nov 2000 20:50:33 +0300 From: Nikolai Saoukh To: Lawrence Kreitzer Cc: freebsd-tokenring@freebsd.org Subject: Re: OC3139 won't insert Message-ID: <20001130205033.A39114@otdel-1.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from Lawrence.Kreitzer@aa.com on Thu, Nov 30, 2000 at 11:05:27AM -0600 X-Mailer: CommuniGate Pro CLI mailer Sender: owner-freebsd-tokenring@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > "oltr0: ring insert (4Mbps - TPK)" > > Am I correct in assuming the card has not inserted itself into the network ? (me, the master of the obvious ...) No. It is on the ring. > Do I need to enable IPX protocol ? What for? > If I ping the gateway, I get > > "TRlldTransmitFrame returned 1" and > "ping: sendto: host is down" Is your gateway on the same ring? > Do I need to create a new kernel with some of the LINT options, i.e. > > OLTR_NO_BULLSEYE_MAC > OLTR_NO_HAWKEYE_MAC > OLTR_NO_TMS_MAC ? > > Also, as a side issue, what are these specifying and under what circumstances would one need to use them ? No, it just removes the unused microcode from kernel. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-tokenring" in the body of the message From owner-freebsd-tokenring Fri Dec 1 2: 3:38 2000 Delivered-To: freebsd-tokenring@freebsd.org Received: from otdel-1.org (Draculina.Otdel-1.ORG [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id 8474137B400 for ; Fri, 1 Dec 2000 02:03:32 -0800 (PST) Received: by otdel-1.org (CommuniGate Pro PIPE 3.4b6) with PIPE id 610690; Fri, 01 Dec 2000 13:03:31 +0300 Date: Fri, 1 Dec 2000 13:03:25 +0300 From: Nikolai Saoukh To: Lawrence Kreitzer Cc: freebsd-tokenring@freebsd.org Subject: Re: OC3139 won't insert Message-ID: <20001201130325.A41300@otdel-1.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from Lawrence.Kreitzer@aa.com on Thu, Nov 30, 2000 at 02:20:23PM -0600 X-Mailer: CommuniGate Pro CLI mailer Sender: owner-freebsd-tokenring@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Since you say the card is on the ring, it suggests to me that the "ring insert" message is just informational. If so, how can this (and others) be supressed or routed to null ? I'm logged-in as root (only because this is my learn-FBSD-machine). I would create another user account if it were helpful. Just switch to another console (ALT+F2, ALT+F3, ...). > As for the ping, yes, the device (a Cisco router) is on the current ring. I know it is running because I have another machine (win98) that pings it successfully. I would recommend to switch to 4.2-RELEASE and before building new kernel apply 'if_oltr.diffs' patch (attached). This patch is for owners of OC-3540 & OC-3139 only. As for inability to ping cisco, try the patch 'if_ether.c.diffs' (attached). Hope it helps --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="oltr.diffs" --- src/sys/contrib/dev/oltr/if_oltr.c Tue Oct 10 04:47:12 2000 +++ src/sys/contrib/dev/oltr/if_oltr.c.new Mon Oct 23 20:49:53 2000 @@ -290,5 +290,5 @@ { int i, s, rc = 0, rid, - scratch_size, work_size; + scratch_size; int media = IFM_TOKEN|IFM_TOK_UTP16; u_long command; @@ -340,24 +340,4 @@ } - switch(sc->config.type) { - case TRLLD_ADAPTER_PCI4: /* OC-3139 */ - work_size = 32 * 1024; - break; - case TRLLD_ADAPTER_PCI7: /* OC-3540 */ - work_size = 256; - break; - default: - work_size = 0; - } - - if (work_size) { - if ((sc->work_memory = malloc(work_size, M_DEVBUF, M_NOWAIT)) == NULL) { - device_printf(dev, "failed to allocate work memory.\n"); - } else { - TRlldAddMemory(sc->TRlldAdapter, sc->work_memory, - vtophys(sc->work_memory), work_size); - } - } - /* * Allocate RX/TX Pools @@ -546,5 +526,5 @@ oltr_pci_attach(pcici_t config_id, int unit) { - int i, s, rc = 0, scratch_size, work_size; + int i, s, rc = 0, scratch_size; int media = IFM_TOKEN|IFM_TOK_UTP16; u_long command; @@ -601,24 +581,4 @@ } - switch(sc->config.type) { - case TRLLD_ADAPTER_PCI4: /* OC-3139 */ - work_size = 32 * 1024; - break; - case TRLLD_ADAPTER_PCI7: /* OC-3540 */ - work_size = 256; - break; - default: - work_size = 0; - } - - if (work_size) { - if ((sc->work_memory = malloc(work_size, M_DEVBUF, M_NOWAIT)) == NULL) { - printf("oltr%d: failed to allocate work memory.\n", unit); - } else { - TRlldAddMemory(sc->TRlldAdapter, sc->work_memory, - vtophys(sc->work_memory), work_size); - } - } - /* * Allocate RX/TX Pools @@ -844,4 +804,5 @@ struct ifmedia *ifm = &sc->ifmedia; int poll = 0, i, rc = 0, s; + int work_size; /* @@ -881,4 +842,24 @@ sc->state = OL_INIT; + switch(sc->config.type) { + case TRLLD_ADAPTER_PCI4: /* OC-3139 */ + work_size = 32 * 1024; + break; + case TRLLD_ADAPTER_PCI7: /* OC-3540 */ + work_size = 256; + break; + default: + work_size = 0; + } + + if (work_size) { + if ((sc->work_memory = malloc(work_size, M_DEVBUF, M_NOWAIT)) == NULL) { + printf("oltr%d: failed to allocate work memory (%d octets).\n", sc->unit, work_size); + } else { + TRlldAddMemory(sc->TRlldAdapter, sc->work_memory, + vtophys(sc->work_memory), work_size); + } + } + switch(IFM_SUBTYPE(ifm->ifm_media)) { case IFM_AUTO: @@ -993,5 +974,5 @@ return; default: - printf("oltr%d: unkown open error (%d)\n", sc->unit, rc); + printf("oltr%d: unknown open error (%d)\n", sc->unit, rc); (void)splx(s); return; --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_ether.c.diffs" --- src/sys/netinet/if_ether.c.orig Sun Nov 5 14:26:31 2000 +++ src/sys/netinet/if_ether.c Sun Nov 5 14:26:55 2000 @@ -292,5 +292,5 @@ register struct ether_arp *ea; struct sockaddr sa; - static u_char llcx[] = { 0x82, 0x40, LLC_SNAP_LSAP, LLC_SNAP_LSAP, + static u_char llcx[] = { LLC_SNAP_LSAP, LLC_SNAP_LSAP, LLC_UI, 0x00, 0x00, 0x00, 0x08, 0x06 }; @@ -306,5 +306,4 @@ (void)memcpy(sa.sa_data, etherbroadcastaddr, 6); (void)memcpy(sa.sa_data + 6, enaddr, 6); - sa.sa_data[6] |= TR_RII; sa.sa_data[12] = TR_AC; sa.sa_data[13] = TR_LLC_FRAME; --yrj/dFKFPuw6o+aM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-tokenring" in the body of the message