[realtek] Forcing 10 MHz at boot time

Dieter Jansen dieter@tplex.com.au
Tue, 6 Mar 2001 22:02:07 +1030


Hi Folks,

Forgive me for asking this again, but there was no response
last time, and I'm sure someone there *must* know the answer
to this.

I need to force the rtl8139 driver v1.07 to 10MHz at boot but
I've been unable to do so.  I can manually do:

  mii-diag -F 10baseT eth0
  mii-diag -F 10baseT eth1

What I tried instead was to add the following to modules.conf:

  alias eth0 rtl8139
  alias eth1 rtl8139
  options rtl8139 full_duplex=1,0 options=0x40,0x40 debug=2

but what I got is:

  eth0: RealTek RTL8139 Fast Ethernet at 0xa800, IRQ 12, xx:xx
  eth0: Media type forced to Full Duplex.
  eth1: RealTek RTL8139 Fast Ethernet at 0xa400, IRQ 10, xx:xx
  eth0: Setting 100mbps full-duplex based on auto-negotiated
    partner ability 40a1.
  eth0: rtl8129_open() ioaddr 0xa800 IRQ 12 GP Pins 00 full-duplex.
  eth1: Setting 100mbps half-duplex based on auto-negotiated
    partner ability 40a1.
  eth1: rtl8129_open() ioaddr 0xa400 IRQ 10 GP Pins 00 half-duplex.

This suggest that the full_duplex parameters worked, but that
the options values weren't quite right: well, they were just
a guess, really ;-)

I've looked at the source code a bit, but haven't been able
to sort out the correct values.  Can someone provide a bit
of guidance on what the modules.conf entry should look like,
and in particular what the option value should be?

Please email me a copy of any replies, as I'm not subscribed
to the list.

Cheers, Dieter.

--
Dieter Jansen                                   Tetraplex Pty Ltd
dieter@tplex.com.au                      http://www.tplex.com.au/