From owner-freebsd-net@FreeBSD.ORG Tue Nov 3 05:48:28 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8719E1065693 for ; Tue, 3 Nov 2009 05:48:28 +0000 (UTC) (envelope-from kalin@el.net) Received: from mail.el.net (mail.el.net [74.1.12.120]) by mx1.freebsd.org (Postfix) with ESMTP id 3B09F8FC1B for ; Tue, 3 Nov 2009 05:48:28 +0000 (UTC) Received: (qmail 80358 invoked by uid 1008); 3 Nov 2009 07:02:59 -0000 Received: from unknown (HELO kalins-macbook-pro.local) (kalin@el.net@74.1.12.115) by mail.el.net with ESMTPA; 3 Nov 2009 07:02:59 -0000 Message-ID: <4AEFC390.2090600@el.net> Date: Tue, 03 Nov 2009 00:45:52 -0500 From: kalin m User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: pyunyh@gmail.com References: <4AE2780F.4080600@el.net> <20091024214640.GE6050@michelle.cdnetworks.com> <20091024215219.GF6050@michelle.cdnetworks.com> In-Reply-To: <20091024215219.GF6050@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Marvell 88E8057 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 05:48:28 -0000 hi pyun... and all.... after a few hours i'm sorry to report that the card is visible but not usable (yet?!). here is what i have done so far: 1. got the files from http://svn.freebsd.org/viewvc/base/head/sys/dev/ 2. applied the patch that pyun provided. 3. replaced if_maddr_rlock(ifp) with IF_ADDR_UNLOCK(ifp) in if_msk.c - two instances. 4. replaced the files in /usr/src/sys/dev for mii and msk with he new ones on the freebsd 7.2 machine. 5. recompiled the kernel.. here is what i get: from dmesg at boot: mskc0: port 0xde00-0xdeff mem 0xfddfc000-0xfddfffff irq 18 at device 0.0 on pci2 mskc0: unknown device: id=0xba, rev=0x00 device_attach: mskc0 attach returned 6 cant find what 6 stands for but it's not good.. pciconf -lvvv: mskc0@pci0:2:0:0: class=0x020000 card=0x51131297 chip=0x438011ab rev=0x10 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' class = network subclass = ethernet if i put if_msk_load="YES" in loader.conf dmesg says: module_register: module msk/miibus already exists! Module msk/miibus failed to register: 17 module_register: module mskc/msk already exists! Module mskc/msk failed to register: 17 module_register: module pci/mskc already exists! Module pci/mskc failed to register: 17 ifconfig doesn't see it. sysinstall does not see it. now what?! thanks... Pyun YongHyeon wrote: > On Sat, Oct 24, 2009 at 02:46:40PM -0700, Pyun YongHyeon wrote: > >> On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote: >> >>> hi all.. >>> >>> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip? >>> >>> according to the kernel list of drivers (7.2) marvell chips are driven >>> by the msk driver. but it doesn't show up in pciconf, dmesg or >>> sysinstall.... >>> strangely enough 88E8057 is not in the list in man msk. although 88E8056 >>> and 88E8058 are. is this just bad luck?! >>> >>> >> I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell >> and no one ever expressed his/her willingness to try experiment >> patch. I guess msk(4) in HEAD has all required features to support >> 88E8057. Would you try attached patch? >> >> The patch was generated against HEAD. If you have to use 7.2-RELEASE >> copy the following files from HEAD and apply attached patch. >> >> /usr/src/sys/dev/msk/if_msk.c >> /usr/src/sys/dev/msk/if_mskreg.h >> /usr/src/sys/dev/mii/miidevs >> /usr/src/sys/dev/mii/e1000phy.c >> /usr/src/sys/dev/mii/e1000phyreg.c >> > ^^^^^^^^^^^^^^ > It should be read e1000phyreg.h >