Date: Mon, 30 Jul 2007 12:46:34 +0200 From: Dirk-Willem van Gulik <dirkx@joost.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/115036: New port: comms/bluez-firmware Firmware for the D-Link BCM2033 bluetooth adaptor for use by bcmfw(1) Message-ID: <46ADC18A.9040500@joost.com> Resent-Message-ID: <200707301120.l6UBK1qH043832@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115036 >Category: ports >Synopsis: New port: comms/bluez-firmware Firmware for the D-Link >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 30 11:20:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Dirk-Willem van Gulik <dirkx@webweaving.org> >Release: FreeBSD 7.0-CURRENT i386 >Organization: private individual >Environment: System: FreeBSD builld-jv.anywi.com 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Sun Jul 15 18:05:41 UTC 2007 root@builld-jv.anywi.com:/usr/obj/usr/src/sys/NEWTANTE i386 # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bluez-firmware # bluez-firmware/files # bluez-firmware/pkg-plist # bluez-firmware/pkg-descr # bluez-firmware/distinfo # bluez-firmware/Makefile # bluez-firmware/pkg-message # echo c - bluez-firmware mkdir -p bluez-firmware > /dev/null 2>&1 echo c - bluez-firmware/files mkdir -p bluez-firmware/files > /dev/null 2>&1 echo x - bluez-firmware/pkg-plist sed 's/^X//' >bluez-firmware/pkg-plist << 'END-of-bluez-firmware/pkg-plist' Xlib/firmware/BCM2033-MD.hex Xlib/firmware/BCM2033-FW.bin Xlib/firmware/BCM-LEGAL.txt Xlib/firmware/STLC2500_R4_00_03.ptc Xlib/firmware/STLC2500_R4_00_06.ssf Xlib/firmware/STLC2500_R4_02_02_WLAN.ssf Xlib/firmware/STLC2500_R4_02_04.ptc END-of-bluez-firmware/pkg-plist echo x - bluez-firmware/pkg-descr sed 's/^X//' >bluez-firmware/pkg-descr << 'END-of-bluez-firmware/pkg-descr' XFormware for the Broadcom BCM2033 chip based Bluetooth USB devices. To Xbe downloaded with bcmfw(1). The ubtbcmfw(4) and ng_ubt(4) kernel Xmodules need to be installed. END-of-bluez-firmware/pkg-descr echo x - bluez-firmware/distinfo sed 's/^X//' >bluez-firmware/distinfo << 'END-of-bluez-firmware/distinfo' XMD5 (bluez-firmware-1.2.tar.gz) = 1cc3cefad872e937e05de5a0a2b390dd XSHA256 (bluez-firmware-1.2.tar.gz) = b6119e118fabc6bd34584afcbe6fff00a44caeb64152b02ed57c6fba9fd99eec XSIZE (bluez-firmware-1.2.tar.gz) = 370623 END-of-bluez-firmware/distinfo echo x - bluez-firmware/Makefile sed 's/^X//' >bluez-firmware/Makefile << 'END-of-bluez-firmware/Makefile' X# New ports collection makefile for: bluez-firmware X# Date created: 30 July 2007 X# Whom: dirkx@webweaving.org X# X# $FreeBSD$ X# X XPORTNAME= bluez-firmware XPORTVERSION= 1.2 XCATEGORIES= comms XMASTER_SITES= http://bluez.sourceforge.net/download/ X XMAINTAINER= dirkx@joost.com XCOMMENT= Firmware for the D-Link BCM2033 bluetooth adaptor for use by bcmfw(1) X XGNU_CONFIGURE= yes XCONFIGURE_ARGS+=--prefix=${PREFIX} X Xpost-install: X @${CAT} pkg-message X X.include <bsd.port.mk> END-of-bluez-firmware/Makefile echo x - bluez-firmware/pkg-message sed 's/^X//' >bluez-firmware/pkg-message << 'END-of-bluez-firmware/pkg-message' X XNOTICE X====== X XYou need to have the ubtbcmfw(8) and ng_ubt(8) kernel modules Xin our kernel. This can be accomplished by adding the following Xlines to /boot/loader.conf: X X ubtbcmfw_load=yes X ng_ubt_load=yes X XFurthermore you need to ensure that the bcmfw(1) utility downloads Xthe firmware into the dongle on insertion. This can be done by Xadding the followign lines to /etc/devd.conf: X X # Requires the port BCM2033 to be installed X # and the ubtbcmfw(8) and ng_ubt(8) kernel modules X # to be loaded prior to insertion. X # X attach 100 { X match "vendor" "0x0a5c"; X match "product" "0x2033"; X action "if test -d /usr/local/lib/firmware; then bcmfw -n $device-name -m /usr/local/lib/firmware/BCM2033-MD.hex -f /usr/local/lib/firmware/BCM2033-FW.bin; fi"; X } X Xor alternatively load these files manually with: X X cd /usr/local/lib/firmware X bcmfw -n ubtbcmfw0 -m BCM2033-MD.hex -f BCM2033-FW.bin X Xyou should then see the following lines in your dmesg(8): X X ubtbcmfw0: <vendor 0x0a5c product 0x2033, class 224/1, rev 1.01/0.a0, addr 7> on uhub0 X ubtbcmfw0: at uhub0 port 2 (addr 7) disconnected X ubtbcmfw0: detached X ubt0: <Broadcom Corp. BCM2033, class 224/1, rev 1.01/0.a0, addr 7> on uhub0 X ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 X ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=64; nframes=5, buffer size=320 X END-of-bluez-firmware/pkg-message exit >Description: BCM2033 bluetooth adaptor for use by bcmfw(1) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46ADC18A.9040500>