Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Kristoffer.Rose@ens-lyon.fr
To: axp-list@redhat.com, debian-alpha@lists.debian.org,
	Donald Becker <becker@cesdis1.gsfc.nasa.gov>
Cc: Laurent Forat <forat@escdirect.fr>,
	Pierre Raynaud <praynaud@zeusesc.supelec.fr>,
	Loic.Prylli@ens-lyon.fr
Subject: alpha 2.0.34 kernel patch and TULIP driver - a solution
Date: Tue, 16 Jun 1998 19:20:59 +0200 (CEST)	[thread overview]
Message-ID: <13702.40651.866702.173580@sauternes.ens-lyon.fr> (raw)
In-Reply-To: <Pine.LNX.3.95.980616014347.24681B-100000@notfoo.res.cmu.edu>

Dear All,

I've bothered everybody with my troubles with my PWS500a (Miata) and the
build-in tulip interface (and any kernel).

Now I'd like to tell you what solution finally worked for me, thanks to
Loic.Prylli@ENS-Lyon.FR, as it manifests itself for the linux-2.0.34.


CONFIGURATION: PWS500a (Miata) with tulip driver for (from /proc/pci):

  Bus  0, device   3, function  0:
    Ethernet controller: DEC DC21142 (rev 48).
      Medium devsel.  Fast back-to-back capable.  IRQ 24.  Master Capable.  Latency=32.  Min Gnt=20.Max Lat=40.
      I/O at 0x8800.
      Non-prefetchable 32 bit memory at 0xb000000.


PROBLEM: the tulip driver would not work...with 2.0.33 (and 2.0.103) it
gave me lots of transmit/receive failed errors and chose a bad interface
after a while, getting completely stuck.


SOLUTION: Patch the driver such that (it compiles and) insist on using the
user-requested interface.  It is beyond me why on earth would it ever not do
that - auto-detection should be an option, not forced!


INSTRUCTIONS for Linux 2.0.34:

1. Get the patched kernel sources as usual:

   <URL: ftp://gatekeeper.dec.com/pub/Digital/Linux-Alpha/Kernels/alpha-sources-2.0.34-0.1.tar.gz>

   (or get a pristine linux-2.0.34 and apply alpha-patches-2.0.34-0.1.gz from
   the same place yourself).

2. Get the miata-patched tulip.c (based on version 0.88) from

   <URL: ftp://ftp.ens-lyon.fr/pub/users/LIP/krisrose/Debian/Alpha/miata/tulip.c-0.88+loic>

   (and name it drivers/net/tulip.c and compile as you usually do, with
   tulip as a module).

3. Experiment with different "options=n" arguments when loading the tulip
   driver, and with different ports and cables to your hub...

   For me one port (of two) worked on the hub, with one cable (of three),
   and with the module load command

	insmod tulip options=11

   The hub is a plain 10baseT hub.

Cheers,
	Kristoffer

Encl: Loic's patch to tulip 0.88 making it respect user options more than
      just for a single try.

===========================================================================
--- tulip.c-0.88        Mon May 25 04:04:01 1998
+++ tulip.c-0.88+loic   Sun Jun 14 01:47:14 1998
@@ -1336,11 +1336,14 @@
        }
        /* Set the timer to switch to check for link beat and perhaps switch
           to an alternate media type. */
+if (tp->medialock) printk("Loic's patch active: remaining with user media type.\n");
+else {
        init_timer(&tp->timer);
        tp->timer.expires = RUN_AT(5*HZ);
        tp->timer.data = (unsigned long)dev;
        tp->timer.function = tulip_tbl[tp->chip_id].media_timer;
        add_timer(&tp->timer);
+}
 
        return 0;
 }
===========================================================================

Kristoffer Høgsbro Rose, Ph.D., prof.associé  <Kristoffer.Rose@ENS-Lyon.FR>
Laboratoire de l'Informatique du Parallélisme  équipe PLUME, bureau LR5-026
Ecole Normale Supérieure de Lyon; 46, Allée d'Italie; F-69364 Lyon 07 cedex
phone: +33(0)4 7272 8642; fax:...8080    <http://www.ens-lyon.fr/~krisrose>


  parent reply	other threads:[~1998-06-16 17:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-13 21:17 Announcement 1 - we're still here! jrp
1998-06-14  0:42 ` Andreas Haumer
1998-06-16  0:57   ` jrp
1998-06-16  5:46     ` 2.0.34 kernel patch Ross A. Knepper
1998-06-16  7:58       ` warp
1998-06-16 17:20       ` Kristoffer.Rose [this message]
1998-06-16 19:15         ` alpha 2.0.34 kernel patch and TULIP driver - a solution Kristoffer.Rose
1998-06-17  6:18           ` Kris Boulez
1998-06-16 15:52     ` 2.0.34 alpha-ready [was: Re: Announcement 1 - we're still here!] Kristoffer.Rose
1998-06-16 17:52       ` Matti Aarnio
1998-06-17  8:27         ` Harald Koenig
     [not found]     ` <Pine.LNX.3.95.980616014347.24681B-100000@notfoo.res.cmu.ed u>
1998-06-19  9:28       ` 2.0.34 kernel patch Huw Davies
1998-06-19 11:22         ` Paul Tomblin
1998-06-19 13:07         ` Christopher Curtis
1998-06-23  2:57           ` Huw Davies
1998-06-23  6:04             ` Huw Davies
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox