From owner-freebsd-wireless@FreeBSD.ORG Wed Apr 1 22:12:51 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5613E399 for ; Wed, 1 Apr 2015 22:12:51 +0000 (UTC) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FC1D214 for ; Wed, 1 Apr 2015 22:12:51 +0000 (UTC) Received: by obvd1 with SMTP id d1so102422797obv.0 for ; Wed, 01 Apr 2015 15:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=30epVSphKAIxBcIRe3LzMSclGSE04NCZK9In7YIWGL8=; b=C+kr2Qv8iuCFyP5dlh/OiUg7kQ26xdvoqh8Ujg+Xi4cew5YEv3jVz7Xuoh4V2U6j/W 7/0fdLK25HdvDfU6+jVRtrYjmJI9peUSCW3jaZc3yla7SQCVbma1ldium74NKWMTpa3I QkKmeTirMk7Qt3eNXyM0fBpB/Ht0qN5RvKkNPLYcDyeUuih79MNYbAl82jR6bgggO7zx D03W586CmJe4/oXe2GH3BYdNqNT83aWW84z1QQJ71CaZyDVJfuRXf5QrRKnF9hDKA3Kv gygB4qsSZ0Rs50oofXURV+QABWgmqmm1wffq7J1Jl+oe32h9pfEQlANhVi0aY1Hcu4SJ bjRQ== MIME-Version: 1.0 X-Received: by 10.60.63.39 with SMTP id d7mr42881775oes.72.1427926370285; Wed, 01 Apr 2015 15:12:50 -0700 (PDT) Received: by 10.202.48.195 with HTTP; Wed, 1 Apr 2015 15:12:50 -0700 (PDT) In-Reply-To: <2D66DCCB-AAC5-4431-BC3E-57877979B8D9@gmail.com> References: <2D66DCCB-AAC5-4431-BC3E-57877979B8D9@gmail.com> Date: Thu, 2 Apr 2015 00:12:50 +0200 Message-ID: Subject: Re: How to make working new Broadcom chips like BCM4331? From: Johannes Dieterich To: Felix Friedlander Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 22:12:51 -0000 On Wed, Apr 1, 2015 at 11:42 PM, Felix Friedlander w= rote: >> Hi, >> >> On Mon, 02 Feb 2015 08:12:17 +0300 >> Alexander Perechnev wrote: >> >>> Hello everyone, >>> >>> I=E2=80=99ve installed FreeBSD 10.1 on my MacBook Pro 13 mid 2012. Ever= ything >>> works pretty good, except wireless. It works with [ndis], but it >>> doesn=E2=80=99t work with existing [bwi-firmware-kmod] and >>> [bwn-firmware-kmod] facilities. >>> >>> I=E2=80=99ve looked into [bwn] port Makefile >>> (https://github.com/aperechnev/freebsd-ports/blob/master/net/bwn-firmwa= re-kmod/Makefile) >>> and found that all it does is just to download necessary firmware >>> (4.150.10.5 and 4.178.10.4), extracts it via [b43-fwcutter-015] and >>> compiles it into kernel module. >>> >>> So the first problem is that 4th gen firmware does not support my >>> BCM4331. >>> >>> Also i=E2=80=99ve found the [siba-bwn], which recognizes the broadcom >>> devices: >>> https://github.com/freebsd/freebsd/blob/master/sys/dev/siba/siba_bwn.c. >>> >>> So summary it seems that it is not so hard to support my BCM4331. I >>> have to: >>> >>> - port [b43-fwcutter-018] to FreeBSD, because earlier versions >>> doesn=E2=80=99t work with newest firmware >>> - update existing [bwn-firmware-kmod] to point it to newest firmware >>> - add my BCM4331 device to [siba-bwn] >>> >>> I expect that after this steps my BCM4331 should be working. But I am >>> new in FreeBSD and I=E2=80=99m just asking you for any help like relate= d >>> information, existing problems, links, etc. >>> >>> I am not sure if I am right in my theory, but for me it seems that it >>> should work. So if you know another problems, which I don=E2=80=99t, pl= ease >>> let me know before I go through this steps. >>> >>> Thank you for excellent operating system, now it=E2=80=99s my favorite = one! >>> >>> Best regards, >>> Alexander Perechnev. >>> _______________________________________________ >>> freebsd-wireless at freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe at freebsd.org" >> >> Hi, >> >> out of curiosity I reviewed the BCM status. >> >> IMO you don't have to port the b43-fwcutter to BSD. It would be nice, >> but you can use any Linux to get the firmware (from /lib/firmware/). For >> example. >> https://help.ubuntu.com/community/MacBookPro8-2/Oneiric#Wireless >> >> As of the support, JFYI >> BCM4331 Linux driver is provided by Broadcom >> http://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt >> >> ,there is no support in the Linux kernel atm >> https://wireless.wiki.kernel.org/en/users/drivers/brcm80211 >> >> and I'm not sure, where do the bwi/bwn drivers come from (to see how >> probable is the support of BCM4331). >> bwi -- Broadcom BCM43xx IEEE 802.11b/g wireless network driver >> bwn -- Broadcom BCM43xx IEEE 802.11b/g wireless network driver >> >> >> Cheers, >> >> -vlado > Just out of curiosity, is anyone working on this ATM? I=E2=80=99ve had th= e same problem, and it is (no offence to anyone intended) a bit ridiculous = that the latest Broadcom chips we support are around 5 years old now. I don= =E2=80=99t actually know enough to say this for sure, but judging by the fi= rst message it looks like this is a (relatively) simple fix - simply add n= ewer firmware and sell siba to detect the new cards. Is this the case, or a= m I misreading the whole situation? Well, looking at the commit history of both the siba source and the port containing the firmware binaries, I'd say the driver is in maintenance mode since March 2010. Which nicely lines up with the five year old chips, unfortunately. No idea if it is indeed as simple as adding a few PCI-IDs and the binaries but if you have such a device, maybe you could try it? > Also, the Broadcom-provided linux STA driver you referenced above is not = very widely used - b43 (the kernel driver) is much more common, and require= s extracting the firmware just like the FreeBSD drivers. See https://wirele= ss.wiki.kernel.org/en/users/Drivers/b43 The page also claims that the operation of b43 is limited to 11g? Is this correct? Johannes