Commit Graph

16 Commits

Author SHA1 Message Date
Bjoern A. Zeeb
d33f5a0afa fwget: update wireless IDs for rtw88/89, ath1xk, mt76 and add iwlwifi
Update and add (new) PCI IDs for Realtek rtw88/89, Mediatek 7996/7925,
QCA ath1xk, and add Intel iwlwifi IDs.

Rather than using a package per driver add fine(r) grained flavors
even though it is a lot more likely to break in certain cases.

For Intel we need a great level of detail to match PCI IDs so also pass
the full pciconf -l line to into the pci_* files as "$2" to have access
to these.

This lines up with ports commit 80f50c9eb66d.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	manu (earlier version)
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D44918
2024-05-23 22:26:59 +00:00
Philipp Ost
2db2566f55 fwget: Add needed firmware for Radeon 780M GPU
PR:	278115
2024-04-02 07:38:00 +02:00
Goran Mekić
6caa19a08b fwget: Use versioned packages for RDNA3 firmware
Fixes:	f596620302 ("fwget: Update for Radeon RX 7900 XT (RDNA3) PCI-ID")
Pointy hat to:	manu
2024-01-17 11:10:49 +01:00
Goran Mekić
f596620302 fwget: Update for Radeon RX 7900 XT (RDNA3) PCI-ID
Latest DRM/firmware added support for RDNA3 based GPUs,
update fwget with the proper PCI ID.

Differential Revision:	https://reviews.freebsd.org/D43468
2024-01-17 10:38:07 +01:00
Bjoern A. Zeeb
214e3e09b3 fwget: fix installing multiple firmware files
Remove quotes around the list of packages to install.
Otherwise pkg is only fed one argument which results in a
non-working solution:
pkg: No packages available to install matching 'wifi-firmware-ath10k-kmod wifi-firmware-mt76-kmod wifi-firmware-ath11k-kmod' have been found in the repositories

MFC after:	10 days
Reviewed by:	manu
Differential Revision: https://reviews.freebsd.org/D41474
2023-08-18 01:22:22 +00:00
Emmanuel Vadot
c81495a621 fwget: Fix quoting
This kind of quoting doesn't work, no idea why shellcheck wanted this.
If there is a "safer" way to "fix" this feel free to do it just test
that it's working after.

Reported by:	Kenneth Raplee <kenrap@kennethraplee.com>
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Fixes:	7ad4d94d5b ("Fix some shell issues by adding quotes and replace backticks with $()")
2023-07-07 09:19:41 +02:00
Benedict Reuschling
7ad4d94d5b Fix some shell issues by adding quotes and replace backticks with $()
This patch fixes the following issues reported by shellcheck:
- Quote default assignments (SC2223)
- Use $() instead of backticks (SC2006)
- Double quote $@ (SC2068)
- Double quote variables in if-statements and other places (SC2086)

While here, fix a whitespace at one end of line instance in the license
text.

Approved by:	manu
Differential Revision: https://reviews.freebsd.org/D40604
2023-06-19 11:03:06 +00:00
Emmanuel Vadot
624f956bd9 fwget: Always install packages
This wasn't done before as -y wasn't added to the pkg install line.

Sponsored by:	Beckhoff Automation GmbH & Co. KG
2023-06-14 09:17:55 +02:00
Bjoern A. Zeeb
0be82d56b4 fwget: update pci_network_mediatek for mt7996
Add support for another chipset and fix mt7915 to not match on
all IDs.
2023-05-23 23:41:24 +00:00
Bjoern A. Zeeb
5138ffa877 fwget: remove logging redirects
After adding addpkg() in 10aa369afd
the redirects are no longer needed.  We can now log directly so
simplify the code.

Reported by:	manu
Reviewed by:	manu
Differential Revision: https://reviews.freebsd.org/D40077
2023-05-20 11:20:41 +00:00
Bjoern A. Zeeb
dd8a74e74d fwget: add support for various WiFi NICs
Add support for Realtek, QCA, and Mediatek WiFi NIC cards.
We group the matching entries by driver in sub-functions in order
to semi-automatically create the lists for now.

Reviewed by:	manu
Differential Revision: https://reviews.freebsd.org/D40073
2023-05-20 11:18:51 +00:00
Bjoern A. Zeeb
17cec33e75 fwget: improve the pci base script
When matching "class" only match the class byte and not subclass and
programming interface.
Extend the list of supported classes by network, old, and misc (for no
better names on the latter two).
Extend the list of known vendors for various WiFi NICs.
Add a "pci_fixup_class" as some wireless cards have unexpected PCI
classes set.  In case we cannot find a matching file for the original
try to see if a "fixed up" version exists.  This allows us to avoid
duplicate matching files for the same vendor/driver but different
chipsets.

Reviewed by:	manu
Differential Revision: https://reviews.freebsd.org/D40072
2023-05-20 11:16:42 +00:00
Bjoern A. Zeeb
10aa369afd fwget: simplify adding firmware images to pkg to install
Rather than using echo to return the firmware package name, call a
new function (addpkg) which will also deal with (i) no leading space
and (ii) remove duplicates (as some devices have dual-wifi-cards).
In addition we won't have a line break when having multiple packages.

While here also do not call pkg(8) anymore if there is no package to
install and use the correct variable to install all and not just the
last found package.

Reviewed by:	manu, bapt
Differential Revision: https://reviews.freebsd.org/D40071
2023-05-20 11:13:12 +00:00
Emmanuel Vadot
611503c64a fwget: Use BSD-2-Clause instead of BSD-2-Clause-FreeBSD
Reported by:	bz
Sponsored by:	Beckhoff Automation GmbH & Co. KG
2023-05-09 16:03:39 +02:00
Emmanuel Vadot
d7f39ec19f fwget: Fix a few kmod name
The -kmod part was forgot in a few names for Intel firmware.

Fixes:		d198b8774d ("fwget: Introduce new utility")
Reported by:	bz
Sponsored by:	Beckhoff Automation GmbH & Co. KG
2023-05-09 16:02:03 +02:00
Emmanuel Vadot
d198b8774d fwget: Introduce new utility
This script's goal is to check the system for peripherals that needs
firmware and install the needed packages for them.
For now it only support pci subsystem and only video classes for AMD
and Intel GPUs.

Reviewed by:	bapt
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D39825
2023-05-01 08:32:59 +02:00