summaryrefslogtreecommitdiff
path: root/recipes/misc-binary-only
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/misc-binary-only')
-rw-r--r--recipes/misc-binary-only/acx-firmware_1.0.bb20
-rw-r--r--recipes/misc-binary-only/at76c503-firmware_1.3.bb13
-rw-r--r--recipes/misc-binary-only/prism-firmware.bb31
-rw-r--r--recipes/misc-binary-only/prism-firmware/hostap.rules4
-rw-r--r--recipes/misc-binary-only/prism-firmware/prism-fw.sh32
-rw-r--r--recipes/misc-binary-only/prism2-firmware-update_1.7.4.bb45
-rw-r--r--recipes/misc-binary-only/tda1004x-firmware.bb38
-rw-r--r--recipes/misc-binary-only/tiinit_3.2.26.bb16
8 files changed, 199 insertions, 0 deletions
diff --git a/recipes/misc-binary-only/acx-firmware_1.0.bb b/recipes/misc-binary-only/acx-firmware_1.0.bb
new file mode 100644
index 0000000000..bfeaae773f
--- /dev/null
+++ b/recipes/misc-binary-only/acx-firmware_1.0.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "ACX (iPAQ HX4700/HTC Universal) wireless firmware."
+SECTION = "base"
+LICENSE = "Unknown"
+PR = "r2"
+RRECOMMENDS = "kernel-module-firmware-class"
+
+SRC_URI = "http://sdgsystems.com/pub/ipaq/hx4700/src/RADIO0d.BIN \
+ http://sdgsystems.com/pub/ipaq/hx4700/src/RADIO11.BIN \
+ http://sdgsystems.com/pub/ipaq/hx4700/src/WLANGEN.BIN "
+
+S = "${WORKDIR}"
+FILES_${PN} = "/lib"
+
+do_install() {
+ install -d ${D}/lib/firmware/
+ install -m 0644 RADIO0d.BIN RADIO11.BIN WLANGEN.BIN ${D}/lib/firmware/
+}
+
+PACKAGE_ARCH = "all"
+
diff --git a/recipes/misc-binary-only/at76c503-firmware_1.3.bb b/recipes/misc-binary-only/at76c503-firmware_1.3.bb
new file mode 100644
index 0000000000..161badf318
--- /dev/null
+++ b/recipes/misc-binary-only/at76c503-firmware_1.3.bb
@@ -0,0 +1,13 @@
+DESCRIPTION = "Atmel At76c503 802.11b wireless firmware."
+SECTION = "base"
+LICENSE = "Unknown"
+
+SRC_URI = "http://www.thekelleys.org.uk/atmel/atmel-firmware-${PV}.tar.gz"
+
+FILES_${PN} = "/lib"
+
+do_install() {
+ install -d ${D}/lib/firmware/
+ install -m 0644 ${WORKDIR}/atmel-firmware-1.3/images.usb/atmel_at76c503-rfmd.bin ${D}/lib/firmware/atmel_at76c503-rfmd.bin
+}
+
diff --git a/recipes/misc-binary-only/prism-firmware.bb b/recipes/misc-binary-only/prism-firmware.bb
new file mode 100644
index 0000000000..3e2cf4531c
--- /dev/null
+++ b/recipes/misc-binary-only/prism-firmware.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Firmware for the Prism 2.x/3 cards"
+SECTION = "base"
+LICENSE = "closed"
+RDEPENDS = "hostap-utils"
+RREPLACES = "prism3-firmware prism3-support"
+RCONFLICTS = "prism3-firmware prism3-support"
+PACKAGE_ARCH = "all"
+PR = "r3"
+
+SRC_URI = "http://www.red-bean.com/~proski/firmware/primary.tar.bz2 \
+ http://www.red-bean.com/~proski/firmware/1.7.4.tar.bz2 \
+ file://prism-fw.sh \
+ file://hostap.rules"
+
+do_install() {
+ install -d ${D}${base_libdir}/firmware/
+ install -d ${D}${base_libdir}/udev/
+ install -d ${D}${sysconfdir}/pcmcia/
+ install -d ${D}${sysconfdir}/udev/rules.d/
+
+ install -m 0644 ${WORKDIR}/primary/af010104.hex ${D}${base_libdir}/firmware/
+ install -m 0644 ${WORKDIR}/primary/ak010104.hex ${D}${base_libdir}/firmware/
+ install -m 0644 ${WORKDIR}/primary/pm010102.hex ${D}${base_libdir}/firmware/
+
+ install -m 0644 ${WORKDIR}/1.7.4/rf010704.hex ${D}${base_libdir}/firmware/
+
+ install -m 0755 ${WORKDIR}/prism-fw.sh ${D}${base_libdir}/udev/
+ install -m 0644 ${WORKDIR}/hostap.rules ${D}${sysconfdir}/udev/rules.d/
+}
+
+FILES_${PN} += "${base_libdir}"
diff --git a/recipes/misc-binary-only/prism-firmware/hostap.rules b/recipes/misc-binary-only/prism-firmware/hostap.rules
new file mode 100644
index 0000000000..dece98ae93
--- /dev/null
+++ b/recipes/misc-binary-only/prism-firmware/hostap.rules
@@ -0,0 +1,4 @@
+#
+# update firmware on Prism cards (load it to RAM, not to Flash)
+#
+SUBSYSTEM=="net", KERNEL=="wlan*" RUN="/lib/udev/prism-fw.sh"
diff --git a/recipes/misc-binary-only/prism-firmware/prism-fw.sh b/recipes/misc-binary-only/prism-firmware/prism-fw.sh
new file mode 100644
index 0000000000..619f612be1
--- /dev/null
+++ b/recipes/misc-binary-only/prism-firmware/prism-fw.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+CARD_ID=`/usr/sbin/hostap_diag $INTERFACE|grep NICID|awk '{print $2}'|sed -e 's/id=0x//'`
+
+# 801d cards lack even Primary firmware so we cannot use hostap_diag
+PRI=/lib/firmware/pm010102.hex
+STA=/lib/firmware/rf010704.hex
+
+if [ $CARD_ID = '800c' ] || [ $CARD_ID = '8013' ] || [ $CARD_ID = '8017' ] || \
+ [ $CARD_ID = '801b' ] || [ $CARD_ID = '8022' ] || [ $CARD_ID = '8023' ] ; then
+ PRI=/lib/firmware/ak010104.hex
+elif [ $CARD_ID = '800b' ] || [ $CARD_ID = '8012' ] || [ $CARD_ID = '8016' ] || \
+ [ $CARD_ID = '801a' ] ; then
+ PRI=/lib/firmware/af010104.hex
+elif [ $CARD_ID = '800e' ] || [ $CARD_ID = '8015' ] || [ $CARD_ID = '8019' ] || \
+ [ $CARD_ID = '801d' ] ; then
+ PRI=/lib/firmware/pm010102.hex
+fi
+
+DIR=/proc/net/hostap/wlan0
+
+if [ ! -d $DIR ]; then
+ exit 1
+fi
+
+if grep -q no_pri=1 $DIR/debug; then
+ /usr/sbin/prism2_srec -gs wlan0 $PRI
+ /usr/sbin/prism2_srec -gp wlan0 $PRI
+fi
+
+/usr/sbin/prism2_srec -rp wlan0 $STA
+
diff --git a/recipes/misc-binary-only/prism2-firmware-update_1.7.4.bb b/recipes/misc-binary-only/prism2-firmware-update_1.7.4.bb
new file mode 100644
index 0000000000..e37cfd6562
--- /dev/null
+++ b/recipes/misc-binary-only/prism2-firmware-update_1.7.4.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "one-time install package to upgrade the firmware of all installed prism2 based cards."
+RDEPENDS = "hostap-modules-pci hostap-utils"
+SECTION = "base"
+PRIORITY = "optional"
+LICENSE = "unknown"
+
+SRC_URI = "http://www.red-bean.com/~proski/firmware/${PV}.tar.bz2"
+
+INHIBIT_PACKAGE_STRIP = "1"
+
+do_install() {
+ install -d ${D}tmp
+ install ${WORKDIR}/${PV}/pk010101.hex ${D}tmp
+ install ${WORKDIR}/${PV}/sf010704.hex ${D}tmp
+}
+
+pkg_postinst() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ FW_VERSION="v${PV}";
+
+ fw_upgrade() {
+ IF=$1;
+ echo "firmware upgrade on $IF"
+ if [ ! `iwconfig $IF | grep "No such device"` ]; then
+ echo -n " - current firmware version: ";
+ echo `hostap_diag $IF | grep STAID | awk '{print $3}'`;
+ if [[ `hostap_diag $IF | grep STAID | awk '{print $3}'` < $FW_VERSION ]]; then
+ echo " - upgrading to version $FW_VERSION"
+ prism2_srec -f $IF /tmp/sf010704.hex /tmp/pk010101.hex
+ else
+ echo " - upgrade not necessary"
+ fi
+ fi
+ echo "done".
+ }
+
+ for i in `ls /proc/net/hostap`; do
+ fw_upgrade $i;
+ done;
+fi
+}
+
+FILES_${PN} += "/tmp"
diff --git a/recipes/misc-binary-only/tda1004x-firmware.bb b/recipes/misc-binary-only/tda1004x-firmware.bb
new file mode 100644
index 0000000000..1e4d68532f
--- /dev/null
+++ b/recipes/misc-binary-only/tda1004x-firmware.bb
@@ -0,0 +1,38 @@
+SECTION = "base"
+DEPENDS = "unzip-native"
+
+SRC_URI = "http://hauppauge.lightpath.net/de/nova-pci218c.exe"
+FILES_${PN} = '*'
+
+python do_unpack() {
+ import re
+
+ localdata = bb.data.createCopy(d)
+ overrides = bb.data.getVar('OVERRIDES', localdata, 1)
+ if not overrides:
+ raise bb.build.FuncFailed('OVERRIDES not defined')
+ bb.data.setVar('OVERRIDES', overrides+':'+bb.data.getVar('PN', localdata, 1), localdata)
+
+ bb.data.update_data(localdata)
+
+ src_uri = bb.data.getVar('SRC_URI', localdata)
+ if not src_uri:
+ return
+ src_uri = bb.data.expand(src_uri, localdata)
+
+ local = bb.data.expand(bb.fetch.localpath(src_uri, localdata), localdata)
+ # dont need any parameters for extraction, strip them off
+ local = re.sub(';.*$', '', local)
+ bindir = bb.data.getVar('STAGING_BINDIR_NATIVE', localdata, 1)
+ cmd = '%s/unzip %s' % (bindir, local)
+ if not os.path.exists(bb.data.getVar('S', localdata, 1)):
+ os.mkdir(bb.data.getVar('S', localdata, 1))
+ os.chdir(bb.data.getVar('S', localdata, 1))
+ bb.note("Unpacking %s to %s/" % (local, os.getcwd()))
+ ret = os.system(cmd)
+}
+
+do_install() {
+ install -d ${D}${prefix}/lib/hotplug/firmware
+ install -m 0644 software/OEM/PCI/App/ttlcdacc.dll ${D}${prefix}/lib/hotplug/firmware/tda1004x.bin
+}
diff --git a/recipes/misc-binary-only/tiinit_3.2.26.bb b/recipes/misc-binary-only/tiinit_3.2.26.bb
new file mode 100644
index 0000000000..c97f216f6d
--- /dev/null
+++ b/recipes/misc-binary-only/tiinit_3.2.26.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "TI Bluetooth init bits."
+SECTION = "base"
+LICENSE = "Unknown"
+PR = "r0"
+
+SRC_URI = "http://sdgsystems.com/pub/ipaq/hx4700/src/TIInit_${PV}.bts"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${D}${sysconfdir}/bluetooth/
+ install -m 0644 TIInit_${PV}.bts ${D}${sysconfdir}/bluetooth/
+}
+
+PACKAGE_ARCH = "all"
+