From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 10:55:13 2008 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 45BC3106567E for ; Sun, 16 Nov 2008 10:55:13 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2909C8FC16 for ; Sun, 16 Nov 2008 10:55:12 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id fmpN1a0040S2fkCAAmvC8p; Sun, 16 Nov 2008 10:55:12 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA09.emeryville.ca.mail.comcast.net with comcast id fmvB1a00P2P6wsM8VmvCs1; Sun, 16 Nov 2008 10:55:12 +0000 X-Authority-Analysis: v=1.0 c=1 a=VwQbUJbxAAAA:8 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=haZ9NQvX1OMqAnJohlQA:9 a=z6W2ysOs0VOmvW2NPXjx7A7rciAA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id C50B433C36; Sun, 16 Nov 2008 02:55:11 -0800 (PST) Date: Sun, 16 Nov 2008 02:55:11 -0800 From: Jeremy Chadwick To: "weinter.lim" Message-ID: <20081116105511.GA98407@icarus.home.lan> References: <20523992.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20523992.post@talk.nabble.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Port Linux Driver 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: Sun, 16 Nov 2008 10:55:13 -0000 On Sun, Nov 16, 2008 at 02:35:07AM -0800, weinter.lim wrote: > Hi > I have posted > > I am installing FreeBSD 7.1 Beta 2 on my laptop model Acer Aspire 4530 > 1) Atheros AR5B91 is not detected > Does anyone know how to get the drivers or patch it > > none4@pci0:11:0:0: class=0x028000 card=0x03031a32 chip=0x002a168c rev=0x01 > hdr=0x00 > vendor = 'Atheros Communications Inc.' > class = network > > I have found the Linux driver here > http://wireless.kernel.org/en/users/Drivers/ath9k > Anyone can advice me to port the driver over to BSD ? You posted something similar to -hardware about your Broadcom NIC and got responses, so I'm not sure why you decided to go with -questions this time around. :-) Linux drivers are not "ported" to FreeBSD. The driver and ABI semantics are *way* too difference to port. A new driver must be created. The Linux driver can be looked at to determine importance of register bits or other things, but this requires the Linux driver to have large amounts of commenting, many of which do not. Thirdly, your Atheros chip is an "AR5B91", it is an "AR9281". I'm not sure where 5B91 came from. Other things to note: 1) There is ath(4) on FreeBSD, but it is for different versions of Atheros chips; it may not be possible to extend ath(4) to support the 9281. 2) Atheros chips have a history of being very different from one another, as can be confirmed with ale(4) vs. age(4) (ex: the L1E NIC completely different from the L1 NIC). I've added an entry to my below Wiki page stating that we do not have support for these Atheros chips. http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |