Package init

This commit is contained in:
overweight 2019-09-30 11:01:22 -04:00
commit 53cb865060
4 changed files with 176 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 94ee3042ad924d2ef8383dcde511a99660c23732 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
Date: Mon, 21 Jan 2019 07:41:41 +0000
Subject: [PATCH 1/2] brcm: Raspberry Pi 3A+ WiFi NVRAM support
The Raspberry Pi 3A+ uses the same WiFi module as the 3B+ so we
just symlink the expected NVRAM file to the 3B+ one.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt | 1 +
1 file changed, 1 insertion(+)
create mode 120000 brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt
diff --git a/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt b/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt
new file mode 120000
index 0000000..36b5530
--- /dev/null
+++ b/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt
@@ -0,0 +1 @@
+brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
\ No newline at end of file
--
2.20.1

View File

@ -0,0 +1,57 @@
From 46e39557221d5eec381c99b9002f9208f71f7128 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
Date: Mon, 21 Jan 2019 08:12:49 +0000
Subject: [PATCH 2/2] brcm: Raspberry Pi: Update ccode to X2
As per the docs [1] the X2 ccode allows the use of channels above
11 if the firmware detects appropriate other traffic on those
channels. The ALL option appears to restrict the use to the US
channel options without passively checking so X2 is overall better.
Also fix a trailling space in the config while we're at it.
[1] https://wireless.wiki.kernel.org/en/users/Drivers/brcm80211#regulatory_implementation_for_brcmsmac
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt | 4 ++--
brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt b/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
index 732c19b..38a99db 100644
--- a/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
+++ b/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
@@ -15,7 +15,7 @@ btc_params1=0x7530
btc_params8=0x4e20
cckbw202gpo=0
cckpwroffset0=5
-ccode=ALL
+ccode=X2
# cldo_pwm is not set
deadman_to=0xffffffff
devid=0x43e2
@@ -39,7 +39,7 @@ papdmode=1
papdvalidtest=1
prodid=0x0726
propbw202gpo=0xdd
-spurconfig=0x3
+spurconfig=0x3
sromrev=11
txpwrbckof=6
vendid=0x14e4
diff --git a/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt b/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
index ba94f54..8d01fcf 100644
--- a/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
+++ b/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
@@ -16,6 +16,7 @@ btc_params8=0x4e20
cbfilttype=1
cckPwrIdxCorr=3
cckTssiDelay=150
+ccode=X2
deadman_to=481500000
devid=0x43ab
dot11agofdmhrbw202gpo=0x4442
--
2.20.1

Binary file not shown.

94
linux-firmware.spec Normal file
View File

@ -0,0 +1,94 @@
%define _binaries_in_noarch_packages_terminate_build 0
%global release 1
%global _lib_path /usr/lib/firmware
%global _license_path /usr/share/licenses
Name: linux-firmware
Version: 20190815
Release: %{release}
Summary: Firmware files used by the Linux kernel
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
URL: http://www.kernel.org/
BuildArch: noarch
Source0: %{name}-%{version}.tar.gz
Patch1: 0001-brcm-Raspberry-Pi-3A-WiFi-NVRAM-support.patch
Patch2: 0002-brcm-Raspberry-Pi-Update-ccode-to-X2.patch
Provides: kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0
Provides: iwl100-firmware = 39.31.5.1-87
Provides: iwl105-firmware = 18.168.6.1-87
Provides: iwl135-firmware = 18.168.6.1-87
Provides: iwl1000-firmware = 1:39.31.5.1-87
Provides: iwl2000-firmware = 18.168.6.1-87
Provides: iwl2030-firmware = 18.168.6.1-87
Provides: iwl3160-firmware = 1:25.30.13.0-87
Provides: iwl3945-firmware = 15.32.2.9-87
Provides: iwl4965-firmware = 228.61.2.24-87
Provides: iwl5000-firmware = 8.83.5.1_1-87
Provides: iwl5150-firmware = 8.24.2.2-87
Provides: iwl6000-firmware = 9.221.4.1-87
Provides: iwl6000g2a-firmware = 18.168.6.1-87
Provides: iwl6000g2b-firmware = 18.168.6.1-87
Provides: iwl6050-firmware = 41.28.5.1-87
Provides: iwl7260-firmware = 1:25.30.13.0-87
Provides: libertas-usb8388-firmware = 2:%{version}-%{release}
Provides: libertas-usb8388-olpc-firmware = %{version}-%{release}
Provides: libertas-sd8686-firmware = %{version}-%{release}
Provides: libertas-sd8787-firmware = %{version}-%{release}
Obsoletes: linux-firmware
Obsoletes: iwl100-firmware
Obsoletes: iwl1000-firmware
Obsoletes: iwl3945-firmware
Obsoletes: iwl4965-firmware
Obsoletes: iwl5000-firmware
Obsoletes: iwl5150-firmware
Obsoletes: iwl6000-firmware
Obsoletes: iwl6000g2a-firmware
Obsoletes: iwl6000g2b-firmware
Obsoletes: iwl6050-firmware
Obsoletes: libertas-usb8388-firmware
Obsoletes: libertas-sd8686-firmware
Obsoletes: kernel-firmware < %{version} xorg-x11-drv-ati-firmware < 6.13.0-0.22
Obsoletes: ueagle-atm4-firmware < 1.0-5
Obsoletes: netxen-firmware < 4.0.534-9
Obsoletes: ql2100-firmware < 1.19.38-8
Obsoletes: ql2200-firmware < 2.02.08-8
Obsoletes: ql23xx-firmware < 3.03.28-6
Obsoletes: ql2400-firmware < 5.08.00-2
Obsoletes: ql2500-firmware < 5.08.00-2
Obsoletes: rt61pci-firmware < 1.2-11
Obsoletes: rt73usb-firmware < 1.8-11
Obsoletes: cx18-firmware < 20080628-10
Conflicts: microcode_ctl < 2.1-0
%description
This package contains firmware images required by some devices.
%prep
%autosetup -p1
%build
rm -f usbdux/*dux */*.asm
rm -rf carl9170fw
%install
mkdir -p %{buildroot}/%{_lib_path}
mkdir -p %{buildroot}/%{_license_path}
cp -r * %{buildroot}/%{_lib_path}
cp -r WHENCE LICENCE.* %{buildroot}/%{_license_path}
rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*}
%files
%dir %{_lib_path}
%dir %{_license_path}
%license WHENCE LICENCE.* LICENSE.*
%{_license_path}/*
%{_lib_path}/*
%changelog
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190815-1
- Package init