From 5e4c9c98c52f08d12a8ad43f72b2a7abf6ea8eb8 Mon Sep 17 00:00:00 2001 From: edwin Date: Thu, 6 Sep 2007 04:50:54 +0000 Subject: New port: comms/bluez-firmware Firmware for the D-Link BCM2033 bluetooth Firmware for the Broadcom BCM2033 chip based Bluetooth USB devices. To be downloaded with bcmfw(1). The ubtbcmfw(4) and ng_ubt(4) kernel modules need to be installed. PR: ports/115036 Submitted by: Dirk-Willem van Gulik --- comms/Makefile | 1 + comms/bluez-firmware/Makefile | 22 ++++++++++++++++++++++ comms/bluez-firmware/distinfo | 3 +++ comms/bluez-firmware/pkg-descr | 3 +++ comms/bluez-firmware/pkg-message | 39 +++++++++++++++++++++++++++++++++++++++ comms/bluez-firmware/pkg-plist | 8 ++++++++ 6 files changed, 76 insertions(+) create mode 100644 comms/bluez-firmware/Makefile create mode 100644 comms/bluez-firmware/distinfo create mode 100644 comms/bluez-firmware/pkg-descr create mode 100644 comms/bluez-firmware/pkg-message create mode 100644 comms/bluez-firmware/pkg-plist diff --git a/comms/Makefile b/comms/Makefile index 3b4943d295a..429373d18a3 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -11,6 +11,7 @@ SUBDIR += bforce SUBDIR += bforce-kst SUBDIR += birda + SUBDIR += bluez-firmware SUBDIR += bpl+ SUBDIR += cdr_read SUBDIR += chu diff --git a/comms/bluez-firmware/Makefile b/comms/bluez-firmware/Makefile new file mode 100644 index 00000000000..fd84d2509f2 --- /dev/null +++ b/comms/bluez-firmware/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: bluez-firmware +# Date created: 30 July 2007 +# Whom: dirkx@webweaving.org +# +# $FreeBSD$ +# + +PORTNAME= bluez-firmware +PORTVERSION= 1.2 +CATEGORIES= comms kld +MASTER_SITES= http://bluez.sourceforge.net/download/ + +MAINTAINER= dirkx@joost.com +COMMENT= Firmware for the D-Link BCM2033 bluetooth adaptor for use by bcmfw(1) + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--prefix=${PREFIX} + +post-install: + @${CAT} pkg-message + +.include diff --git a/comms/bluez-firmware/distinfo b/comms/bluez-firmware/distinfo new file mode 100644 index 00000000000..cc562984b03 --- /dev/null +++ b/comms/bluez-firmware/distinfo @@ -0,0 +1,3 @@ +MD5 (bluez-firmware-1.2.tar.gz) = 1cc3cefad872e937e05de5a0a2b390dd +SHA256 (bluez-firmware-1.2.tar.gz) = b6119e118fabc6bd34584afcbe6fff00a44caeb64152b02ed57c6fba9fd99eec +SIZE (bluez-firmware-1.2.tar.gz) = 370623 diff --git a/comms/bluez-firmware/pkg-descr b/comms/bluez-firmware/pkg-descr new file mode 100644 index 00000000000..53b397fbeff --- /dev/null +++ b/comms/bluez-firmware/pkg-descr @@ -0,0 +1,3 @@ +Formware for the Broadcom BCM2033 chip based Bluetooth USB devices. To +be downloaded with bcmfw(1). The ubtbcmfw(4) and ng_ubt(4) kernel +modules need to be installed. diff --git a/comms/bluez-firmware/pkg-message b/comms/bluez-firmware/pkg-message new file mode 100644 index 00000000000..937c37e059a --- /dev/null +++ b/comms/bluez-firmware/pkg-message @@ -0,0 +1,39 @@ + +NOTICE +====== + +You need to have the ubtbcmfw(8) and ng_ubt(8) kernel modules +in our kernel. This can be accomplished by adding the following +lines to /boot/loader.conf: + + ubtbcmfw_load=yes + ng_ubt_load=yes + +Furthermore you need to ensure that the bcmfw(1) utility downloads +the firmware into the dongle on insertion. This can be done by +adding the followign lines to /etc/devd.conf: + + # Requires the port BCM2033 to be installed + # and the ubtbcmfw(8) and ng_ubt(8) kernel modules + # to be loaded prior to insertion. + # + attach 100 { + match "vendor" "0x0a5c"; + match "product" "0x2033"; + 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"; + } + +or alternatively load these files manually with: + + cd /usr/local/lib/firmware + bcmfw -n ubtbcmfw0 -m BCM2033-MD.hex -f BCM2033-FW.bin + +you should then see the following lines in your dmesg(8): + + ubtbcmfw0: on uhub0 + ubtbcmfw0: at uhub0 port 2 (addr 7) disconnected + ubtbcmfw0: detached + ubt0: on uhub0 + ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 + ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=64; nframes=5, buffer size=320 + diff --git a/comms/bluez-firmware/pkg-plist b/comms/bluez-firmware/pkg-plist new file mode 100644 index 00000000000..aba71617116 --- /dev/null +++ b/comms/bluez-firmware/pkg-plist @@ -0,0 +1,8 @@ +lib/firmware/BCM2033-MD.hex +lib/firmware/BCM2033-FW.bin +lib/firmware/BCM-LEGAL.txt +lib/firmware/STLC2500_R4_00_03.ptc +lib/firmware/STLC2500_R4_00_06.ssf +lib/firmware/STLC2500_R4_02_02_WLAN.ssf +lib/firmware/STLC2500_R4_02_04.ptc +@dirrmtry lib/firmware -- cgit