Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 01:12:09 +0930 (CST)
From:      Matthew Thyer <matt@camtech.net.au>
To:        wpaul@ctr.columbia.edu
Cc:        current@FreeBSD.org
Subject:   FreeBSD-CURRENT rl driver not auto-negotiating ?
Message-ID:  <Pine.BSF.4.10.9909130050450.453-300000@localhost>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Bill,

Firstly, a great job on the rl driver (I'm amazed that you have made
it this good considering the hardware).

Anyway my problem is that since the rl driver has required "controller
miibus0" in the kernel it has not auto-negotiated its network link
properly for me (though I do appreciate the fast kernel probe time ;).

It seems to be defaulting to full duplex now when it wasn't before
the "controller miibus0" stuff went in.

I find that I now have to change my /etc/rc.conf line
from: ifconfig_rl0="inet 10.0.0.27 netmask 255.0.0.0"
to:   ifconfig_rl0="inet 10.0.0.27 netmask 255.0.0.0 media 10BaseT/UTP
-mediaopt full-duplex"

Interestingly "mediaopt half-duplex" doesn't work with error:
"ifconfig: SIOCSIFMEDIA: Device not configured"

Is this all expected behaviour ?

If I dont do the above, I get terrible ftp speeds on my local 10BaseT/UTP
network (3 KB/sec instead of the 1 MB/sec I am used to).

I have a 3COM Linkbuilder hub and two machines.
My old machine is a P150 with an NE2000 clone.
My new machine is a PII Celeron 450 with a RealTek 8139 (a SureCom
Networks SN5000 card  - but that wont mean anything as I bought it
because it wasn't a RealTek when my friend bought it... it was a
VIA Rhine then.... I was really trying to avoid a RealTek!!).

My kernel from before the move to the "controller miibus0" stuff works
fine without any media options.

Dmesg and kernel config file attached.

Thanks in advance.

CCd to the list for the benefit of others.

-- 
/=======================================================================\
| Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au |
\=======================================================================/
"If it is true that our Universe has a zero net value for all conserved
quantities, then it may simply be a fluctuation of the vacuum of some
larger space in which our Universe is imbedded. In answer to the
question of why it happened, I offer the modest proposal that our
Universe is simply one of those things which happen from time to time."
 E. P. Tryon   from "Nature" Vol.246 Dec.14, 1973

[-- Attachment #2 --]
Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Sun Sep 12 23:04:55 CST 1999
    matt@localhost:/usr/src/sys/compile/MATT
Timecounter "i8254"  frequency 1193182 Hz
CPU: Celeron (463.91-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x660  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 67043328 (65472K bytes)
avail memory = 62025728 (60572K bytes)
Preloaded elf kernel "kernel" at 0xc02a8000.
VESA: v2.0, 2304k memory, flags:0x0, mode table:0xc00c6b5d (c0006b5d)
VESA: Tseng Labs ET6000
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
ata-pci0: <Intel PIIX4 IDE controller> at device 7.1 on pci0
ata-pci0: Busmastering DMA supported
ata0 at 0x01f0 irq 14 on ata-pci0
ata1 at 0x0170 irq 15 on ata-pci0
chip1: <UHCI USB controller> irq 11 at device 7.2 on pci0
intpm0: <Intel 82371AB Power management controller> at device 7.3 on pci0
intpm0: I/O mapped 5000
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 4000 
rl0: <RealTek 8139 10/100BaseTX> irq 11 at device 9.0 on pci0
rl0: Ethernet address: 00:00:21:c0:5e:c9
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga-pci0: <Tseng Labs ET6000 graphics accelerator> at device 13.0 on pci0
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> flags 0x4 irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <12 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
joy0 at port 0x201 on isa0
joy0: joystick
unknown0: <Reserved> on isa0
unknown1: <Game> on isa0
pcm0: <SB16 PnP> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
unknown2: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 10 on isa0
ata1: unwanted interrupt 1 status = ff
ata0: master: setting up UDMA2 mode on PIIX4 chip OK
ad0: <IBM-DHEA-36480/HE8OA40F> ATA-3 disk at ata0 as master
ad0: 6197MB (12692736 sectors), 12592 cyls, 16 heads, 63 S/T, 512 B/S
ad0: piomode=4, dmamode=2, udmamode=2
ad0: 16 secs/int, 0 depth queue, DMA mode
Creating DISK ad0
Creating DISK wd0
atapi: piomode=ata1: unwanted interrupt 2 status = 50
4, dmamode=2, udmamode=2
ata1: slave: setting up UDMA2 mode on PIIX4 chip OK
atapi: DMA transfer mode set
acd0: <ATAPI CD-ROM DRIVE 32X MAXIMUM/323P> CDROM drive at ata1 as slave 
acd0: drive speed 4687KB/sec, 120KB cache, DMA
acd0: supported read types: CD-R, CD-RW, CD-DA
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
changing root device to wd0s2a

[-- Attachment #3 --]
# $FreeBSD: MATT,v 14.1 1999/09/12 22:59:00 +09:30 matt Exp $
# based on: $FreeBSD: src/sys/i386/conf/LINT,v 1.642 1999/09/11 16:05:48 gibbs Exp $
#
machine		i386
ident		"MATT"
maxusers	60
options		INCLUDE_CONFIG_FILE	# Include this file in kernel
cpu		I686_CPU
options		CPU_FASTER_5X86_FPU	# Faster FPU exception handler
options		NO_F00F_HACK		# Disable Pentium F00F hack
# COMPATIBILITY OPTIONS
options		COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options		USER_LDT		# Let processes manipulate their local descriptor table (needed for WINE)
options		SYSVSHM			# Enable SYSV style shared memory
options		SYSVSEM			# Enable SYSV style semaphores
options		SYSVMSG			# Enable SYSV style message queues
options		MD5			# Include a MD5 routine in the kernel
# DEBUGGING OPTIONS
options		DDB			# Enable the kernel debugger
options		UCONSOLE		# Allow users to grab the console
options		USERCONFIG		# Boot -c editor
options		VISUAL_USERCONFIG	# Visual boot -c editor
# NETWORKING OPTIONS
options		INET			# Internet communications protocols
# Network interfaces:
pseudo-device	ether			# Generic Ethernet
pseudo-device	loop			# Network loopback device
pseudo-device	tun			# Tunnel driver(user process ppp)
pseudo-device	streams			# SysVR4 STREAMS emulation
# FILESYSTEM OPTIONS
options		FFS			# Berkeley Fast Filesystem
options		FFS_ROOT		# FFS usable as root device
options		NSWAPDEV=4		# Allow this many swap-devices
options		SOFTUPDATES		# SoftUpdates aka delayed writes
controller	pci0
controller	ncr0
options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L
# SCSI DEVICE CONFIGURATION (CAM SCSI)
controller	scbus0	at ncr0		# Base SCSI code
disk		da0	at scbus0 target 0
disk		da1	at scbus0 target 1
disk		da2	at scbus0 target 2
disk		da3	at scbus0 target 3
disk		da4	at scbus0 target 4
disk		da5	at scbus0 target 5
disk		da6	at scbus0 target 6
options		SCSI_DELAY=500		# Only wait 0.5 seconds for SCSI
# MISCELLANEOUS DEVICES AND OPTIONS
pseudo-device	pty			# Pseudo ttys
pseudo-device	gzip			# Exec gzipped a.out's
pseudo-device	vn	4		# Vnode driver (turns a file into a device)
pseudo-device	bpf			# Berkeley packet filter
options		PPP_FILTER		# enable bpf filtering (needs bpf)
options		MSGBUF_SIZE=81920	# Size of the kernel message buffer
# HARDWARE DEVICE CONFIGURATION
controller	isa0
options		AUTO_EOI_1		# Save 0.7-1.25 usec for each interrupt
controller	pnp0			# Enable PnP support in the kernel
controller	atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		vga0	at isa? port ? conflicts
pseudo-device	splash			# Splash screen at start up!
device		sc0	at isa?
options		MAXCONS=12		# Number of virtual consoles
options		VGA_WIDTH90		# Support 90 column modes
options		SC_HISTORY_SIZE=800	# Number of history buffer lines
options		SC_DISABLE_REBOOT	# Disable Ctrl-Alt-Del reboot
options		VESA
device		npx0	at nexus? port IO_NPX flags 0x0 irq 13
controller	ata0
device		atadisk0		# ATA disk drives
device		atapicd0		# ATAPI CDROM drives
#device		wcd0
#controller	wdc0	at isa? port IO_WD1 irq 14 flags 0xa0ffa0ff
#disk		wd0	at wdc0 drive 0
#controller	wdc1	at isa? port IO_WD2 irq 15 flags 0xa0ffa0ff
controller	fdc0	at isa? port IO_FD1 irq 6 drq 2
disk		fd0	at fdc0 drive 0
device		psm0	at atkbdc? irq 12 flags 0x04
device		ppc0	at isa? port? irq 7
controller	ppbus0
device		lpt0	at ppbus?
device		plip0	at ppbus?
device		ppi0	at ppbus?
device		sio0	at isa? port IO_COM1 irq 4 flags 0x10
device		sio1	at isa? port IO_COM2 irq 3
options		CONSPEED=19200		# Speed for serial console (default 9600)
controller	miibus0
device		rl0
device		apm0	at nexus?
controller	smbus0
controller	intpm0
device		smb0	at smbus?
device		joy0	at isa? port IO_GAME
device		pcm0
#controller	snd0
#device		sb0	at isa? port 0x220 irq 5 drq 1
#device		sbxvi0	at isa? drq 5
#device		sbmidi0	at isa? port 0x330
#device		opl0	at isa? port 0x388

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909130050450.453-300000>