firmware: install wifi firmware from linux-firmware, cleanup wlan-fir… #1635
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…mware
This PR depends on LibreELEC/wlan-firmware#3
(Note: Although I refer to
linux-firmware
this is the name of the upstream repo, as due to a conflict we refer to it askernel-firmware
)The following files are present in
wlan-firmware/firmware
but notlinux-firmware
:Of these, I've retained the following in
wlan-firmware
:while all other files in
wlan-firmware
have been removed - please shout if any files should be reinstated.The
brcm/*.txt
files are the NVRAM files for the matching firmwares, which are not present inlinux-firmware
(however the firmware is).The
ti-connectivity/*
andath9k_htc/*
firmwares, although present inlinux-firmware
, will no longer be installed.Based on md5 hashes and file creation time stamps, the vast majority of files in
linux-firmware
are the same as the corresponding file inwlan-firmware
, and/or newer.There are some exceptions - the following files are both different and older in
linux-firmware
than the corresponding files inwlan-firmware
:However when testing
brcm/brcmfmac43340-sdio.bin
(RPi3 WiFI/BT), it appears the version inlinux-firmware
is actually more recent:brcm/brcmfmac43340-sdio.bin
fromwlan-firmware
:brcm/brcmfmac43340-sdio.bin
fromlinux-firmware
:After this change, the following new files will be installed for all projects:
and the following files will no longer be installed:
In many cases the source of the files in
wlan-firmware
is not known, and may in fact have beenlinux-firmware
, but due to the manual nature of curating this repository it is rarely updated.Bumping to a new version of
linux-firmware
on the other hand is trivial, and will update all firmwares automatically.This change results in a 4.3MB reduction in file sizes (based on uncompressed file sizes) in the resulting image.