From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 21:38:26 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAD3616A403 for ; Mon, 4 Dec 2006 21:38:26 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997844418F for ; Mon, 4 Dec 2006 21:24:09 +0000 (GMT) (envelope-from ryallsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so15114nfc for ; Mon, 04 Dec 2006 13:24:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LUkBHg4ckYFu76rHNdW2yXLa6RXOxiG28wk6/Whudx5cN1S07n7SXubcajiwY1DtdK85qGyUYJJXxRHzgbywclsZBmHoYyrWz2pLYmWnpz81DSm1Zjoe17i1vXaBpYT4wmBvVYeZSEiTgHUzEFDpyJp0CfoFz5TNrLLdBvzsRXY= Received: by 10.82.141.4 with SMTP id o4mr1578660bud.1165267467294; Mon, 04 Dec 2006 13:24:27 -0800 (PST) Received: by 10.82.180.8 with HTTP; Mon, 4 Dec 2006 13:24:27 -0800 (PST) Message-ID: Date: Mon, 4 Dec 2006 13:24:27 -0800 From: "Derrick Ryalls" To: FreeBSD-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: DGE-530T nic not found on 5.5 - Possibly solved 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: Mon, 04 Dec 2006 21:38:26 -0000 On 12/4/06, Derrick Ryalls wrote: > [Resending with more info] > > Greetings, I have a fileserver I installed this nic on but the device > fails to show in ifconfig > > uname: > 5.5-STABLE FreeBSD 5.5-STABLE #2: Sun Oct 29 14:12:46 PST 2006 > user@somewhere.com:/usr/obj/usr/src/sys/FRODO > > Except from FRODO kernel file (generic plus some): > > # PCI Ethernet NICs that use the common MII bus controller code. > # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! > device miibus # MII bus support > device bfe # Broadcom BCM440x 10/100 Ethernet > device bge # Broadcom BCM570xx Gigabit Ethernet > device dc # DEC/Intel 21143 and various workalikes > device fxp # Intel EtherExpress PRO/100B (82557, 82558) > device lge # Level 1 LXT1001 gigabit ethernet > device nge # NatSemi DP83820 gigabit ethernet > device pcn # AMD Am79C97x PCI 10/100 (precedence > over 'lnc') > device re # RealTek 8139C+/8169/8169S/8110S > device rl # RealTek 8129/8139 > device sf # Adaptec AIC-6915 (``Starfire'') > device sis # Silicon Integrated Systems SiS 900/SiS 7016 > device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet > device ste # Sundance ST201 (D-Link DFE-550TX) > device ti # Alteon Networks Tigon I/II gigabit Ethernet > device tl # Texas Instruments ThunderLAN > device tx # SMC EtherPower II (83c170 ``EPIC'') > device vge # VIA VT612x gigabit ethernet > device vr # VIA Rhine, Rhine II > device wb # Winbond W89C840F > device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') > > > dmesg except: > > pci0: at device 6.0 (no driver attached) > vr0: port 0xdc00-0xdcff mem > 0xdfffbe00-0xdfffbeff > irq 23 at device 18.0 on pci0 > miibus0: on vr0 > ukphy0: on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > vr0: Ethernet address: xx:xx:xx:xx:xx:xx > > The reference to vr0 are for the onboard nic that it is currently > running off of. > > ifconfig lists vr0, plip0, lo0 > > ===[frodo][root] ~ # pciconf -l > agp0@pci0:0:0: class=0x060000 card=0x00001106 chip=0x30991106 rev=0x00 hdr=0x00 > pcib1@pci0:1:0: class=0x060400 card=0x00000080 chip=0xb0991106 rev=0x00 hdr=0x01 > none0@pci0:6:0: class=0x020000 card=0x4b011186 chip=0x4b011186 rev=0x11 hdr=0x00 > uhci0@pci0:16:0: class=0x0c0300 card=0x76401462 chip=0x30381106 > rev=0x80 hdr=0x00 > uhci1@pci0:16:1: class=0x0c0300 card=0x76401462 chip=0x30381106 > rev=0x80 hdr=0x00 > uhci2@pci0:16:2: class=0x0c0300 card=0x76401462 chip=0x30381106 > rev=0x80 hdr=0x00 > ehci0@pci0:16:3: class=0x0c0320 card=0x76401462 chip=0x31041106 > rev=0x82 hdr=0x00 > isab0@pci0:17:0: class=0x060100 card=0x00001106 chip=0x31771106 > rev=0x00 hdr=0x00 > atapci0@pci0:17:1: class=0x01018a card=0x76401462 chip=0x05711106 > rev=0x06 hdr=0x00 > vr0@pci0:18:0: class=0x020000 card=0x01021106 chip=0x30651106 rev=0x74 hdr=0x00 > none1@pci1:0:0: class=0x030000 card=0x000da0a0 chip=0x002d10de rev=0x15 hdr=0x00 > > > > Doing some searching, someone posted this part of dmesg on a 5.4 > PRERELEASE system: > > skc0: port 0x7400-0x74ff mem > 0xfb800000-0xfb803fff irq 18 at device 10.0 on pci2 > skc0: (null) rev. (0x1) > sk0: on skc0 > sk0: Ethernet address: 00:0f:3d:f2:45:0c > miibus0: on sk0 > e1000phy0: on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, > auto > > I did check the hardware notes before buying this nic, and according > to http://www.freebsd.org/releases/5.5R/hardware-i386.html it is > supported. Have I missed a switch somewhere? > > Thanks in advance. > > -Derrick > I found this in an archive: http://www.freebsd.org/cgi/query-pr.cgi?pr=99903 I tried manually editing if_sk.c and if_skreg.h build/install kernel (patch didn't work, possibly wrong version of file?), and then got this in dmesg: skc0: port 0xec00-0xecff mem 0xdfffc000-0xdff fffff irq 17 at device 6.0 on pci0 skc0: unknown media type: 0x31 device_attach: skc0 attach returned 6 So then I did some searching for 0x31 and found this: http://www.bsdforums.org/forums/archive/index.php/t-43153.html I added the lines for 0x31 and now the nic shows up in ifconfig. I am not home so I can't plug in a patch cord to see if it is fully functional. If this does work, how would I create a patch file? I saved the original files before editing. I definitely don't want to claim ownership of the work that went into this, I was just hoping to get it into the 5.x tree so if I happen to CVSup, I don't need to redo this.