Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* How do you force an Ethernet mode ???
@ 1999-08-12  3:13 Segrest, Bob
  1999-08-12  3:30 ` B. James Phillippe
  0 siblings, 1 reply; 6+ messages in thread
From: Segrest, Bob @ 1999-08-12  3:13 UTC (permalink / raw)
  To: axp-list

Greetings,

I have a 10/100baseT Ethernet card (tulip, DE500) in my system that appears
to be setup in auto detect mode.  Unfortunately it is coming up in 100baseT
mode and I need it to start in 10baseT mode.  How do I force the interface
to come up in 10baseT mode ???

Bob Segrest



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do you force an Ethernet mode ???
  1999-08-12  3:13 Segrest, Bob
@ 1999-08-12  3:30 ` B. James Phillippe
  1999-08-12 14:38   ` Michal Jaegermann
  0 siblings, 1 reply; 6+ messages in thread
From: B. James Phillippe @ 1999-08-12  3:30 UTC (permalink / raw)
  To: axp-list

On Wed, 11 Aug 1999, Segrest, Bob wrote:

> Greetings,
> 
> I have a 10/100baseT Ethernet card (tulip, DE500) in my system that
> appears to be setup in auto detect mode.  Unfortunately it is coming up
> in 100baseT mode and I need it to start in 10baseT mode.  How do I force
> the interface to come up in 10baseT mode ???

If you are using tulip.c, you can pass parameters on the insmod line as
follows (from the source):

#define MAX_UNITS 8
/* Used to pass the full-duplex flag, etc. */
static int full_duplex[MAX_UNITS] = {0, };
static int options[MAX_UNITS] = {0, };
static int mtu[MAX_UNITS] = {0, };

/*  The possible media types that can be set in options[] are: */
static const char * const medianame[] = {
        "10baseT", "10base2", "AUI", "100baseTx",
        "10baseT-FD", "100baseTx-FD", "100baseT4", "100baseFx",
        "100baseFx-FD", "MII 10baseT", "MII 10baseT-FD", "MII",
        "10baseT(forced)", "MII 100baseTx", "MII 100baseTx-FD", "MII
100baseT4",};

...

MODULE_PARM(debug, "i");
MODULE_PARM(max_interrupt_work, "i");
MODULE_PARM(reverse_probe, "i");
MODULE_PARM(rx_copybreak, "i");
MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM(full_duplex, "1-" __MODULE_STRING(MAX_UNITS) "i");

There are similar arguments for the de4x5 driver, well documented in the
comments within the driver source (search for "Command  line arguments"
(note the *two* spaces between "Command" and "line").

-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: How do you force an Ethernet mode ???
@ 1999-08-12 10:33 Segrest, Bob
  1999-08-12 13:55 ` James Bremer
  0 siblings, 1 reply; 6+ messages in thread
From: Segrest, Bob @ 1999-08-12 10:33 UTC (permalink / raw)
  To: axp-list

I did try using ifconfig...

> ifconfig eth0 mode 10baseT

It complained about the device driver not supporting this option or
something like that.  Shouldn't this work, or are you suggesting I need to
modify the device driver ?

Bob Segrest

-----Original Message-----
From: B. James Phillippe [mailto:bryan@terran.org]
Sent: Wednesday, August 11, 1999 11:31 PM
To: axp-list
Subject: Re: How do you force an Ethernet mode ???


On Wed, 11 Aug 1999, Segrest, Bob wrote:

> Greetings,
> 
> I have a 10/100baseT Ethernet card (tulip, DE500) in my system that
> appears to be setup in auto detect mode.  Unfortunately it is coming up
> in 100baseT mode and I need it to start in 10baseT mode.  How do I force
> the interface to come up in 10baseT mode ???

If you are using tulip.c, you can pass parameters on the insmod line as
follows (from the source):

#define MAX_UNITS 8
/* Used to pass the full-duplex flag, etc. */
static int full_duplex[MAX_UNITS] = {0, };
static int options[MAX_UNITS] = {0, };
static int mtu[MAX_UNITS] = {0, };

/*  The possible media types that can be set in options[] are: */
static const char * const medianame[] = {
        "10baseT", "10base2", "AUI", "100baseTx",
        "10baseT-FD", "100baseTx-FD", "100baseT4", "100baseFx",
        "100baseFx-FD", "MII 10baseT", "MII 10baseT-FD", "MII",
        "10baseT(forced)", "MII 100baseTx", "MII 100baseTx-FD", "MII
100baseT4",};

...

MODULE_PARM(debug, "i");
MODULE_PARM(max_interrupt_work, "i");
MODULE_PARM(reverse_probe, "i");
MODULE_PARM(rx_copybreak, "i");
MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM(full_duplex, "1-" __MODULE_STRING(MAX_UNITS) "i");

There are similar arguments for the de4x5 driver, well documented in the
comments within the driver source (search for "Command  line arguments"
(note the *two* spaces between "Command" and "line").

-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do you force an Ethernet mode ???
  1999-08-12 10:33 Segrest, Bob
@ 1999-08-12 13:55 ` James Bremer
  0 siblings, 0 replies; 6+ messages in thread
From: James Bremer @ 1999-08-12 13:55 UTC (permalink / raw)
  To: axp-list

Did you try "show device" from the SRM console?  Try typing
"show ewb0_mode" or "show ewa0_mode" from the SRM
console to see what the bios settings are for your ethernet
card(s). My AlphaStation 200 was set for auto that kept defaulting
to 10base2.  I had to"set ewb0_mode 10baseT" in SRM to get it
to use the proper interface.

This may or may not apply to you, but it's a thought...


> I did try using ifconfig...
>
> > ifconfig eth0 mode 10baseT
>
> It complained about the device driver not supporting this option or
> something like that.  Shouldn't this work, or are you suggesting I need to
> modify the device driver ?
>
> Bob Segrest
>
> -----Original Message-----
> From: B. James Phillippe [mailto:bryan@terran.org]
> Sent: Wednesday, August 11, 1999 11:31 PM
> To: axp-list
> Subject: Re: How do you force an Ethernet mode ???
>
>
> On Wed, 11 Aug 1999, Segrest, Bob wrote:
>
> > Greetings,
> >
> > I have a 10/100baseT Ethernet card (tulip, DE500) in my system that
> > appears to be setup in auto detect mode.  Unfortunately it is coming up
> > in 100baseT mode and I need it to start in 10baseT mode.  How do I force
> > the interface to come up in 10baseT mode ???
>
> If you are using tulip.c, you can pass parameters on the insmod line as
> follows (from the source):
>
> #define MAX_UNITS 8
> /* Used to pass the full-duplex flag, etc. */
> static int full_duplex[MAX_UNITS] = {0, };
> static int options[MAX_UNITS] = {0, };
> static int mtu[MAX_UNITS] = {0, };
>
> /*  The possible media types that can be set in options[] are: */
> static const char * const medianame[] = {
>         "10baseT", "10base2", "AUI", "100baseTx",
>         "10baseT-FD", "100baseTx-FD", "100baseT4", "100baseFx",
>         "100baseFx-FD", "MII 10baseT", "MII 10baseT-FD", "MII",
>         "10baseT(forced)", "MII 100baseTx", "MII 100baseTx-FD", "MII
> 100baseT4",};
>
> ...
>
> MODULE_PARM(debug, "i");
> MODULE_PARM(max_interrupt_work, "i");
> MODULE_PARM(reverse_probe, "i");
> MODULE_PARM(rx_copybreak, "i");
> MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
> MODULE_PARM(full_duplex, "1-" __MODULE_STRING(MAX_UNITS) "i");
>
> There are similar arguments for the de4x5 driver, well documented in the
> comments within the driver source (search for "Command  line arguments"
> (note the *two* spaces between "Command" and "line").
>
> -bp
> --
> # bryan at terran dot org
> # http://www.terran.org/~bryan
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do you force an Ethernet mode ???
  1999-08-12  3:30 ` B. James Phillippe
@ 1999-08-12 14:38   ` Michal Jaegermann
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1999-08-12 14:38 UTC (permalink / raw)
  To: axp-list

B. James Phillippe wrote:
> 
> If you are using tulip.c, you can pass parameters on the insmod line as
> follows (from the source):
> 
> #define MAX_UNITS 8
> /* Used to pass the full-duplex flag, etc. */
> static int full_duplex[MAX_UNITS] = {0, };
> static int options[MAX_UNITS] = {0, };
> static int mtu[MAX_UNITS] = {0, };
> 
> /*  The possible media types that can be set in options[] are: */
> static const char * const medianame[] = {
>         "10baseT", "10base2", "AUI", "100baseTx",
>         "10baseT-FD", "100baseTx-FD", "100baseT4", "100baseFx",
>         "100baseFx-FD", "MII 10baseT", "MII 10baseT-FD", "MII",
>         "10baseT(forced)", "MII 100baseTx", "MII 100baseTx-FD", "MII
> 100baseT4",};
> ...
> 
> MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
               ^^^^^^^
               ^^^^^^^

It may be not immedately clear but that code fragment really means that
an argument name is "options" and, from the sources once again but
another part, its parameter is an index to the table above.  So to use
"10baseT(forced)" you do 'insmod tulip options=12' or, much better, you
put in /etc/conf.modules a line like that:

options tulip options=12 debug=1

and whatever else which is recognized and you feel like it.  Yes,
"options" twice.  The first one is a part of a syntax of conf.modules;
the second one happens to be a name of a tulip module argument.

If you want to argue that this is not the best possible syntax then I
agree. :-)

  Michal


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do you force an Ethernet mode ???
@ 1999-08-12 14:47 Larry Sendlosky
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Sendlosky @ 1999-08-12 14:47 UTC (permalink / raw)
  To: James Bremer; +Cc: axp-list

linux doesn't "look" at the SRM settings for the EWx devices


> Did you try "show device" from the SRM console?  Try typing
> "show ewb0_mode" or "show ewa0_mode" from the SRM
> console to see what the bios settings are for your ethernet
> card(s). My AlphaStation 200 was set for auto that kept defaulting
> to 10base2.  I had to"set ewb0_mode 10baseT" in SRM to get it
> to use the proper interface.
> 
> This may or may not apply to you, but it's a thought...



______________________________________________________________________
 Larry Sendlosky			 	            AMT
 larry@scrugs.lkg.dec.com (978) 506-6640                    Compaq
----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-08-12 14:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-12 14:47 How do you force an Ethernet mode ??? Larry Sendlosky
  -- strict thread matches above, loose matches on Subject: below --
1999-08-12 10:33 Segrest, Bob
1999-08-12 13:55 ` James Bremer
1999-08-12  3:13 Segrest, Bob
1999-08-12  3:30 ` B. James Phillippe
1999-08-12 14:38   ` Michal Jaegermann

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