Date: Sun, 14 Jun 2009 22:39:00 +0200 From: John Thorup <john.thorup.dk@gmail.com> To: freebsd-questions@freebsd.org Subject: Network interface dc0 fails to negotiate media type Message-ID: <606994910906141339r47815ae3j796e41fb44f0274a@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I have installed FreeBSD 7.2-RELEASE i386 on a Fujitsu Siemens Scaleo T P 340 0 1,0G PC (mainboard name D1826-G). $ uname -a FreeBSD dhcppc0.thorup 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 $ I will mention that I have csup'ed and updated my ports the 31.th May. Some time after that the network (interface dc0) suddenly stopped working. First I saw it was not possible to get an IP address from my router. I thought initially that it was the network cable or router, that caused the problem but the PC can still boot up with Win XP without any network connectivity problems. I can see that there must be problems with the negotiation of media type and options from: $ ifconfig -m dc0 dc0: flags=8847<UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> capabilities=8<VLAN_MTU> ether 00:30:05:d4:25:c7 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: Ethernet autoselect (none) status: active supported media: media autoselect media 10baseT/UTP mediaopt full-duplex media none $ The strange thing is that the normal selection "media 100baseTX mediaopt full-duplex" (before this error) are not on the list of supported meadia. When I boot up in Win XP, the negotiation ends up with 100baseTX / full-duplex. If I try to configure "sudo ifconfig dc0 media 100baseTX mediaopt full-duplex", I receive the answer "ifconfig: SIOCSIFMEDIA (media): Device not configured". If I try to configure "sudo ifconfig dc0 media 10baseT/UTP mediaopt full-duplex", the command changes the settings. I have been studying the FreeBSD man pages, reading the Handbook, searching the mailing lists and searching the internet without finding something that did could help me. Can you at freebsd-questions@freebsd.org help me, so that I can get my network up and running again. dmesg output and sysctl's of interest: $ dmesg Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3401.05-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x441d<SSE3,DTES64,MON,DS_CPL,CNXT-ID,xTPR> Logical CPUs per core: 2 real memory = 1072627712 (1022 MB) avail memory = 1035931648 (987 MB) ACPI APIC Table: <FSC APIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0 <Version 2.0> irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <PTLTD XSDT> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf008-0xf00b on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0xe0000000-0xefffffff,0xf0100000-0xf010ffff irq 16 at device 0.0 on pci1 vgapci1: <VGA-compatible display> mem 0xf0110000-0xf011ffff at device 0.1 on pci1 pci0: <multimedia, HDA> at device 27.0 (no driver attached) pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0 pci3: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0 pci5: <ACPI PCI bus> on pcib3 pcib4: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0 pci7: <ACPI PCI bus> on pcib4 pcib5: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0 pci9: <ACPI PCI bus> on pcib5 uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port 0x2000-0x201f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> on uhci0 usb0: USB revision 1.0 uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port 0x2400-0x241f irq 22 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> on uhci1 usb1: USB revision 1.0 uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port 0x2800-0x281f irq 21 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2 usb2: USB revision 1.0 uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 0x2c00-0x2c1f irq 20 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3 usb3: USB revision 1.0 uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 0xf0004000-0xf00043ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0 usb4: USB revision 2.0 uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4 uhub4: 8 ports with 8 removable, self powered ugen0: <GlobespanVirata Cohiba 3887 rev0, class 0/0, rev 2.00/10.40, addr 2> on uhub4 pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci11: <ACPI PCI bus> on pcib6 dc0: <ADMtek AN985 10/100BaseTX> port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 miibus0: <MII bus> on dc0 ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0 ukphy0: 10baseT-FDX, auto dc0: Ethernet address: 00:30:05:d4:25:c7 dc0: [ITHREAD] fwohci0: <Lucent FW322/323> mem 0xf0200000-0xf0200fff irq 20 at device 6.0 on pci11 fwohci0: [FILTER] fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:30:05:b3:50:01:dd:d6 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: 02:30:05:01:dd:d6 fwe0: Ethernet address: 02:30:05:01:dd:d6 fwip0: <IP over FireWire> on firewire0 fwip0: Firewire address: 00:30:05:b3:50:01:dd:d6 @ 0xfffe00000000, S400, maxrec 2048 sbp0: <SBP-2/SCSI over FireWire> on firewire0 dcons_crom0: <dcons configuration ROM> on firewire0 dcons_crom0: bus_addr 0x108c000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH6 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3400-0x340f at device 31.1 on pci0 ata0: <ATA channel 0> on atapci0 ata0: [ITHREAD] ata1: <ATA channel 1> on atapci0 ata1: [ITHREAD] atapci1: <Intel AHCI controller> port 0x3430-0x3437,0x3424-0x3427,0x3428-0x342f,0x3420-0x3423,0x3410-0x341f mem 0xf0004400-0xf00047ff irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.00 controller with 4 ports detected ata2: <ATA channel 0> on atapci1 ata2: [ITHREAD] ata3: <ATA channel 1> on atapci1 ata3: port not implemented ata3: [ITHREAD] ata4: <ATA channel 2> on atapci1 ata4: port not implemented ata4: [ITHREAD] ata5: <ATA channel 3> on atapci1 ata5: port not implemented ata5: [ITHREAD] pci0: <serial bus, SMBus> at device 31.3 (no driver attached) fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: <ACPI CPU> on acpi0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 cpu1: <ACPI CPU> on acpi0 p4tcc1: <CPU Frequency Thermal Control> on cpu1 pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xccfff,0xcd000-0xcdfff pnpid ORM0000 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] ppc0: parallel port not found. sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: <Logitech USB Receiver, class 0/0, rev 1.10/25.00, addr 2> on uhub2 ums0: 16 buttons and Z dir. Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DVDROM <HL-DT-STDVD-ROM GDR8163B/0F21> at ata0-master UDMA33 acd1: DVDR <NEC DVD RW ND-2510A/2.96> at ata0-slave UDMA33 ad4: 238475MB <WDC WD2500PD-07FZB1 05.05G05> at ata2-master SATA150 GEOM_LABEL: Label for provider ad4s1 is ntfs/WINDOWS-XP. GEOM_LABEL: Label for provider ad4s2 is ext2fs/UBUNTU. GEOM_LABEL: Label for provider ad4s3a is ufsid/49ff54332ba6db2e. GEOM_LABEL: Label for provider ad4s3d is ufsid/49ff543456dba19f. GEOM_LABEL: Label for provider ad4s3e is ufsid/49ff5433f58989ab. GEOM_LABEL: Label for provider ad4s3f is ufsid/49ff54339167a9fa. GEOM_LABEL: Label for provider ad4s5 is ntfs/DATA. acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 (probe7:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe7:ata0:0:0:0): CAM Status: SCSI Status Error (probe7:ata0:0:0:0): SCSI Status: Check Condition (probe7:ata0:0:0:0): NOT READY asc:3a,0 (probe7:ata0:0:0:0): Medium not present (probe7:ata0:0:0:0): Unretryable error (probe8:ata0:0:1:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe8:ata0:0:1:0): CAM Status: SCSI Status Error (probe8:ata0:0:1:0): SCSI Status: Check Condition (probe8:ata0:0:1:0): NOT READY asc:3a,0 (probe8:ata0:0:1:0): Medium not present sks:0x80,0xffff (probe8:ata0:0:1:0): Unretryable error SMP: AP CPU #1 Launched! cd0 at ata0 bus 0 target 0 lun 0 cd0: <HL-DT-ST DVD-ROM GDR8163B 0F21> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata0 bus 0 target 1 lun 0 cd1: <_NEC DVD_RW ND-2510A 2.96> Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad4s3a GEOM_LABEL: Label ufsid/49ff54332ba6db2e removed. GEOM_LABEL: Label for provider ad4s3a is ufsid/49ff54332ba6db2e. GEOM_LABEL: Label ufsid/49ff5433f58989ab removed. GEOM_LABEL: Label for provider ad4s3e is ufsid/49ff5433f58989ab. GEOM_LABEL: Label ufsid/49ff54339167a9fa removed. GEOM_LABEL: Label for provider ad4s3f is ufsid/49ff54339167a9fa. GEOM_LABEL: Label ufsid/49ff543456dba19f removed. GEOM_LABEL: Label for provider ad4s3d is ufsid/49ff543456dba19f. GEOM_LABEL: Label ufsid/49ff54332ba6db2e removed. ukbd0: <CHESEN USB Keyboard, class 0/0, rev 1.10/1.10, addr 3> on uhub2 kbd2 at ukbd0 uhid0: <CHESEN USB Keyboard, class 0/0, rev 1.10/1.10, addr 3> on uhub2 GEOM_LABEL: Label ufsid/49ff5433f58989ab removed. GEOM_LABEL: Label ufsid/49ff54339167a9fa removed. GEOM_LABEL: Label ufsid/49ff543456dba19f removed. fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 GEOM_LABEL: Label ntfs/WINDOWS-XP removed. GEOM_LABEL: Label ntfs/DATA removed. oss_hdaudio0: [ITHREAD] oss_hdaudio0: <Intel HD Audio> mem 0xf0000000-0xf0003fff irq 16 at device 27.0 on pci0 osscore: mmap() not possible with currently selected sample format. $ $ sysctl -a | grep dev.dc.0 dev.dc.0.%desc: ADMtek AN985 10/100BaseTX dev.dc.0.%driver: dc dev.dc.0.%location: slot=4 function=0 dev.dc.0.%pnpinfo: vendor=0x1317 device=0x0985 subvendor=0x1734 subdevice=0x100c class=0x020000 dev.dc.0.%parent: pci11 $ sysctl -a | grep miibus dev.miibus.0.%desc: MII bus dev.miibus.0.%driver: miibus dev.miibus.0.%parent: dc0 dev.ukphy.0.%parent: miibus0 $ sysctl -a | grep ukphy dev.ukphy.0.%desc: Generic IEEE 802.3u media interface dev.ukphy.0.%driver: ukphy dev.ukphy.0.%location: phyno=1 dev.ukphy.0.%pnpinfo: oui=0x67f83 model=0xe rev=0xc dev.ukphy.0.%parent: miibus0 $ ---- John Thorup Aarhus, Denmark E-mail: john.thorup.dk at gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?606994910906141339r47815ae3j796e41fb44f0274a>