Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Network adapter using sk driver needs a kick after reboots

0 views
Skip to first unread message

Laurence Tratt

unread,
Aug 4, 2003, 1:26:49 PM8/4/03
to
Synopsis: network adapter using sk driver needs a kick after reboots.
Severity: serious
Fix: Manual configuration of network settings.


I have an Asus P4P800 motherboard with a chip which uses the sk driver. On
the install disks, this works fine: the adapter connects to the network and
dhcp works fine. Upon all subsequent reboots of the installed OS, dhcp fails
to communicate with the network, and a simple forced ifconfig allocation of
IP address to the adapter doesn't work. No activity can be detected on the
network hub to which the adapter is connected. A subsequent "media
autoselect" after IP allocation gets things working again.

In other words, reboots of the machine following an install require the
following steps before network access works:

ifconfig sk0 inet 192.168.0.6 netmask 255.255.255.0
ifconfig sk0 media autoselect

Interestingly, if those two lines are put in a script and thus executed
immediately after one another, it doesn't work. It seems as if a pause
between the two is necessary. I haven't investigated how long this pause
needs to be: the delay caused by typing "ifconfig sk0 media autoselect" is
certainly sufficient. Manually trying to set the media type instead of using
autoselect doesn't seem to work, although I have not exhaustively tried this
option.

I have confirmed this problem with Jul 18 & Jul 30 snapshots on i386. My
dmesg is as follows:

OpenBSD 3.3-current (GENERIC) #109: Wed Jul 30 14:27:37 MDT 2003
der...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium 4 ("GenuineIntel" 686-class) 2.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SIMD,SIMD2,SS,HTT,TM,SBF,CNXT-ID
real mem = 1072476160 (1047340K)
avail mem = 989392896 (966204K)
using 4278 buffers containing 53727232 bytes (52468K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 04/22/03, BIOS32 rev. 0 @ 0xf0010
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf5410/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801EB/ER LPC" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0xd000 0xcd000/0x6400!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G/PE/P CPU to I/0 Bridge 1" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82865G/PE/P CPU to AGP Bridge" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x5961 rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "ATI", unknown product 0x5941 (class display subclass miscellaneous, rev 0x01) at pci1 dev 0 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: interrupting at irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: interrupting at irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
"Intel 82801EB/ER USB" rev 0x02 at pci0 dev 29 function 7 not configured
ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2
pci2 at ppb1 bus 2
"VIA VT6306 FireWire" rev 0x80 at pci2 dev 3 function 0 not configured
vendor "VIA", unknown product 0x3164 (class mass storage subclass RAID, rev 0x06) at pci2 dev 4 function 0 not configured
skc0 at pci2 dev 5 function 0 "3Com 3c940" rev 0x12: irq 11
skc0: 3Com Gigabit LOM (3C940)
sk0 at skc0 port A: address 00:0c:6e:40:6f:26
eephy0 at sk0 phy 0: Marvell 88E1000* Gigabit PHY
pcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 2 "Intel 82801EB/ER SATA" rev 0x02: DMA (unsupported), channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PLEXTOR, CD-R PX-W4824A, 1.04> SCSI0 5/cdrom removable
wd0 at pciide0 channel 1 drive 0: <WDC WD360GD-00FNA0>
wd0: 16-sector PIO, LBA48, 35304MB, 16383 cyl, 16 head, 63 sec, 72303840 sectors
"Intel 82801EB/ER SMB" rev 0x02 at pci0 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq 11, ICH5 AC97
ac97: codec id 0x41445375 (Analog Devices AD1985)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask c420 netmask cc20 ttymask dca2
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

My /etc/hostname.sk0 file is as follows:

dhcp NONE NONE NONE

"ifconfig -m sk0" reports the following (this example is from after the
device has been sucessfully configured):

sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:0c:6e:40:6f:26
media: Ethernet autoselect (100baseTX full-duplex,flag0,flag1)
status: active
supported media:
media 1000baseT mediaopt full-duplex
media 100baseTX mediaopt full-duplex
media 100baseTX
media 10baseT mediaopt full-duplex
media 10baseT
media autoselect
inet6 fe80::20c:6eff:fe40:6f26%sk0 prefixlen 64 scopeid 0x1
inet 192.168.0.6 netmask 0xffffff00 broadcast 192.168.0.255


Laurie

0 new messages