diff options
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/orinoco/spectrum-fw.bb | 22 | ||||
-rwxr-xr-x | meta/recipes-bsp/orinoco/spectrum-fw/get_symbol_fw | 29 | ||||
-rwxr-xr-x | meta/recipes-bsp/orinoco/spectrum-fw/parse_symbol_fw | 129 | ||||
-rw-r--r-- | meta/recipes-bsp/prism-firmware/prism-firmware.bb | 32 | ||||
-rw-r--r-- | meta/recipes-bsp/prism-firmware/prism-firmware/hostap.rules | 4 | ||||
-rw-r--r-- | meta/recipes-bsp/prism-firmware/prism-firmware/prism-fw.sh | 32 |
6 files changed, 0 insertions, 248 deletions
diff --git a/meta/recipes-bsp/orinoco/spectrum-fw.bb b/meta/recipes-bsp/orinoco/spectrum-fw.bb deleted file mode 100644 index 45011d336..000000000 --- a/meta/recipes-bsp/orinoco/spectrum-fw.bb +++ /dev/null @@ -1,22 +0,0 @@ -DESCRIPTION = "Firmware for Spectrum Wireless LAN cards" -DEPENDS += " unzip-native " -LICENSE = "closed" -PR = "r2" - -SRC_URI = "http://ftp.osuosl.org/pub/nslu2/sources/MC&DriverOnlyInstallers.zip \ - file://get_symbol_fw \ - file://parse_symbol_fw" -S = "${WORKDIR}" - -do_configure() { - ./get_symbol_fw -} - -do_install() { - install -d ${D}${base_libdir}/firmware/ - install -m 0755 ${WORKDIR}/symbol_sp24t_prim_fw ${D}${base_libdir}/firmware/symbol_sp24t_prim_fw - install -m 0755 ${WORKDIR}/symbol_sp24t_sec_fw ${D}${base_libdir}/firmware/symbol_sp24t_sec_fw -} - -PACKAGE_ARCH = "all" -FILES_${PN} += "${base_libdir}/firmware/symbol*" diff --git a/meta/recipes-bsp/orinoco/spectrum-fw/get_symbol_fw b/meta/recipes-bsp/orinoco/spectrum-fw/get_symbol_fw deleted file mode 100755 index 80420b01a..000000000 --- a/meta/recipes-bsp/orinoco/spectrum-fw/get_symbol_fw +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# Get firmware for Symbol Spectrum24 Trilogy. -# Both the header file and the binary firmware files are produced. - -# Copyright (C) 2004 Pavel Roskin <proski@gnu.org> - -# This script is Free Software, and it can be copied, distributed and -# modified as defined in the GNU General Public License. A copy of -# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html - -# Usage: get_symbol_fw -# Output: spectrum_fw.h symbol_sp24t_prim_fw symbol_sp24t_sec_fw -# Needed tools: curl (or wget), unzip, perl. - -set -e - -DL_INT1='S24DRVR392B67-01.exe' -DL_INT2='Driver Only Installer/NetWLan5.sys' -DRIVER1=symbol1.drv -DRIVER2=symbol2.drv - -unzip -p $DL_INT1 "$DL_INT2" >$DRIVER2 - -perl parse_symbol_fw $DRIVER2 spectrum_fw.h symbol_sp24t_prim_fw \ - symbol_sp24t_sec_fw - -rm -f $DRIVER1 $DRIVER2 - diff --git a/meta/recipes-bsp/orinoco/spectrum-fw/parse_symbol_fw b/meta/recipes-bsp/orinoco/spectrum-fw/parse_symbol_fw deleted file mode 100755 index 7fe0ea57c..000000000 --- a/meta/recipes-bsp/orinoco/spectrum-fw/parse_symbol_fw +++ /dev/null @@ -1,129 +0,0 @@ -#!/usr/bin/perl -w - -# Extract Symbol firmware and convert is to a header file and two binary -# files. - -# Copyright (C) 2004 Pavel Roskin <proski@gnu.org> - -# This script is Free Software, and it can be copied, distributed and -# modified as defined in the GNU General Public License. A copy of -# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html - -# Usage: -# parse_symbol_fw infile header binfile1 binfile2 - -use strict; - -# Print message and exit (like "die", but without raising an exception). -# Newline is added at the end. -sub error -{ - printf STDERR "ERROR: "; - printf STDERR @_; - printf STDERR "\n"; - exit 1; -} - -sub readnum_ba () -{ - my $byte_a; - read INFILE,$byte_a,1; - my $byte_b; - read INFILE,$byte_b,1; - return (ord($byte_b) << 8) + ord($byte_a); -} - - -if ($#ARGV != 3) { - error ("Usage: parse_symbol_fw infile header binfile1 binfile2"); -} - -unless (open (INFILE, "< $ARGV[0]")) { - error ("couldn't open $ARGV[0] for reading: $!"); -} - -unless (open (OUTFILE, "> $ARGV[1]")) { - error ("couldn't open $ARGV[1] for writing: $!"); -} - -# Process one array, either for primary or for secondary firmware -sub process_one_array($$) { - my $arrname = shift(@_); - my $binfile = shift(@_); - my $offset = -1; - my $str_offset = 0; - - # Skip to the beginning of firmware - $/ = "\x00"; - while (<INFILE>) { - if (m{FILE: }g) { - $offset = $str_offset + pos() - 6; - last; - } - $str_offset = tell(INFILE); - } - - if ($offset == -1) { - error("Cannot find FILE: marker"); - } - - my @fwdata = split; - print $fwdata[1] . "\n"; - seek(INFILE, $offset, 0); - - my $blknum = $fwdata[3]; - my $pdrlen = $fwdata[4]; - my $crclen = $fwdata[5]; - my $compatlen = $fwdata[6]; - - while (!eof(INFILE)) { - my $byte; - read INFILE, $byte, 1; - last if (ord($byte) == 0x1a); - } - - # Walk all blocks - my $block = $blknum; - while ($block-- > 0) { - seek(INFILE, 4, 1); - my $len = readnum_ba(); - seek(INFILE, $len, 1); - } - - my $img_len = tell(INFILE) - $offset + $pdrlen + $crclen + $compatlen + 2; - seek(INFILE, $offset, 0); - - # Write binary file for the section - unless (open (BINFILE, "> $binfile")) { - error ("couldn't open $binfile for writing: $!"); - } - - # Output the array - printf OUTFILE "/* %s %s */\n", $fwdata[1], $fwdata[2]; - printf OUTFILE "static u8 %s[] = {\n", $arrname; - - my $count = 0; - while ($count++ < $img_len) { - my $byte; - read INFILE, $byte, 1; - $byte = ord($byte); - printf OUTFILE "0x%02x,", $byte; - printf BINFILE "%c", $byte; - if ($count % 16 == 0) { - printf OUTFILE "\n"; - } - } - - if ($img_len % 16) { - printf OUTFILE "\n"; - } - - print OUTFILE "};\n"; - close(BINFILE); -} - -process_one_array("primsym", $ARGV[2]); -process_one_array("secsym", $ARGV[3]); - -close(INFILE); -close(OUTFILE); diff --git a/meta/recipes-bsp/prism-firmware/prism-firmware.bb b/meta/recipes-bsp/prism-firmware/prism-firmware.bb deleted file mode 100644 index 903c55e15..000000000 --- a/meta/recipes-bsp/prism-firmware/prism-firmware.bb +++ /dev/null @@ -1,32 +0,0 @@ -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/ -} - -PACKAGES = "${PN}" -FILES_${PN} += "${base_libdir}" diff --git a/meta/recipes-bsp/prism-firmware/prism-firmware/hostap.rules b/meta/recipes-bsp/prism-firmware/prism-firmware/hostap.rules deleted file mode 100644 index dece98ae9..000000000 --- a/meta/recipes-bsp/prism-firmware/prism-firmware/hostap.rules +++ /dev/null @@ -1,4 +0,0 @@ -# -# 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/meta/recipes-bsp/prism-firmware/prism-firmware/prism-fw.sh b/meta/recipes-bsp/prism-firmware/prism-firmware/prism-fw.sh deleted file mode 100644 index 619f612be..000000000 --- a/meta/recipes-bsp/prism-firmware/prism-firmware/prism-fw.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 - |