From owner-freebsd-wireless@freebsd.org Wed Jul 1 06:34:07 2015 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3ED02993F1A for ; Wed, 1 Jul 2015 06:34:07 +0000 (UTC) (envelope-from felixphew0@gmail.com) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (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 1AC6C1DA6 for ; Wed, 1 Jul 2015 06:34:07 +0000 (UTC) (envelope-from felixphew0@gmail.com) Received: by pacws9 with SMTP id ws9so18312760pac.0 for ; Tue, 30 Jun 2015 23:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=IA9wmAFfaer0e46PjA6yl7lO0FK7cBegGejBbN+Zj0Q=; b=i/ymNgA7VuRXLK1RfcC309AOhrmnsdQKA5M+yZzyS+v3Nqcor2ULdXVpVm800JM91B 3vnbSr6YHnsZAWjQ5taDc61m9+zRgf1DWul9K55yVO/H/Kmy38wGCL3vgvjV6qw2SRgm fgeKXWDLiJ6RGu/SxbHtd5WoTjqnsQrUNxuz0pJqlmDCdad9VGrCbxdDQvBCWbbx3c4G c7uDWBV6eV4ftxUnwMH8yZY28uFHXHOye0ikrss8N2qBqXd3D5TEZXPT8yeSDMGduGCZ 6877b8vSvh58IB+AiUrJeOnAvwJzZ8Aa1gARVTZcckpHsL0chvgXQ6vKCaL747qdNfIC xALA== X-Received: by 10.70.36.234 with SMTP id t10mr35255543pdj.145.1435732446840; Tue, 30 Jun 2015 23:34:06 -0700 (PDT) Received: from notabox (c211-30-51-180.frank3.vic.optusnet.com.au. [211.30.51.180]) by mx.google.com with ESMTPSA id pz5sm956720pdb.27.2015.06.30.23.34.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 23:34:05 -0700 (PDT) Date: Wed, 1 Jul 2015 16:33:58 +1000 From: Felix Friedlander To: freebsd-wireless@freebsd.org Subject: bwn update Message-ID: <20150701063358.GA1737@notabox> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 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 Jul 2015 06:34:07 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, So, I've been working a bit on the bwn(4) driver, updating it to support ne= wer cards, but I've hit a bit of a dead end. I've successfully made siba(4)= recognise the card, but much more mork needs to be done and it's a bit bey= ond my skills (at least without help).=20 However, I _have_ ported the new(er) firmware, and it seems to work OK even= on older cards. This will need more testing, so if anyone has a card curre= ntly supported by bwn(4) and would like to give it a go, the diff against n= et/bwn-firmware-kmod is below: Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 391018) +++ Makefile (working copy) @@ -2,7 +2,7 @@ # $FreeBSD$ =20 PORTNAME=3D bwn-firmware -PORTVERSION=3D 0.1.0 +PORTVERSION=3D 0.2.0 CATEGORIES=3D net MASTER_SITES=3D http://downloads.openwrt.org/sources/ \ http://mirror2.openwrt.org/sources/ @@ -24,24 +24,11 @@ lp0bsinitvals14 lp0bsinitvals15 \ n0bsinitvals11 =20 -FIRMWARES_LP=3D \ - ucode ucode5 ucode11 ucode13 ucode14 ucode15 \ - pcm5 a0g1initvals5 a0g0initvals5 \ - b0g0initvals5 b0g0initvals13 a0g1bsinitvals5 a0g0bsinitvals5 \ - b0g0bsinitvals5 \ - lp0initvals13 lp0initvals14 lp0initvals15 lp0bsinitvals13 \ - lp0bsinitvals14 lp0bsinitvals15 \ - n0bsinitvals11 - WRKSRC=3D ${WRKDIR} FWNAME=3D bwn_v4 FWFILE=3D broadcom-wl-${FWVERSION}.tar.bz2 -FWVERSION=3D 4.150.10.5 +FWVERSION=3D 5.100.138 KMODNAME=3D ${FWNAME}_ucode -FWNAME_LP=3D bwn_v4_lp -FWFILE_LP=3D broadcom-wl-${FWVERSION_LP}.tar.bz2 -FWVERSION_LP=3D 4.178.10.4 -KMODNAME_LP=3D ${FWNAME_LP}_ucode PLIST_SUB=3D KMODNAME=3D"${KMODNAME}" \ KMODNAME_LP=3D"${KMODNAME_LP}" =20 @@ -54,9 +41,8 @@ tar xjf ${DISTDIR}/${FWFILE} mkdir -p ${WRKSRC}/bg b43-fwcutter -w ${WRKSRC}/bg \ - ${WRKSRC}/broadcom-wl-${FWVERSION}/driver/wl_apsta_mimo.o + ${WRKSRC}/broadcom-wl-${FWVERSION}/linux/wl_apsta.o ${TOUCH} ${WRKSRC}/bg/v4/ucode.fw - @${ECHO_CMD} "KMOD=3D ${KMODNAME}" > ${WRKSRC}/bg/v4/Makefile @${ECHO_CMD} "FIRMWS=3D ${FIRMWARES:C/.*/&.fw:${FWNAME}_&/}" >> \ ${WRKSRC}/bg/v4/Makefile @@ -63,20 +49,7 @@ @${ECHO_CMD} ".include " >> ${WRKSRC}/bg/v4/Makefile @cd ${WRKSRC}/bg/v4; make all =20 - cd ${WRKSRC} && \ - tar xjf ${DISTDIR}/${FWFILE_LP} - mkdir -p ${WRKSRC}/lp - b43-fwcutter -w ${WRKSRC}/lp \ - ${WRKSRC}/broadcom-wl-${FWVERSION_LP}/linux/wl_apsta.o - ${TOUCH} ${WRKSRC}/lp/v4/ucode.fw - @${ECHO_CMD} "KMOD=3D ${KMODNAME_LP}" > ${WRKSRC}/lp/v4/Makefile - @${ECHO_CMD} "FIRMWS=3D ${FIRMWARES_LP:C/.*/&.fw:${FWNAME_LP}_&/}" >> \ - ${WRKSRC}/lp/v4/Makefile - @${ECHO_CMD} ".include " >> ${WRKSRC}/lp/v4/Makefile - @cd ${WRKSRC}/lp/v4; make all - do-install: @cd ${WRKSRC}/bg/v4; ${SETENV} ${MAKE_ENV} KMODDIR=3D"${STAGEDIR}${KMODDI= R}" make install - @cd ${WRKSRC}/lp/v4; ${SETENV} ${MAKE_ENV} KMODDIR=3D"${STAGEDIR}${KMODDI= R}" make install =20 .include Index: distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- distinfo (revision 391018) +++ distinfo (working copy) @@ -1,4 +1,2 @@ -SHA256 (broadcom-wl-4.150.10.5.tar.bz2) =3D a9f4e276a4d8d3a1cd0f2eb87080ae= 89b77f0a7140f06d4e9e2135fc44fdd533 -SIZE (broadcom-wl-4.150.10.5.tar.bz2) =3D 3888794 -SHA256 (broadcom-wl-4.178.10.4.tar.bz2) =3D 32f6ad98facbb9045646fdc8b54bb0= 3086d204153253f9c65d0234a5d90ae53f -SIZE (broadcom-wl-4.178.10.4.tar.bz2) =3D 5986780 +SHA256 (broadcom-wl-5.100.138.tar.bz2) =3D f1e7067aac5b62b67b8b6e4c5179902= 77804339ac16065eb13c731ff909ae46f +SIZE (broadcom-wl-5.100.138.tar.bz2) =3D 13514651 Note that this one firmware replaces the two previous firmwares (standard a= nd low-power). I would be grateful if anyone else could try this firmware o= ut, and let me know if you have any issues. In the meantime, Adrian is going to help find a developer from the Linux b4= 3 driver to maybe help us out a bit. But don't expect a working driver anyt= ime soon :-) --=20 Felix Friedlander --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVk4nPAAoJEF/vKV6HaeOBT3YQAKi+sMdNhcL5zLzEpImHhbQ9 JJJGheT7GDcqL4e38l53FZm9EMZCM+9PP0J8ia9pSMev1K3HBQbc5OYZf5Gy+hay 3/O0j5V0QBbvVArabdbZvnJNMTCOdybkdnT70mLQsOkur6pXVJOpQnvkC1amFd9o X0AycSQgtAA9hMDlq/3AgMYOtBeVHxf9EiJfNnFPIeM5vnabfeaVGpmTSVGmpwg5 RKIPZcplyaNtQoH/lJQ9B+Bb2DdSRptpx/gMjej2EfbR7J4JjgXw17jx72V+8c0p DGtKEo1q9E7/NbzVwC188omjxuiAmpe5KCNb3N9ToZ7vYemgLOQ4qZd99/JRDzuD gK6rPH+oT2kkAiiVPdzJS4NlR0kdcjF7A15GInDrLCcXcbEsIzw12KjgEWUVKgB0 arwe7V8H46bKsrkZTEZanAF5CrIi0SCn3oNETFcJ98a5Zp81IxJb2qAwKjf0qPgr ixdke+tbgAtO1seZp7rLlbtXgDXvmaXV0vOPq1j/G94EAR2zhOcxBalbFnhGQp/e 13wedR9gfET1vwhLg8hrOLwqFh/sJIMTa2JoPpA7/q/woti6soW5sQsq7laFiZO1 tfVlXz0vynejI36KGNzQ+jN5i08vhVzs8nHl8oi22N1WtAC/rC/jbWtfglzshveq DUnH1/FeWvPqDAVaS6i/ =rr5h -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--