2020-01-03 17:28:14 +01:00
|
|
|
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
|
2019-05-29 18:43:10 +02:00
|
|
|
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
2019-06-03 23:36:12 +02:00
|
|
|
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
|
2019-08-27 02:24:11 +02:00
|
|
|
;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
|
2019-05-11 18:36:21 +02:00
|
|
|
;;;
|
|
|
|
;;; This program is free software: you can redistribute it and/or modify
|
|
|
|
;;; it under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;;; (at your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; This program is distributed in the hope that it will be useful,
|
|
|
|
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2019-05-26 20:54:01 +02:00
|
|
|
(define-module (nongnu packages linux)
|
2019-05-30 10:48:38 +02:00
|
|
|
#:use-module (gnu packages)
|
2019-12-03 22:38:05 +01:00
|
|
|
#:use-module (gnu packages base)
|
2019-05-27 03:00:19 +02:00
|
|
|
#:use-module (gnu packages compression)
|
2019-05-11 18:36:21 +02:00
|
|
|
#:use-module (gnu packages linux)
|
2020-01-05 22:30:35 +01:00
|
|
|
#:use-module (guix licenses)
|
2019-05-11 18:36:21 +02:00
|
|
|
#:use-module (guix packages)
|
2019-05-30 10:48:38 +02:00
|
|
|
#:use-module (guix utils)
|
2019-05-11 18:36:21 +02:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix git-download)
|
2020-03-02 16:08:59 +01:00
|
|
|
#:use-module (guix build-system copy)
|
2020-01-05 18:50:23 +01:00
|
|
|
#:use-module (guix build-system gnu)
|
2019-05-30 10:48:38 +02:00
|
|
|
#:use-module (guix build-system linux-module)
|
2019-05-11 18:36:21 +02:00
|
|
|
#:use-module (guix build-system trivial)
|
2020-01-03 20:18:41 +01:00
|
|
|
#:use-module (ice-9 match)
|
2019-05-27 00:48:44 +02:00
|
|
|
#:use-module (nonguix licenses))
|
2019-05-11 18:36:21 +02:00
|
|
|
|
2019-05-11 20:13:50 +02:00
|
|
|
(define (linux-urls version)
|
|
|
|
"Return a list of URLS for Linux VERSION."
|
2019-05-30 12:21:59 +02:00
|
|
|
(list (string-append "https://www.kernel.org/pub/linux/kernel/v"
|
|
|
|
(version-major version) ".x/linux-" version ".tar.xz")))
|
2019-05-11 20:13:50 +02:00
|
|
|
|
|
|
|
(define (corrupt-linux freedo version hash)
|
2019-05-11 18:36:21 +02:00
|
|
|
(package
|
2019-05-11 20:13:50 +02:00
|
|
|
(inherit freedo)
|
2019-05-11 18:36:21 +02:00
|
|
|
(name "linux")
|
2019-05-11 20:13:50 +02:00
|
|
|
(version version)
|
2019-05-11 18:36:21 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2019-05-11 20:13:50 +02:00
|
|
|
(uri (linux-urls version))
|
|
|
|
(sha256 (base32 hash))))
|
2019-05-11 18:36:21 +02:00
|
|
|
(home-page "https://www.kernel.org/")
|
|
|
|
(synopsis "Linux kernel with nonfree binary blobs included")
|
|
|
|
(description
|
2020-04-01 14:50:19 +02:00
|
|
|
"The unmodified Linux kernel, including nonfree blobs, for running Guix
|
|
|
|
System on hardware which requires nonfree software to function.")))
|
2019-05-11 18:36:21 +02:00
|
|
|
|
2019-12-19 14:34:14 +01:00
|
|
|
(define-public linux-5.4
|
2020-06-17 16:52:31 +02:00
|
|
|
(corrupt-linux linux-libre-5.4 "5.4.47"
|
|
|
|
"0v4d86yci4lq82nb1fgf0g3j0348v6q6m77czpm4b3cs7lwrs2wp"))
|
2019-10-02 16:42:58 +02:00
|
|
|
|
2019-05-27 23:53:00 +02:00
|
|
|
(define-public linux-4.19
|
2020-06-10 23:12:55 +02:00
|
|
|
(corrupt-linux linux-libre-4.19 "4.19.128"
|
|
|
|
"0g31ad3wziy4xqna0yvwjcnza3jhd93syjpfvmwh0b4pkj2adar9"))
|
2019-05-27 23:53:00 +02:00
|
|
|
|
2019-05-27 23:53:55 +02:00
|
|
|
(define-public linux-4.14
|
2020-06-20 17:21:48 +02:00
|
|
|
(corrupt-linux linux-libre-4.14 "4.14.185"
|
|
|
|
"1iixxwidp53s2i2br58wbx5s69f2jcllb116z73pv7fmd06b2czk"))
|
2019-05-27 23:53:55 +02:00
|
|
|
|
2019-05-27 23:54:30 +02:00
|
|
|
(define-public linux-4.9
|
2020-06-20 17:21:17 +02:00
|
|
|
(corrupt-linux linux-libre-4.9 "4.9.228"
|
|
|
|
"0d7w2zzs79ywxzfrh4bmk5lw318qbkcb8mcsyyh3cc25qqlz9gwg"))
|
2019-05-27 23:54:30 +02:00
|
|
|
|
2019-05-27 23:55:11 +02:00
|
|
|
(define-public linux-4.4
|
2020-06-20 17:20:51 +02:00
|
|
|
(corrupt-linux linux-libre-4.4 "4.4.228"
|
|
|
|
"0y1xc5lk8j3p5maarksmh18wy921rgcngzsih7q1a82rah1fsjxr"))
|
2019-05-27 23:55:11 +02:00
|
|
|
|
2019-12-19 14:34:14 +01:00
|
|
|
(define-public linux linux-5.4)
|
2019-10-02 16:25:31 +02:00
|
|
|
|
2019-05-11 18:36:21 +02:00
|
|
|
(define-public linux-firmware
|
2019-12-03 22:38:05 +01:00
|
|
|
(package
|
|
|
|
(name "linux-firmware")
|
2020-06-19 23:08:39 +02:00
|
|
|
(version "20200619")
|
2019-12-03 22:38:05 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://git.kernel.org/pub/scm/linux/kernel"
|
|
|
|
"/git/firmware/linux-firmware.git/snapshot/"
|
|
|
|
"linux-firmware-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-19 23:08:39 +02:00
|
|
|
"1i8gnmsppq531mzmq9z72w2h4wyn6dvynzvbr6xsqp2iqw0sjsi5"))))
|
2020-01-05 18:50:23 +01:00
|
|
|
(build-system gnu-build-system)
|
2019-12-03 22:38:05 +01:00
|
|
|
(arguments
|
2020-01-05 18:50:23 +01:00
|
|
|
`(#:tests? #f
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(invoke "make" "install"
|
|
|
|
(string-append "DESTDIR=" out)))))
|
|
|
|
(delete 'validate-runpath))))
|
2019-12-03 22:38:05 +01:00
|
|
|
(home-page
|
2020-01-03 17:28:14 +01:00
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git")
|
2019-12-03 22:38:05 +01:00
|
|
|
(synopsis "Nonfree firmware blobs for Linux")
|
|
|
|
(description "Nonfree firmware blobs for enabling support for various
|
2019-05-29 19:29:52 +02:00
|
|
|
hardware in the Linux kernel. This is a large package which may be overkill
|
|
|
|
if your hardware is supported by one of the smaller firmware packages.")
|
2019-12-03 22:38:05 +01:00
|
|
|
(license
|
|
|
|
(nonfree
|
|
|
|
(string-append "https://git.kernel.org/pub/scm/linux/kernel/git/"
|
|
|
|
"firmware/linux-firmware.git/plain/WHENCE")))))
|
2019-05-25 20:19:47 +02:00
|
|
|
|
2019-06-03 03:43:52 +02:00
|
|
|
(define-public amdgpu-firmware
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "amdgpu-firmware")
|
2020-01-05 19:18:46 +01:00
|
|
|
(build-system gnu-build-system)
|
2019-06-03 03:43:52 +02:00
|
|
|
(arguments
|
2020-01-05 19:18:46 +01:00
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENSE.amdgpu"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware"))
|
|
|
|
(bin-dir (string-append fw-dir "/amdgpu")))
|
|
|
|
(mkdir-p bin-dir)
|
|
|
|
(copy-recursively "./amdgpu" bin-dir)
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
2019-06-03 03:43:52 +02:00
|
|
|
(home-page "http://support.amd.com/en-us/download/linux")
|
|
|
|
(synopsis "Nonfree firmware for AMD graphics chips")
|
|
|
|
(description "Nonfree firmware for AMD graphics chips. While most AMD
|
|
|
|
graphics cards can be run with the free Mesa, many modern cards require a
|
|
|
|
nonfree kernel module to run properly and support features like hibernation and
|
|
|
|
advanced 3D.")
|
|
|
|
(license
|
|
|
|
(nonfree
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENSE.amdgpu")))))
|
|
|
|
|
2020-04-01 16:31:47 +02:00
|
|
|
(define-public radeon-firmware
|
|
|
|
(package
|
|
|
|
(inherit amdgpu-firmware)
|
|
|
|
(name "radeon-firmware")
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENSE.radeon"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware"))
|
|
|
|
(bin-dir (string-append fw-dir "/radeon")))
|
|
|
|
(mkdir-p bin-dir)
|
|
|
|
(copy-recursively "./radeon" bin-dir)
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
|
|
|
(synopsis "Nonfree firmware for older AMD graphics chips")
|
|
|
|
(description "Nonfree firmware for AMD graphics chips. While most AMD
|
|
|
|
graphics cards can be run with the free Mesa, some cards require a nonfree
|
|
|
|
kernel module to run properly and support features like hibernation and
|
|
|
|
advanced 3D.")))
|
|
|
|
|
2020-01-05 22:06:41 +01:00
|
|
|
(define-public atheros-firmware
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "atheros-firmware")
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp
|
|
|
|
"LICEN[CS]E.*[Aa]th"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware"))
|
|
|
|
(bin-dir (string-append fw-dir "/ar3k")))
|
|
|
|
(for-each (lambda (dir)
|
|
|
|
(let ((bin-dir (string-append fw-dir "/" dir)))
|
|
|
|
(mkdir-p bin-dir)
|
|
|
|
(copy-recursively dir bin-dir)))
|
|
|
|
'("ar3k" "ath6k" "ath9k_htc" "ath10k" "qca"))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file fw-dir))
|
|
|
|
(append (find-files "." "^a(r|th).*\\.(bin|fw)$")
|
|
|
|
(find-files "." "^htc_.*\\.fw$")
|
|
|
|
(find-files "." "^wil.*\\.(brd|fw)$")))
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
|
|
|
(synopsis "Nonfree firmware blobs for Atheros wireless cards")
|
|
|
|
(description "Nonfree firmware blobs for Atheros wireless cards. This
|
|
|
|
package contains nonfree firmware for the following chips:
|
|
|
|
@itemize
|
|
|
|
@item Atheros AR3012 rev 01020001 patch (ar3k/AthrBT_0x01020001.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020200 patch (ar3k/AthrBT_0x01020200.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020201 patch, version 170 (ar3k/AthrBT_0x01020201.dfu)
|
|
|
|
@item Atheros AR3012 rev 11020000 patch (ar3k/AthrBT_0x11020000.dfu)
|
|
|
|
@item Atheros AR3012 rev 11020100 patch (ar3k/AthrBT_0x11020100.dfu)
|
|
|
|
@item Atheros AR3012 rev 31010000 patch (ar3k/AthrBT_0x31010000.dfu)
|
|
|
|
@item Atheros AR3012 rev 31010100 patch (ar3k/AthrBT_0x31010100.dfu)
|
|
|
|
@item Atheros AR3012 rev 41020000 patch (ar3k/AthrBT_0x41020000.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020001 config (ar3k/ramps_0x01020001_26.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020200 26 MHz config (ar3k/ramps_0x01020200_26.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020200 40 MHz config (ar3k/ramps_0x01020200_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020201 26 MHz config (ar3k/ramps_0x01020201_26.dfu)
|
|
|
|
@item Atheros AR3012 rev 01020201 40 MHz config (ar3k/ramps_0x01020201_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 11020000 config (ar3k/ramps_0x11020000_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 11020100 config (ar3k/ramps_0x11020100_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 31010000 config (ar3k/ramps_0x31010000_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 31010100 config (ar3k/ramps_0x31010100_40.dfu)
|
|
|
|
@item Atheros AR3012 rev 41020000 config (ar3k/ramps_0x41020000_40.dfu)
|
|
|
|
@item Atheros AR5523 firmware (ar5523.bin)
|
|
|
|
@item Atheros AR7010 rev 1.0 firmware (ar7010.fw)
|
|
|
|
@item Atheros AR7010 rev 1.1 firmware (ar7010_1_1.fw)
|
|
|
|
@item Atheros AR9271 firmware (ar9271.fw)
|
|
|
|
@item Qualcomm Atheros QCA4019 rev 1.0 board configuration
|
|
|
|
(ath10k/QCA4019/hw1.0/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA4019 rev 1.0 firmware, version 10.4-3.6-00140
|
|
|
|
(ath10k/QCA4019/hw1.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 2.1 board configuration, version 1
|
|
|
|
(ath10k/QCA6174/hw2.1/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 2.1 board configuration, version 2
|
|
|
|
(ath10k/QCA6174/hw2.1/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 2.1 firmware, version
|
|
|
|
SW_RM.1.1.1-00157-QCARMSWPZ-1 (ath10k/QCA6174/hw2.1/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 3.0 board configuration, version 1
|
|
|
|
(ath10k/QCA6174/hw3.0/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 3.0 board configuration
|
|
|
|
(ath10k/QCA6174/hw3.0/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 3.0 firmware, version
|
|
|
|
WLAN.RM.2.0-00180-QCARMSWPZ-1 (ath10k/QCA6174/hw3.0/firmware-4.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 rev 3.0 firmware, version
|
|
|
|
WLAN.RM.4.4.1-00079-QCARMSWPZ-1 (ath10k/QCA6174/hw3.0/firmware-6.bin)
|
|
|
|
@item Qualcomm Atheros QCA9377 rev 1.0 board configuration, version 1
|
|
|
|
(ath10k/QCA9377/hw1.0/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA9377 rev 1.0 board configuration, version 2
|
|
|
|
(ath10k/QCA9377/hw1.0/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA9377 rev 1.0 firmware, version WLAN.TF.1.0-00267-1
|
|
|
|
(ath10k/QCA9377/hw1.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA9377 rev 1.0 firmware, version
|
|
|
|
WLAN.TF.2.1-00021-QCARMSWP-1 (ath10k/QCA9377/hw1.0/firmware-6.bin)
|
|
|
|
@item Qualcomm Atheros QCA9887 rev 1.0 board configuration, version 1
|
|
|
|
(ath10k/QCA9887/hw1.0/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA9887 rev 1.0 firmware, version 10.2.4-1.0-00041
|
|
|
|
(ath10k/QCA9887/hw1.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA9888 rev 2.0 board configuration, version 2
|
|
|
|
(ath10k/QCA9888/hw2.0/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA9888 rev 2.0 firmware, version 10.4-3.9.0.2-00024
|
|
|
|
(ath10k/QCA9888/hw2.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA988X board configuration, version 1
|
|
|
|
(ath10k/QCA988X/hw2.0/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA988X firmware, version 10.2.4.45
|
|
|
|
(ath10k/QCA988X/hw2.0/firmware-4.bin)
|
|
|
|
@item Qualcomm Atheros QCA988X firmware, version 10.2.4-1.0-00043
|
|
|
|
(ath10k/QCA988X/hw2.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA9984 rev 1.0 board configuration, version 2
|
|
|
|
(ath10k/QCA9984/hw1.0/board-2.bin)
|
|
|
|
@item Qualcomm Atheros QCA9984 rev 1.0 firmware, version 10.4-3.9.0.2-00021
|
|
|
|
(ath10k/QCA9984/hw1.0/firmware-5.bin)
|
|
|
|
@item Qualcomm Atheros QCA99X0 board configuration, version 1
|
|
|
|
(ath10k/QCA99X0/hw2.0/board.bin)
|
|
|
|
@item Qualcomm Atheros QCA99X0 firmware, version 10.4.1.00030-1
|
|
|
|
(ath10k/QCA99X0/hw2.0/firmware-5.bin)
|
|
|
|
@item Atheros AR3011 firmware (ath3k-1.fw)
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/athwlan.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/bdata.SD31.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/bdata.SD32.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/bdata.WB31.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/data.patch.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/endpointping.bin
|
|
|
|
@item ath6k/AR6003.1/hw2.1.1/otp.bin
|
|
|
|
@item ath6k/AR6003/hw1.0/athwlan.bin.z77
|
|
|
|
@item ath6k/AR6003/hw1.0/bdata.SD31.bin
|
|
|
|
@item ath6k/AR6003/hw1.0/bdata.SD32.bin
|
|
|
|
@item ath6k/AR6003/hw1.0/bdata.WB31.bin
|
|
|
|
@item ath6k/AR6003/hw1.0/data.patch.bin
|
|
|
|
@item ath6k/AR6003/hw1.0/otp.bin.z77
|
|
|
|
@item ath6k/AR6003/hw2.0/athwlan.bin.z77
|
|
|
|
@item ath6k/AR6003/hw2.0/bdata.SD31.bin
|
|
|
|
@item ath6k/AR6003/hw2.0/bdata.SD32.bin
|
|
|
|
@item ath6k/AR6003/hw2.0/bdata.WB31.bin
|
|
|
|
@item ath6k/AR6003/hw2.0/data.patch.bin
|
|
|
|
@item ath6k/AR6003/hw2.0/otp.bin.z77
|
|
|
|
@item ath6k/AR6003/hw2.1.1/athwlan.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/bdata.SD31.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/bdata.SD32.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/bdata.WB31.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/data.patch.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/endpointping.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/fw-2.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/fw-3.bin
|
|
|
|
@item ath6k/AR6003/hw2.1.1/otp.bin
|
|
|
|
@item ath6k/AR6004/hw1.2/bdata.bin
|
|
|
|
@item ath6k/AR6004/hw1.2/fw-2.bin
|
|
|
|
@item ath6k/AR6004/hw1.3/bdata.bin
|
|
|
|
@item ath6k/AR6004/hw1.3/fw-3.bin
|
|
|
|
@item Atheros AR7010 firmware, version 1.4.0 (ath9k_htc/htc_7010-1.4.0.fw)
|
|
|
|
@item Atheros AR9271 firmware, version 1.4.0 (ath9k_htc/htc_9271-1.4.0.fw)
|
|
|
|
@item Atheros AR7010 firmware, version 1.3.1 (htc_7010.fw)
|
|
|
|
@item Atheros AR9271 firmware, version 1.3.1 (htc_9271.fw)
|
|
|
|
@item Qualcomm WCN3990 Bluetooth firmware (qca/crbtfw21.tlv)
|
|
|
|
@item Qualcomm WCN3990 Bluetooth NVM configuration (qca/crnv21.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.0 UART BT NVM configuration
|
|
|
|
(qca/nvm_00130300.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.2 UART BT NVM configuration
|
|
|
|
(qca/nvm_00130302.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 BT NVM configuration (qca/nvm_00440302.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 2.0 USB BT NVM configuration
|
|
|
|
(qca/nvm_usb_00000200.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 2.1 USB BT NVM configuration
|
|
|
|
(qca/nvm_usb_00000201.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.0 USB BT NVM configuration
|
|
|
|
(qca/nvm_usb_00000300.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.2 USB BT NVM configuration
|
|
|
|
(qca/nvm_usb_00000302.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.0 UART BT rampatch
|
|
|
|
(qca/rampatch_00130300.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.2 UART BT rampatch
|
|
|
|
(qca/rampatch_00130302.bin)
|
|
|
|
@item Qualcomm Atheros QCA6174 BT rampatch (qca/rampatch_00440302.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 2.0 USB BT rampatch
|
|
|
|
(qca/rampatch_usb_00000200.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 2.1 USB BT rampatch
|
|
|
|
(qca/rampatch_usb_00000201.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.0 USB BT rampatch
|
|
|
|
(qca/rampatch_usb_00000300.bin)
|
|
|
|
@item Qualcomm Atheros QCA61x4 version 3.2 USB BT rampatch
|
|
|
|
(qca/rampatch_usb_00000302.bin)
|
|
|
|
@item Qualcomm Atheros Wil62x0 default board parameters, version 5.2.0.18
|
|
|
|
(wil6210.brd)
|
|
|
|
@item Qualcomm Atheros Wil62x0 firmware, version 5.2.0.18 (wil6210.fw)
|
|
|
|
@end itemize")
|
|
|
|
(license
|
|
|
|
(list
|
|
|
|
(nonfree
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENCE.atheros_firmware"))
|
2020-01-05 22:30:35 +01:00
|
|
|
(non-copyleft
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENCE.open-ath9k-htc-firmware"))
|
|
|
|
(nonfree
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
2020-01-05 22:47:29 +01:00
|
|
|
"/linux-firmware.git/plain/LICENSE.QualcommAtheros_ar3k"))
|
2020-01-05 22:06:41 +01:00
|
|
|
(nonfree
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
2020-01-05 22:30:35 +01:00
|
|
|
"/linux-firmware.git/plain/LICENSE.QualcommAtheros_ath10k"))))))
|
2020-01-05 22:06:41 +01:00
|
|
|
|
2019-05-25 20:19:47 +02:00
|
|
|
(define-public ath3k-firmware
|
2020-01-05 22:07:59 +01:00
|
|
|
(deprecated-package "ath3k-firmware" atheros-firmware))
|
2019-05-27 03:00:19 +02:00
|
|
|
|
2020-03-22 13:51:34 +01:00
|
|
|
(define-public ibt-hw-firmware
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "ibt-hw-firmware")
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENCE.ibt_firmware"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware")))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file fw-dir))
|
|
|
|
(find-files "." "ibt-hw-.*\\.bseq$"))
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
|
|
|
(home-page "http://www.intel.com/support/wireless/wlan/sb/CS-016675.htm")
|
|
|
|
(synopsis "Non-free firmware for Intel bluetooth chips")
|
|
|
|
(description "This firmware is required by the btintel kernel module to
|
|
|
|
support many modern bluetooth Intel wireless cards (commonly found in
|
|
|
|
laptops).")
|
|
|
|
(license
|
|
|
|
(nonfree (string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENCE.ibt_firmware")))))
|
|
|
|
|
2019-05-29 19:43:22 +02:00
|
|
|
(define-public iwlwifi-firmware
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "iwlwifi-firmware")
|
2020-01-05 19:46:35 +01:00
|
|
|
(build-system gnu-build-system)
|
2019-05-29 19:43:22 +02:00
|
|
|
(arguments
|
2020-01-05 19:46:35 +01:00
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENCE.iwlwifi_firmware"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware")))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file fw-dir))
|
|
|
|
(find-files "." "iwlwifi-.*\\.ucode$"))
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
2019-05-29 19:43:22 +02:00
|
|
|
(home-page "https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi")
|
|
|
|
(synopsis "Nonfree firmware for Intel wifi chips")
|
|
|
|
(description "The proprietary iwlwifi kernel module is required by many
|
|
|
|
modern Intel wifi cards (commonly found in laptops). This blob enables
|
|
|
|
support for 5GHz and 802.11ac, among others.")
|
|
|
|
(license
|
|
|
|
(nonfree (string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENCE.iwlwifi_firmware")))))
|
|
|
|
|
2020-01-05 20:30:37 +01:00
|
|
|
(define-public realtek-firmware
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "realtek-firmware")
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENCE.rtlwifi_firmware.txt"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware")))
|
|
|
|
(for-each (lambda (dir)
|
|
|
|
(let ((bin-dir (string-append fw-dir "/" dir)))
|
|
|
|
(mkdir-p bin-dir)
|
|
|
|
(copy-recursively dir bin-dir)))
|
|
|
|
'("rtlwifi" "rtl_nic" "rtl_bt"))
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
|
|
|
(home-page "https://wireless.wiki.kernel.org/en/users/drivers/rtl819x")
|
|
|
|
(synopsis "Nonfree firmware for Realtek ethernet, wifi, and bluetooth chips")
|
|
|
|
(description
|
|
|
|
"Nonfree firmware for Realtek ethernet, wifi, and Bluetooth chips. This
|
|
|
|
package contains nonfree firmware for the following chips:
|
|
|
|
@itemize
|
|
|
|
@item Realtek RTL8188EE firmware (rtlwifi/rtl8188efw.bin)
|
|
|
|
@item Realtek RTL8188EU firmware (rtlwifi/rtl8188eufw.bin)
|
|
|
|
@item Realtek RTL8192CE/RTL8188CE firmware (rtlwifi/rtl8192cfw.bin)
|
|
|
|
@item Realtek RTL8192CE/RTL8188CE B-cut firmware (rtlwifi/rtl8192cfwU_B.bin)
|
|
|
|
@item Realtek RTL8188CE A-cut firmware, version 4.816.2011 (rtlwifi/rtl8192cfwU.bin)
|
|
|
|
@item Realtek RTL8192CU/RTL8188CU UMC A-cut firmware (rtlwifi/rtl8192cufw_A.bin)
|
|
|
|
@item Realtek RTL8192CU/RTL8188CU UMC B-cut firmware (rtlwifi/rtl8192cufw_B.bin)
|
|
|
|
@item Realtek RTL8192CU/RTL8188CU TMSC firmware (rtlwifi/rtl8192cufw_TMSC.bin)
|
|
|
|
@item Realtek RTL8192CU/RTL8188CU fallback firmware (rtlwifi/rtl8192cufw.bin)
|
|
|
|
@item Realtek RTL8192DE firmware (rtlwifi/rtl8192defw.bin)
|
|
|
|
@item Realtek RTL8192EE wifi firmware (rtlwifi/rtl8192eefw.bin)
|
|
|
|
@item Realtek RTL8192EU non-WoWLAN firmware (rtlwifi/rtl8192eu_nic.bin)
|
|
|
|
@item Realtek RTL8192EU WoWLAN firmware (rtlwifi/rtl8192eu_wowlan.bin)
|
|
|
|
@item Realtek RTL8192SE/RTL8191SE firmware, version 4.816.2011 (rtlwifi/rtl8192sefw.bin)
|
|
|
|
@item Realtek RTL8192SU/RTL8712U firmware (rtlwifi/rtl8712u.bin)
|
|
|
|
@item Realtek RTL8723AU rev A wifi-with-BT firmware (rtlwifi/rtl8723aufw_A.bin)
|
|
|
|
@item Realtek RTL8723AU rev B wifi-with-BT firmware (rtlwifi/rtl8723aufw_B.bin)
|
|
|
|
@item Realtek RTL8723AU rev B wifi-only firmware (rtlwifi/rtl8723aufw_B_NoBT.bin)
|
|
|
|
@item Realtek RTL8723BE firmware, version 36 (rtlwifi/rtl8723befw_36.bin)
|
|
|
|
@item Realtek RTL8723BE firmware (rtlwifi/rtl8723befw.bin)
|
|
|
|
@item Realtek RTL8723BS BT firmware (rtlwifi/rtl8723bs_bt.bin)
|
|
|
|
@item Realtek RTL8723BS wifi non-WoWLAN firmware (rtlwifi/rtl8723bs_nic.bin)
|
|
|
|
@item Realtek RTL8723BS wifi WoWLAN firmware (rtlwifi/rtl8723bs_wowlan.bin)
|
|
|
|
@item Realtek RTL8723BU non-WoWLAN firmware (rtlwifi/rtl8723bu_nic.bin)
|
|
|
|
@item Realtek RTL8723BU WoWLAN firmware (rtlwifi/rtl8723bu_wowlan.bin)
|
|
|
|
@item Realtek RTL8723DE firmware (rtlwifi/rtl8723defw.bin)
|
|
|
|
@item Realtek RTL8723AE rev B firmware (rtlwifi/rtl8723fw_B.bin)
|
|
|
|
@item Realtek RTL8723AE rev A firmware (rtlwifi/rtl8723fw.bin)
|
|
|
|
@item Realtek RTL8821AE firmware, version 29 (rtlwifi/rtl8821aefw_29.bin)
|
|
|
|
@item Realtek RTL8821AE firmware (rtlwifi/rtl8821aefw_wowlan.bin)
|
|
|
|
@item Realtek RTL8821AE firmware (rtlwifi/rtl8821aefw.bin)
|
|
|
|
@item Realtek RTL8822BE firmware (rtlwifi/rtl8822befw.bin)
|
|
|
|
@item Realtek RTL8105E-1 firmware (rtl_nic/rtl8105e-1.fw)
|
|
|
|
@item Realtek RTL8106E-1 firmware, version 0.0.1 (rtl_nic/rtl8106e-1.fw)
|
|
|
|
@item Realtek RTL8106E-2 firmware, version 0.0.1 (rtl_nic/rtl8106e-2.fw)
|
|
|
|
@item Realtek RTL8107E-1 firmware, version 0.0.2 (rtl_nic/rtl8107e-1.fw)
|
|
|
|
@item Realtek RTL8107E-2 firmware, version 0.0.2 (rtl_nic/rtl8107e-2.fw)
|
|
|
|
@item Realtek RTL8111D-1/RTL8168D-1 firmware (rtl_nic/rtl8168d-1.fw)
|
|
|
|
@item Realtek RTL8111D-2/RTL8168D-2 firmware (rtl_nic/rtl8168d-2.fw)
|
|
|
|
@item Realtek RTL8168E-1 firmware (rtl_nic/rtl8168e-1.fw)
|
|
|
|
@item Realtek RTL8168E-2 firmware (rtl_nic/rtl8168e-2.fw)
|
|
|
|
@item Realtek RTL8168E-3 firmware, version 0.0.4 (rtl_nic/rtl8168e-3.fw)
|
|
|
|
@item Realtek RTL8168F-1 firmware, version 0.0.5 (rtl_nic/rtl8168f-1.fw)
|
|
|
|
@item Realtek RTL8168F-2 firmware, version 0.0.4 (rtl_nic/rtl8168f-2.fw)
|
|
|
|
@item Realtek RTL8168G-1 firmware, version 0.0.3 (rtl_nic/rtl8168g-1.fw)
|
|
|
|
@item Realtek RTL8168G-2 firmware, version 0.0.1 (rtl_nic/rtl8168g-2.fw)
|
|
|
|
@item Realtek RTL8168G-3 firmware, version 0.0.1 (rtl_nic/rtl8168g-3.fw)
|
|
|
|
@item Realtek RTL8168H-1 firmware, version 0.0.2 (rtl_nic/rtl8168h-1.fw)
|
|
|
|
@item Realtek RTL8168H-2 firmware, version 0.0.2 (rtl_nic/rtl8168h-2.fw)
|
|
|
|
@item Realtek RTL8402-1 firmware, version 0.0.1 (rtl_nic/rtl8402-1.fw)
|
|
|
|
@item Realtek RTL8411-1 firmware, version 0.0.3 (rtl_nic/rtl8411-1.fw)
|
|
|
|
@item Realtek RTL8411-2 firmware, version 0.0.1 (rtl_nic/rtl8411-2.fw)
|
|
|
|
@item Realtek RTL8192EE Bluetooth firmware (rtl_bt/rtl8192ee_fw.bin)
|
|
|
|
@item Realtek RTL8812AE Bluetooth firmware (rtl_bt/rtl8812ae_fw.bin)
|
|
|
|
@item Realtek RTL8761A Bluetooth firmware (rtl_bt/rtl8761a_fw.bin)
|
|
|
|
@item Realtek RTL8821A Bluetooth firmware (rtl_bt/rtl8821a_fw.bin)
|
|
|
|
@item Realtek RTL8192EU Bluetooth firmware (rtl_bt/rtl8192eu_fw.bin)
|
|
|
|
@item Realtek RTL8723AU rev A Bluetooth firmware (rtl_bt/rtl8723a_fw.bin)
|
|
|
|
@item Realtek RTL8723BU rev B Bluetooth firmware (rtl_bt/rtl8723b_fw.bin)
|
|
|
|
@item Realtek RTL8723D Bluetooth config (rtl_bt/rtl8723d_config.bin)
|
|
|
|
@item Realtek RTL8723D Bluetooth firmware (rtl_bt/rtl8723d_fw.bin)
|
|
|
|
@item Realtek RTL8821C Bluetooth config (rtl_bt/rtl8821c_config.bin)
|
|
|
|
@item Realtek RTL8821C Bluetooth firmware (rtl_bt/rtl8821c_fw.bin)
|
|
|
|
@item Realtek RTL8822B Bluetooth config (rtl_bt/rtl8822b_config.bin)
|
|
|
|
@item Realtek RTL8822B Bluetooth firmware (rtl_bt/rtl8822b_fw.bin)
|
|
|
|
@item Realtek RTL8822CU Bluetooth firmware (rtl_bt/rtl8822cu_fw.bin)
|
|
|
|
@end itemize")
|
|
|
|
(license
|
|
|
|
(nonfree
|
|
|
|
(string-append
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware"
|
|
|
|
"/linux-firmware.git/plain/LICENCE.rtlwifi_firmware.txt")))))
|
|
|
|
|
2020-01-05 20:42:31 +01:00
|
|
|
(define-public rtlwifi-firmware
|
|
|
|
(deprecated-package "rtlwifi-firmware" realtek-firmware))
|
|
|
|
|
2020-01-05 20:43:57 +01:00
|
|
|
(define-public rtl-nic-firmware
|
|
|
|
(deprecated-package "rtl-nic-firmware" realtek-firmware))
|
|
|
|
|
2020-01-05 20:44:31 +01:00
|
|
|
(define-public rtl-bt-firmware
|
|
|
|
(deprecated-package "rtl-bt-firmware" realtek-firmware))
|
|
|
|
|
2020-01-03 20:18:41 +01:00
|
|
|
(define broadcom-sta-version "6.30.223.271")
|
|
|
|
|
|
|
|
(define broadcom-sta-x86_64-source
|
|
|
|
(origin
|
|
|
|
(method url-fetch/tarbomb)
|
|
|
|
(uri (string-append "https://docs.broadcom.com/docs-and-downloads/"
|
|
|
|
"docs/linux_sta/hybrid-v35_64-nodebug-pcoem-"
|
|
|
|
(string-replace-substring broadcom-sta-version "." "_")
|
|
|
|
".tar.gz"))
|
|
|
|
(patches
|
|
|
|
(parameterize
|
|
|
|
((%patch-path
|
|
|
|
(map (lambda (directory)
|
|
|
|
(string-append directory "/nongnu/packages/patches"))
|
|
|
|
%load-path)))
|
|
|
|
;; https://github.com/NixOS/nixpkgs/tree/master/pkgs/os-specific/linux/broadcom-sta
|
|
|
|
;; https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/broadcom-wl-dkms
|
|
|
|
(search-patches "broadcom-sta-gcc.patch"
|
|
|
|
"broadcom-sta-license.patch"
|
|
|
|
"broadcom-sta-null-pointer-fix.patch"
|
|
|
|
"broadcom-sta-rdtscl.patch"
|
|
|
|
"broadcom-sta-linux-4.7.patch"
|
|
|
|
"broadcom-sta-linux-4.8.patch"
|
|
|
|
"broadcom-sta-debian-fix-kernel-warnings.patch"
|
|
|
|
"broadcom-sta-linux-4.11.patch"
|
|
|
|
"broadcom-sta-linux-4.12.patch"
|
|
|
|
"broadcom-sta-linux-4.15.patch"
|
|
|
|
"broadcom-sta-fix_mac_profile_discrepancy.patch"
|
|
|
|
"broadcom-sta-linux-5.1.patch")))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1gj485qqr190idilacpxwgqyw21il03zph2rddizgj7fbd6pfyaz"))))
|
|
|
|
|
|
|
|
(define broadcom-sta-i686-source
|
|
|
|
(origin
|
|
|
|
(inherit broadcom-sta-x86_64-source)
|
|
|
|
(uri (string-append "https://docs.broadcom.com/docs-and-downloads/"
|
|
|
|
"docs/linux_sta/hybrid-v35-nodebug-pcoem-"
|
|
|
|
(string-replace-substring broadcom-sta-version "." "_")
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1kaqa2dw3nb8k23ffvx46g8jj3wdhz8xa6jp1v3wb35cjfr712sg"))))
|
|
|
|
|
2019-05-30 10:48:38 +02:00
|
|
|
(define-public broadcom-sta
|
|
|
|
(package
|
|
|
|
(name "broadcom-sta")
|
2020-01-03 20:18:41 +01:00
|
|
|
(version broadcom-sta-version)
|
|
|
|
(source #f)
|
2019-05-30 10:48:38 +02:00
|
|
|
(build-system linux-module-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:linux ,linux
|
2020-01-03 20:18:41 +01:00
|
|
|
#:tests? #f
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'unpack
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((source (assoc-ref inputs "broadcom-sta-source")))
|
|
|
|
(invoke "tar" "xf" source)
|
|
|
|
(chdir ((@@ (guix build gnu-build-system) first-subdirectory) "."))
|
|
|
|
#t))))))
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux"))
|
|
|
|
(native-inputs
|
|
|
|
`(("broadcom-sta-source"
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
|
|
|
("x86_64-linux" broadcom-sta-x86_64-source)
|
|
|
|
(_ broadcom-sta-i686-source)))))
|
2019-05-30 10:48:38 +02:00
|
|
|
(home-page "https://www.broadcom.com/support/802.11")
|
|
|
|
(synopsis "Broadcom 802.11 Linux STA wireless driver")
|
|
|
|
(description "This package contains Broadcom's IEEE 802.11a/b/g/n/ac hybrid
|
|
|
|
Linux device driver for the following chipsets:
|
|
|
|
@itemize
|
|
|
|
@item BCM4311
|
|
|
|
@item BCM4312
|
|
|
|
@item BCM4313
|
|
|
|
@item BCM4321
|
|
|
|
@item BCM4322
|
|
|
|
@item BCM43224
|
|
|
|
@item BCM43225
|
|
|
|
@item BCM43227
|
|
|
|
@item BCM43228
|
|
|
|
@item BCM43142
|
|
|
|
@item BCM4331
|
|
|
|
@item BCM4352
|
|
|
|
@item BCM4360
|
|
|
|
@end itemize")
|
|
|
|
(license (nonfree "https://www.broadcom.com/support/802.11"))))
|
|
|
|
|
2019-05-27 03:00:19 +02:00
|
|
|
(define-public broadcom-bt-firmware
|
|
|
|
(package
|
|
|
|
(name "broadcom-bt-firmware")
|
2019-06-01 16:24:35 +02:00
|
|
|
(version "12.0.1.1012")
|
2019-05-27 03:00:19 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2019-06-01 16:24:35 +02:00
|
|
|
(uri
|
|
|
|
(string-append
|
|
|
|
"http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/04/"
|
|
|
|
"852bb503-de7b-4810-a7dd-cbab62742f09_7cf83a4c194116648d17707ae37d564f9c70bec2"
|
|
|
|
".cab"))
|
|
|
|
(file-name (string-append name "-" version ".cab"))
|
2019-05-27 03:00:19 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-01 16:24:35 +02:00
|
|
|
"1b1qjwxjk4y91l3iz157kms8601n0mmiik32cs6w9b1q4sl4pxx9"))))
|
2019-05-27 03:00:19 +02:00
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils)
|
|
|
|
(ice-9 rdelim)
|
|
|
|
(ice-9 regex))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
(ice-9 rdelim)
|
|
|
|
(ice-9 regex))
|
2019-06-01 16:24:35 +02:00
|
|
|
(let ((PATH (string-append (assoc-ref %build-inputs "cabextract") "/bin:"
|
2019-05-27 03:00:19 +02:00
|
|
|
(assoc-ref %build-inputs "bluez") "/bin"))
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
(firmware-dir (string-append %output "/lib/firmware/brcm/")))
|
|
|
|
(setenv "PATH" PATH)
|
2019-06-01 16:24:35 +02:00
|
|
|
(system* "cabextract" source)
|
2019-05-27 03:00:19 +02:00
|
|
|
(mkdir-p firmware-dir)
|
|
|
|
;; process the inf file to get the correct filenames
|
2019-06-01 16:24:35 +02:00
|
|
|
(with-input-from-file "bcbtums.inf"
|
2019-05-27 03:00:19 +02:00
|
|
|
(lambda ()
|
|
|
|
(do ((line (read-line) (read-line))
|
|
|
|
(devices '()))
|
|
|
|
((eof-object? line) #t)
|
|
|
|
;; these two `lets' are like awk patterns matching against
|
|
|
|
;; records. link devices in this file with its vids and pids
|
2019-06-01 16:24:35 +02:00
|
|
|
(let ((rcrd (string-match "%.*%=(.*),.*VID_(....).*PID_(....)"
|
2019-05-27 03:00:19 +02:00
|
|
|
line)))
|
|
|
|
(when rcrd
|
|
|
|
(set! devices
|
|
|
|
(assoc-set! devices (match:substring rcrd 1)
|
|
|
|
`((vid . ,(match:substring rcrd 2))
|
|
|
|
(pid . ,(match:substring rcrd 3)))))))
|
|
|
|
;; find the hex file associated with each device, build the
|
|
|
|
;; output file name
|
|
|
|
(let ((rcrd (string-match "\\[(RAMUSB.*)\\.CopyList\\]" line)))
|
|
|
|
(when rcrd
|
|
|
|
(let* ((key (match:substring rcrd 1))
|
2019-06-01 16:24:35 +02:00
|
|
|
(hex-file (begin (do ((line (read-line) (read-line)))
|
|
|
|
((string-match "^([0-9A-Z_.]+\\.hex)" line)
|
|
|
|
(string-drop-right line 1)))))
|
2019-05-27 03:00:19 +02:00
|
|
|
(chipset (car (string-tokenize
|
|
|
|
hex-file
|
|
|
|
char-set:letter+digit)))
|
|
|
|
(vid (assoc-ref (assoc-ref devices key) 'vid))
|
|
|
|
(pid (assoc-ref (assoc-ref devices key) 'pid))
|
|
|
|
(hcd-file (string-append chipset "-"
|
|
|
|
(string-downcase vid) "-"
|
|
|
|
(string-downcase pid)
|
|
|
|
".hcd")))
|
|
|
|
;; finally convert the file, phew!
|
|
|
|
(system* "hex2hcd"
|
|
|
|
"-o" (string-append firmware-dir hcd-file)
|
|
|
|
hex-file)))))))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("bluez" ,bluez)
|
2019-06-01 16:24:35 +02:00
|
|
|
("cabextract" ,cabextract)))
|
2019-05-27 03:00:19 +02:00
|
|
|
(home-page "http://www.broadcom.com/support/bluetooth")
|
|
|
|
(synopsis "Broadcom bluetooth firmware")
|
|
|
|
(description
|
|
|
|
"This package contains nonfree firmware for the following bluetooth
|
|
|
|
chipsets from Broadcom:
|
|
|
|
@itemize
|
|
|
|
@item BCM4335C0
|
|
|
|
@item BCM4350C5
|
|
|
|
@item BCM4356A2
|
2019-06-01 16:24:35 +02:00
|
|
|
@item BCM4371C2
|
2019-05-27 03:00:19 +02:00
|
|
|
@item BCM20702A1
|
|
|
|
@item BCM20702B0
|
|
|
|
@item BCM20703A1
|
|
|
|
@item BCM43142A0
|
|
|
|
@end itemize")
|
2019-06-01 16:24:35 +02:00
|
|
|
(license
|
|
|
|
(undistributable
|
|
|
|
(string-append
|
|
|
|
"https://raw.githubusercontent.com/winterheart/broadcom-bt-firmware"
|
|
|
|
"/b60fa04881bf8f9b9d578f57d1dfa596cae2a82e"
|
|
|
|
"/LICENSE.broadcom_bcm20702")))))
|
2019-06-03 23:36:12 +02:00
|
|
|
|
2019-08-27 02:24:11 +02:00
|
|
|
(define-public intel-microcode
|
|
|
|
(package
|
|
|
|
(name "intel-microcode")
|
2020-06-21 23:36:30 +02:00
|
|
|
(version "20200616")
|
2019-08-27 02:24:11 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url (string-append
|
|
|
|
"https://github.com/intel/"
|
|
|
|
"Intel-Linux-Processor-Microcode-Data-Files.git"))
|
|
|
|
(commit (string-append "microcode-" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
2020-06-21 23:36:30 +02:00
|
|
|
(base32 "13jrs8hwh7dhjjb9kncb8lk199afaxglkh1cfisl6zca1h36g563"))))
|
2020-03-02 16:08:59 +01:00
|
|
|
(build-system copy-build-system)
|
2020-05-15 02:47:36 +02:00
|
|
|
(arguments
|
|
|
|
`(#:install-plan
|
|
|
|
(let ((doc (string-append "share/doc/" ,name "-" ,version "/")))
|
|
|
|
`(("intel-ucode" "lib/firmware/")
|
|
|
|
("releasenote" ,doc)
|
|
|
|
("security.md" ,doc)))))
|
2019-08-27 02:24:11 +02:00
|
|
|
(home-page
|
|
|
|
"https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files")
|
|
|
|
(synopsis "Processor microcode firmware for Intel CPUs")
|
|
|
|
(description "Updated system processor microcode for Intel i686 and Intel
|
|
|
|
x86-64 processors. Intel releases microcode updates to correct processor
|
|
|
|
behavior as documented in the respective processor specification updates. The
|
|
|
|
@code{iucode-tool} package can be used to determine the appropriate file for
|
|
|
|
your CPU.")
|
|
|
|
(license (nonfree "file://license"))))
|
2020-01-07 20:29:55 +01:00
|
|
|
|
|
|
|
(define-public amd-microcode
|
|
|
|
(package
|
|
|
|
(inherit linux-firmware)
|
|
|
|
(name "amd-microcode")
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:license-file-regexp "LICENSE.amd-ucode"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(fw-dir (string-append out "/lib/firmware"))
|
|
|
|
(bin-dir (string-append fw-dir "/amd-ucode")))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file bin-dir))
|
|
|
|
(find-files "amd-ucode" "^microcode_amd.*\\.bin$"))
|
|
|
|
#t)))
|
|
|
|
(delete 'validate-runpath))))
|
|
|
|
(synopsis "Processor microcode firmware for AMD CPUs")
|
|
|
|
(description "Updated system processor microcode for AMD x86-64
|
|
|
|
processors. AMD releases microcode updates to correct processor behavior as
|
|
|
|
documented in the respective processor revision guides.")
|
|
|
|
(license
|
|
|
|
(nonfree
|
|
|
|
(string-append "https://git.kernel.org/pub/scm/linux/kernel/git/"
|
|
|
|
"firmware/linux-firmware.git/plain/LICENSE.amd-ucode")))))
|