From owner-freebsd-questions@FreeBSD.ORG Tue Jun 16 19:46:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA5CB1065672 for ; Tue, 16 Jun 2009 19:46:16 +0000 (UTC) (envelope-from john.thorup.dk@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB938FC13 for ; Tue, 16 Jun 2009 19:46:16 +0000 (UTC) (envelope-from john.thorup.dk@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1601521wfg.7 for ; Tue, 16 Jun 2009 12:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=OcChSOOnPBqJlepFePNMzMT5h/F5Q+lXJ9tGTrOAlzQ=; b=JzJoNRq0OTJL9hf19CQLpoKrGee/PdsxLdd7TkMElZw/PJz8QLnzaxXpY0T7Vgl3Il JvVFU5bt+Y0aRugjtjilKFLeC596CLML0+ye4pqO9OQhBfQBT9wFoZpbEm3L2ZlvvQ3g YVIEEpoxY7oMQw03LUGTLBAbTsTWWzWygvt5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=cMZn91CUqNksz8MlsuXhjAmsYsee4TF1qHfNdIqOFlQ5gllJNHXS5g3ery6QcMtLsl E9Wqccozd+5IE8EQ0Ic/b+KiJeyy8q+G24VEqRsK+q7loS7iw0QZlfp1az8hzZb8Qqn7 KeYlwuPkCzciq/+7/GArIWVYvowbFDqscNb1Q= MIME-Version: 1.0 Received: by 10.142.215.4 with SMTP id n4mr4552361wfg.3.1245181576008; Tue, 16 Jun 2009 12:46:16 -0700 (PDT) In-Reply-To: <606994910906141339r47815ae3j796e41fb44f0274a@mail.gmail.com> References: <606994910906141339r47815ae3j796e41fb44f0274a@mail.gmail.com> Date: Tue, 16 Jun 2009 21:46:15 +0200 Message-ID: <606994910906161246y6fa35434x59efd9edc49d4fdc@mail.gmail.com> From: John Thorup To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Network interface dc0 fails to negotiate media type X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 19:46:17 -0000 Content of /etc/rc.conf # -- sysinstall generated deltas -- # Mon May 4 22:51:52 2009 # Created: Mon May 4 22:51:52 2009 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. ifconfig_dc0=3D"dhcp" hostname=3D"dhcppc0.thorup" inetd_enable=3D"NO" keymap=3D"danish.iso" linux_enable=3D"YES" sshd_enable=3D"YES" #Open Sound System oss_enable=3D"YES" #Manually added for X11 #hald and dbus is started by gnome_enable dbus_enable=3D"YES" gdm_lang=3D"da_DK.UTF-8" gnome_enable=3D"YES" fusefs_enable=3D"YES" #devfs_system_ruleset=3D"localrules" dhcppc0# I have noticed a difference in the syslogs dmesg.today and messages; see the 4.th line from the cutting from both. Why are they different ? >From dmesg.today dc0: port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 miibus0: on dc0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:30:05:d4:25:c7 dc0: [ITHREAD] >From messages Jun 16 20:33:01 dhcppc0 kernel: dc0: port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 Jun 16 20:33:01 dhcppc0 kernel: miibus0: on dc0 Jun 16 20:33:01 dhcppc0 kernel: ukphy0: PHY 1 on miibus0 Jun 16 20:33:01 dhcppc0 kernel: ukphy0: 10baseT-FDX, auto Jun 16 20:33:01 dhcppc0 kernel: dc0: Ethernet address: 00:30:05:d4:25:c7 Jun 16 20:33:01 dhcppc0 kernel: dc0: [ITHREAD] ---------- Forwarded message ---------- From: John Thorup Date: 2009/6/14 Subject: Network interface dc0 fails to negotiate media type To: freebsd-questions@freebsd.org 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: =A0Fri May =A01 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC =A0i386 $ 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=3D8847 metric 0 mt= u 1500 =A0 =A0 =A0 =A0options=3D8 =A0 =A0 =A0 =A0capabilities=3D8 =A0 =A0 =A0 =A0ether 00:30:05:d4:25:c7 =A0 =A0 =A0 =A0inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 =A0 =A0 =A0 =A0media: Ethernet autoselect (none) =A0 =A0 =A0 =A0status: active =A0 =A0 =A0 =A0supported media: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0media autoselect =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0media 10baseT/UTP mediaopt full-duplex =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0media 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-dup= lex. 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 =A0 =A0 =A0 =A0The Regents of the University of California. All rights rese= rved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE #0: Fri May =A01 08:49:13 UTC 2009 =A0 =A0root@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) =A0Origin =3D "GenuineIntel" =A0Id =3D 0xf34 =A0Stepping =3D 4 =A0Features=3D0xbfebfbff =A0Features2=3D0x441d =A0Logical CPUs per core: 2 real memory =A0=3D 1072627712 (1022 MB) avail memory =3D 1035931648 (987 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs =A0cpu0 (BSP): APIC ID: =A00 =A0cpu1 (AP/HT): APIC ID: =A01 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x4000-0x40ff mem 0xe0000000-0xefffffff,0xf0100000-0xf010ffff irq 16 at device 0.0 on pci1 vgapci1: mem 0xf0110000-0xf011ffff at device 0.1 on pci1 pci0: at device 27.0 (no driver attached) pcib2: irq 17 at device 28.0 on pci0 pci3: on pcib2 pcib3: irq 16 at device 28.1 on pci0 pci5: on pcib3 pcib4: irq 18 at device 28.2 on pci0 pci7: on pcib4 pcib5: irq 19 at device 28.3 on pci0 pci9: on pcib5 uhci0: port 0x2000-0x201f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x2400-0x241f irq 22 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x2800-0x281f irq 21 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x2c00-0x2c1f irq 20 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: 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: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered ugen0: on uhub4 pcib6: at device 30.0 on pci0 pci11: on pcib6 dc0: port 0x5000-0x50ff =A0 =A0 =A0 =A0 =A0 =A0 =A0 mem 0xf0201000-0xf02013ff irq 23 at device 4.0 = on pci11 miibus0: on dc0 ukphy0: PHY 1 on miibus0 ukphy0: =A010baseT-FDX, auto dc0: Ethernet address: 00:30:05:d4:25:c7 dc0: [ITHREAD] fwohci0: mem 0xf0200000-0xf0200fff irq 20 at device 6.0 on pci11 fwohci0: [FILTER] fwohci0: OHCI version 1.0 (ROM=3D1) 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: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:30:05:01:dd:d6 fwe0: Ethernet address: 02:30:05:01:dd:d6 fwip0: on firewire0 fwip0: Firewire address: 00:30:05:b3:50:01:dd:d6 @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x108c000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=3D0xc800ffc0, gen=3D2, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3400-0x340f at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: 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: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: port not implemented ata3: [ITHREAD] ata4: on atapci1 ata4: port not implemented ata4: [ITHREAD] ata5: on atapci1 ata5: port not implemented ata5: [ITHREAD] pci0: at device 31.3 (no driver attached) fdc0: 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 acp= i0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 p4tcc0: on cpu0 cpu1: on acpi0 p4tcc1: on cpu1 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xcd000-0xcdfff pnpid ORM0000 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub2 ums0: 16 buttons and Z dir. Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me) firewire0: bus manager 0 (me) acd0: DVDROM at ata0-master UDMA33 acd1: DVDR at ata0-slave UDMA33 ad4: 238475MB 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=3D0x24 ascq=3D0x00 (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: 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: on uhub2 kbd2 at ukbd0 uhid0: 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: 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=3D4 function=3D0 dev.dc.0.%pnpinfo: vendor=3D0x1317 device=3D0x0985 =A0 =A0 =A0 =A0 =A0 =A0 =A0 subvendor=3D0x1734 subdevice=3D0x100c class=3D0= x020000 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=3D1 dev.ukphy.0.%pnpinfo: oui=3D0x67f83 model=3D0xe rev=3D0xc dev.ukphy.0.%parent: miibus0 $ ---- John Thorup Aarhus, Denmark E-mail: john.thorup.dk at gmail.com