From patchwork Thu Nov 17 03:29:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eric Bavier X-Patchwork-Id: 17539 Received: (qmail 110101 invoked by uid 89); 17 Nov 2016 03:29:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=PREFIX, UD:fsf.org, D*fsf.org, networks X-Spam-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Nov 2016 03:29:33 +0000 Received: from localhost ([::1]:56438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7DOF-00033C-Lx for patchwork@sourceware.org; Wed, 16 Nov 2016 22:29:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7DO9-00032u-BM for guix-devel@gnu.org; Wed, 16 Nov 2016 22:29:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7DO6-000316-6H for guix-devel@gnu.org; Wed, 16 Nov 2016 22:29:25 -0500 Received: from mail.centurylink.net ([205.219.233.9]:21013 helo=smtp.centurylink.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7DO5-00030S-W2 for guix-devel@gnu.org; Wed, 16 Nov 2016 22:29:22 -0500 DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1479353360; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=+8sWIJs4G6WCnrW5zh8f6Or9tpk=; b=WnVqmwb+uDr7Bsy+ww8d75SSTGnjVkHD0uCsXoOFEeYd23ZIpiJsNUL9zzfa32X4 4ee70xGqZ9ghVZReqDIHqfBTV9pNicCQKax2oNdQ18sGjXSmsAJX2gp10E6nmb9p q+D2cE5up+Oxd4a+/XzMLk8JbvWUAu75Pgwaw0qZzioMe2v/3VhD7zy5KZzf5YXB kaL/iLZ6nnnvEJ6yNdei6Gn9pky0dTvcQc4SkkhgDgc96rbt2qnOkzYh2ayrO3b/ qEOWziKVG8gt3cgMEXWbEmCqcGzgdOnswGInyALapgbr3j4nznDP4jkoQm7lHTFr HPD3l+zCmUYRjDlGMXNbcA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=TZrUjlYh c=1 sm=1 tr=0 a=sFEP2mX1tL5fViBCPguW5Q==:117 a=sFEP2mX1tL5fViBCPguW5Q==:17 a=GElrjHt-Xbdo2sP5ItIA:9 a=CjuIK1q_8ugA:10 a=inoG4m36AAAA:8 a=mDV3o1hIAAAA:8 a=czEqCBWwAAAA:8 a=kmax8wIOAAAA:8 a=t9uF3GCncVSW6zZIUncA:9 a=gkovreo5ixgA:10 a=sY1KCyHw5C8A:10 a=_Qgj-RFg6mImvLaOgLPg:22 a=_FVE-zBwftR9WsbkzFJk:22 a=OmFN__tijDfpF5KAm2Nd:22 a=R901pdyXHirDHuoXLQbV:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZXJpY2JhdmllckBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=ericbavier@centurylink.net; auth=pass (LOGIN) Received: from [174.30.223.76] ([174.30.223.76:53358] helo=localhost) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id 82/24-27785-0142D285; Wed, 16 Nov 2016 22:29:20 -0500 Date: Wed, 16 Nov 2016 21:29:18 -0600 From: Eric Bavier To: guix-devel@gnu.org Subject: [PATCH] gnu: Add openfwwf-firmware. Message-ID: <20161116212918.5dd43c22@centurylink.net> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 205.219.233.9 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: bavier@member.fsf.org Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" Hello Guix, We've had at least one person on IRC confirm that this firmware package worked for them, allowing them to use their wireless hardware. Would it be appropriate to add this to %base-firmware? The output is rather small. `~Eric From c397f73d69326db24c211e4e2bda46e647d0e751 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Thu, 12 May 2016 13:57:01 -0500 Subject: [PATCH] gnu: Add openfwwf-firmware. * gnu/packages/firmware.scm (b43-tools, openfwwf-firmware): New variables. --- gnu/packages/firmware.scm | 92 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 45b7bf7..790e11e 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014, 2015 Ludovic Courtès +;;; Copyright © 2016 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -19,11 +20,14 @@ (define-module (gnu packages firmware) #:use-module (guix licenses) #:use-module (guix packages) + #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages bison) #:use-module (gnu packages cmake) #:use-module (gnu packages cross-base) + #:use-module (gnu packages flex) #:use-module (gnu packages perl)) (define-public ath9k-htc-firmware @@ -82,3 +86,91 @@ 802.11n NICs (aka Wi-Fi USB dongles). It is used by the ath9k driver of Linux-libre.") (license (non-copyleft "http://directory.fsf.org/wiki/License:ClearBSD")))) + +(define-public b43-tools + (let ((commit "8dce53297966b31b6c70a7a03c2433978dd9f288") + (rev "1")) + (package + (name "b43-tools") + (version (string-append "20140625-" rev "." (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "http://git.bues.ch/git/b43-tools.git") + (commit commit))) + (filename (string-append name "-" version "-checkout")) + (sha256 + (base32 + "08k7sdr9jagm43r2zv4h03j86klhkblpk73p12444a3vzg1gy1lv")))) + (build-system gnu-build-system) + (native-inputs + `(("flex" ,flex) + ("bison" ,bison))) + (arguments + `(#:modules ((srfi srfi-1) + (guix build gnu-build-system) + (guix build utils)) + #:tests? #f ;no tests + #:phases + (let ((subdirs '("assembler" "disassembler"))) ;TODO: fwcutter + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'patch-/bin/true + (lambda _ + (substitute* (find-files "." "Makefile") + (("/bin/true") ":")) + #t)) + (replace 'build + (lambda _ + (every (lambda (dir) + (zero? (system* "make" "-C" dir "CC=gcc"))) + subdirs))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir-p (string-append out "/bin")) + (every (lambda (dir) + (zero? + (system* "make" "-C" dir + (string-append "PREFIX=" out) + "install"))) + subdirs)))))))) + (home-page + "http://bues.ch/cms/hacking/misc.html#linux_b43_driver_firmware_tools") + (synopsis "Collection of tools for the b43 wireless driver") + (description + "The b43 firmware tools is a collection of firmware extractor, +assembler, disassembler, and debugging tools for the Linux kernel b43 wireless +driver.") + (license gpl2)))) + +(define-public openfwwf-firmware + (package + (name "openfwwf-firmware") + (version "5.2") + (source + (origin + (method url-fetch) + (uri (string-append "http://netweb.ing.unibs.it/~openfwwf/firmware/" + "openfwwf-" version ".tar.gz")) + (sha256 + (base32 + "1p60gdi7w88s7qw82d3g9v7mk887mhvidf4l5q5hh09j10h37q4x")))) + (build-system gnu-build-system) + (native-inputs + `(("b43-tools" ,b43-tools))) + (arguments + `(#:make-flags (list (string-append "PREFIX=" + (assoc-ref %outputs "out") + "/lib/firmware/b43-open")) + #:tests? #f ;no tests + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (home-page "http://netweb.ing.unibs.it/~openfwwf/") + (synopsis "Firmware for BCM43xx devices") + (description + "This is firmware from Open FirmWare for WiFi networks (OpenFWWF) for the +Broadcom/AirForce chipset BCM43xx with Wirelss-Core Revision 5. It is used by +the b43-open driver of Linux-libre.") + (license gpl2))) -- 2.10.2