public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 3c900 boot-time kernel commandline parameters in 2.4.25
@ 2005-10-19 10:52 Karel Kulhavy
  2005-10-19 15:57 ` Randy.Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Kulhavy @ 2005-10-19 10:52 UTC (permalink / raw)
  To: linux-kernel

How do I tell Linux kernel 2.4.25 on boot-time kernel commandline to
switch my eth0
-----------------------------------------------------------------------
  Bus  1, device   3, function  0:
    Ethernet controller: 3Com Corporation 3c900 Combo [Boomerang] (rev
0).
      IRQ 11.
      Master Capable.  Latency=32.  Min Gnt=3.Max Lat=8.
      I/O at 0xc000 [0xc03f].
-----------------------------------------------------------------------

to TP transceiver and 10/100 autonegotiation?

I looked into Documentation/00-INDEX and into kernel-parameters.txt and
found just 

"        ether=          [HW,NET] Ethernet cards parameters (irq,
                        base_io_addr, mem_start, mem_end, name.
                        (mem_start is often overloaded to mean something
                        different and driver-specific).
"

which neither doesn't answer my question neither point to any
documentation where my question could be answered.

CL<

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

* Re: 3c900 boot-time kernel commandline parameters in 2.4.25
@ 2005-10-19 11:23 Nick Warne
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Warne @ 2005-10-19 11:23 UTC (permalink / raw)
  To: Karel Kulhavy; +Cc: linux-kernel

> How do I tell Linux kernel 2.4.25 on boot-time kernel commandline to
> switch my eth0
> ~
> to TP transceiver and 10/100 autonegotiation?

Not really a kernel question.  Do a 'man mii-tool' or 'man ethtool'.

Either of those allow NIC tweaking.

I run ethtool to force 100MB FD in rc.local - you can do similar depending on 
your style/distro.

Nick
-- 
http://sourceforge.net/projects/quake2plus

"Person who say it cannot be done should not interrupt person doing it."
-Chinese Proverb


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

* Re: 3c900 boot-time kernel commandline parameters in 2.4.25
  2005-10-19 10:52 3c900 boot-time kernel commandline parameters in 2.4.25 Karel Kulhavy
@ 2005-10-19 15:57 ` Randy.Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy.Dunlap @ 2005-10-19 15:57 UTC (permalink / raw)
  To: Karel Kulhavy; +Cc: linux-kernel

On Wed, 19 Oct 2005, Karel Kulhavy wrote:

> How do I tell Linux kernel 2.4.25 on boot-time kernel commandline to
> switch my eth0
> -----------------------------------------------------------------------
>   Bus  1, device   3, function  0:
>     Ethernet controller: 3Com Corporation 3c900 Combo [Boomerang] (rev
> 0).
>       IRQ 11.
>       Master Capable.  Latency=32.  Min Gnt=3.Max Lat=8.
>       I/O at 0xc000 [0xc03f].
> -----------------------------------------------------------------------
>
> to TP transceiver and 10/100 autonegotiation?
>
> I looked into Documentation/00-INDEX and into kernel-parameters.txt and
> found just
>
> "        ether=          [HW,NET] Ethernet cards parameters (irq,
>                         base_io_addr, mem_start, mem_end, name.
>                         (mem_start is often overloaded to mean something
>                         different and driver-specific).
> "
>
> which neither doesn't answer my question neither point to any
> documentation where my question could be answered.

Yes, there are lots of drivers where it is necessary to look
in the driver source file to determine actual parameter usage.

For the 3c59x driver, mem_start is overloaded (as in the doc above) as:


0x8000			debug level 7
0x4000			debug level 2
0x0400			enable WOL
0x0200			full duplex
0x0010			bus master
0x000m			media override value, index into media_table:

0: { "10baseT",   Media_10TP,0x08, XCVR_10base2, (14*HZ)/10},
1: { "10Mbs AUI", Media_SQE, 0x20, XCVR_Default, (1*HZ)/10},
2: { "undefined", 0,			0x80, XCVR_10baseT, 10000},
3: { "10base2",   0,			0x10, XCVR_AUI,	(1*HZ)/10},
4: { "100baseTX", Media_Lnk, 0x02, XCVR_100baseFx, (14*HZ)/10},
5: { "100baseFX", Media_Lnk, 0x04, XCVR_MII,	(14*HZ)/10},
6: { "MII",		 0,		0x41, XCVR_10baseT, 3*HZ },
7: { "undefined", 0,			0x01, XCVR_10baseT, 10000},
8: { "Autonegotiate", 0,		0x41, XCVR_10baseT, 3*HZ},
9: { "MII-External",	 0,		0x41, XCVR_10baseT, 3*HZ },
10: { "Default",	 0,		0xFF, XCVR_10baseT, 10000},

so don't use 2 or 7 for the media override value.
In your case, I guess you want mem_start=8.

-- 
~Randy

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

end of thread, other threads:[~2005-10-19 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19 10:52 3c900 boot-time kernel commandline parameters in 2.4.25 Karel Kulhavy
2005-10-19 15:57 ` Randy.Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2005-10-19 11:23 Nick Warne

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