Page MenuHomeFreeBSD

net/wifi-firmware-*: add framework and firmware for various WiFi chipsets
ClosedPublic

Authored by bz on Apr 10 2023, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 19, 10:49 PM
Unknown Object (File)
Mar 14 2024, 2:46 AM
Unknown Object (File)
Mar 8 2024, 12:03 AM
Unknown Object (File)
Mar 8 2024, 12:03 AM
Unknown Object (File)
Mar 8 2024, 12:03 AM
Unknown Object (File)
Mar 7 2024, 11:59 PM
Unknown Object (File)
Mar 7 2024, 11:46 PM
Unknown Object (File)
Feb 28 2024, 8:24 AM

Details

Summary

Add a "base port framework" to fetch WiFi firmware and license files
from the linux-firmware.git repository and an accompanying FreeBSD
build kmod framework tarball (for now; we might do without that in
the future).
Add child ports for Realtek rtw88 and rtw89, Mediatek mt76, and
Atheros ath10k and ath11k firmware as a start.

This is a beginning in order to stop bloating src.git and the
installed kernels with lots of MB of firmware files whereas usually
only one vebdor/chipset/flavor is needed. Before fully switching
more infrastructure needs to be in place but this is the first and
most important step.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Apr 10 2023, 5:24 PM

Since the list of firmwares is likely to grow in the future it's probably easier and more efficient to just grab the full archives and extract the directory(ies) you want?
These are fetchable from the CDN, https://cdn.kernel.org/pub/linux/kernel/firmware/

Since the list of firmwares is likely to grow in the future it's probably easier and more efficient to just grab the full archives and extract the directory(ies) you want?
These are fetchable from the CDN, https://cdn.kernel.org/pub/linux/kernel/firmware/

It's 400+MB compared less than a MB for some of the drivers. And I'll likely at some point need different versions so that'll be 400+MB * <n> drivers (or even chipsets) in worst case to fetch. Given we figured out a way to do the ?query string, I'll likely be able to add the official google mirror as well in the future if that'll be necessary.

lwhsu added inline comments.
net/wifi-firmware-base/Makefile
5

Is this commented line for reference purpose?

net/wifi-firmware-rtw88-kmod/pkg-descr
9

superfluous white line.

This revision is now accepted and ready to land.Apr 21 2023, 1:33 AM

Remove the two lines pointed out by @lwhsu

This revision now requires review to proceed.Apr 21 2023, 6:15 PM
bz marked 2 inline comments as done.Apr 21 2023, 6:17 PM
bz added inline comments.
net/wifi-firmware-base/Makefile
5

Was from an earlier time when I has started and had also adjusted the Mk/* bits until @mat pointed out how to do it better without that. Gone now. Thanks for pointing out.

bz marked an inline comment as done.Apr 21 2023, 6:18 PM

If it's all good how will this be pushed in? I am not a ports committer.

In D39487#904689, @bz wrote:

If it's all good how will this be pushed in? I am not a ports committer.

Yes. I have already accepted the previous version. The 2 comments are more like minor nits which I think it's fine to be fixed when committing. I don't think another round-trip is needed.

This revision is now accepted and ready to land.Apr 21 2023, 6:24 PM