could not load binary firmware /boot/firmware/ in FreeBSD 14.2

By https://reviews.freebsd.org/D43555 , FreeBSD will install firmware while you are installing system. But it not work by my network.

So I install gpu-firmware-intel-kmod-alderlake, gpu-firmware-intel-kmod-tigerlake, wifi-firmware-rtw89-kmod-rtw8852b by Ports.

You can try fwget :

Code:
root@ykla:~ # fwget
Needed firmware packages: 'gpu-firmware-intel-kmod-alderlake gpu-firmware-intel-kmod-tigerlake wifi-firmware-rtw89-kmod-rtw8852b'
The most recent versions of packages are already installed

But the The warning message always appears in dmesg. see also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283476 。All the firmware installed by ports or pkg will be installed in /boot/modules, not /boot/firmware/. The /boot/firmware/ is always empty. Is there a way to suppress these prompts?

Code:
---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64
FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)
VT(efifb): resolution 1024x600
CPU: Intel(R) N100 (806.40-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0xb06e0  Family=0x6  Model=0xbe  Stepping=0
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x239ca7eb<FSGSBASE,TSCADJ,BMI1,AVX2,FDPEXC,SMEP,BMI2,ERMS,INVPCID,NFPUSG,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,PROCTRACE,SHA>
  Structured Extended Features2=0x98c007bc<UMIP,PKU,OSPKE,WAITPKG,GFNI,VAES,VPCLMULQDQ,RDPID,MOVDIRI,MOVDIR64B>
  Structured Extended Features3=0xfc184410<FSRM,MD_CLEAR,IBT,IBPB,STIBP,L1DFL,ARCH_CAP,CORE_CAP,SSBD>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  IA32_ARCH_CAPS=0x180fd6b<RDCL_NO,IBRS_ALL,SKIP_L1DFL_VME,MDS_NO,TAA_NO>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16351019008 (15593 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
WARNING: L3 data cache covers more APIC IDs than a package (7 > 3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119
Launching APs: 2 3 1
random: entropy device external interface
kbd0 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0x75ca7000-0x75ca701e
smbios0: Version: 3.6, BCD Revision: 3.6
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <ALASKA A M I >
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PC00.TXHC.RHUB.SS01], AE_NOT_FOUND (20221020/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20221020/psobject-372)
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PC00.TXHC.RHUB.SS02], AE_NOT_FOUND (20221020/dswload2-315)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20221020/psobject-372)
acpi0: Power Button (fixed)
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 19200000 Hz quality 950
Event timer "HPET" frequency 19200000 Hz quality 550
Event timer "HPET1" frequency 19200000 Hz quality 440
Event timer "HPET2" frequency 19200000 Hz quality 440
Event timer "HPET3" frequency 19200000 Hz quality 440
Event timer "HPET4" frequency 19200000 Hz quality 440
atrtc1: <AT realtime clock> on acpi0
atrtc1: Warning: Couldn't map I/O.
atrtc1: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x4000-0x403f mem 0x6000000000-0x6000ffffff,0x4000000000-0x400fffffff at device 2.0 on pci0
vgapci0: Boot video device
xhci0: <XHCI (generic) USB 3.0 controller> mem 0x6001120000-0x600112ffff at device 13.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms, UART> at device 18.0 (no driver attached)
xhci1: <XHCI (generic) USB 3.0 controller> mem 0x6001100000-0x600110ffff at device 20.0 on pci0
xhci1: 32 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pci0: <memory, RAM> at device 20.2 (no driver attached)
pci0: <simple comms> at device 22.0 (no driver attached)
sdhci_pci0: <Generic SD HCI> mem 0x6001149000-0x6001149fff at device 26.0 on pci0
sdhci_pci0: 1 slot(s) allocated
mmc0: <MMC/SD bus> on sdhci_pci0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <network> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 28.6 on pci0
pci2: <ACPI PCI bus> on pcib2
igc0: <Intel(R) Ethernet Controller I226-V> mem 0x80500000-0x805fffff,0x80600000-0x80603fff at device 0.0 on pci2
igc0: EEPROM V2.17-0 eTrack 0x80000303
igc0: Using 1024 TX descriptors and 1024 RX descriptors
igc0: Using 4 RX queues 4 TX queues
igc0: Using MSI-X interrupts with 5 vectors
igc0: Ethernet address: 10:02:b5:86:0e:f9
igc0: netmap queues/slots: TX 4/1024, RX 4/1024
pcib3: <ACPI PCI-PCI bridge> at device 29.0 on pci0
pci3: <ACPI PCI bus> on pcib3
nvme0: <Generic NVMe Device> mem 0x80700000-0x80703fff at device 0.0 on pci3
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
hdac0: <Intel Alder Lake-N HDA Controller> mem 0x6001140000-0x6001143fff,0x6001000000-0x60010fffff at device 31.3 on pci0
pci0: <serial bus> at device 31.5 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button1: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_syscontainer0: <System Container> on acpi0
acpi_syscontainer1: <System Container> on acpi0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
atrtc0: Can't map interrupt.
atrtc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 15.
hwpstate_intel0: <Intel Speed Shift> on cpu0
hwpstate_intel1: <Intel Speed Shift> on cpu1
hwpstate_intel2: <Intel Speed Shift> on cpu2
hwpstate_intel3: <Intel Speed Shift> on cpu3
Timecounter "TSC" frequency 806401101 Hz quality 1000
Timecounters tick every 1.000 msec
ugen0.1: <Intel XHCI root HUB> at usbus0
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
uhub0 on usbus0
uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ugen1.1: <Intel XHCI root HUB> at usbus1
uhub1 on usbus1
uhub1: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
mmcsd0: 125GB <MMCHC Y2P128 0.0 SN F034273C MFG 04/2023 by 155 0x0000> at mmc0 200.0MHz/8bit/8192-block
mmcsd0boot0: 4MB partition 1 at mmcsd0
mmcsd0boot1: 4MB partition 2 at mmcsd0
mmcsd0rpmb: 17MB partition 3 at mmcsd0
nvme0: Allocated 16MB host memory buffer
hdacc0: <Realtek ALC269 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC269 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC269 (Right Analog)> at nid 21 and 24 on hdaa0
nda0 at nvme0 bus 0 scbus0 target 0 lun 1
nda0: <Fanxiang S530Q 500GB SN14243 FX240960178>
nda0: Serial Number FX240960178
nda0: nvme version 1.4
nda0: 476940MB (976773168 512 byte sectors)
Trying to mount root from zfs:zroot/ROOT/default []...
uhub0: 2 ports with 2 removable, self powered
uhub1: 16 ports with 16 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <Realtek Bluetooth Radio> at usbus1
[drm] Got Intel graphics stolen memory base 0x7c800000, size 0x3c00000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/adlp_dmc_ver2_16.bin either
i915/adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/i915/adlp_dmc_ver2_16.bin either
i915_adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/i915_adlp_dmc_ver2_16.bin either
i915_adlp_dmc_ver2_16_bin: could not load binary firmware /boot/firmware/i915_adlp_dmc_ver2_16_bin either
i915_adlp_dmc_ver2_16_bin: could not load binary firmware /boot/firmware/i915_adlp_dmc_ver2_16_bin either
drmn0: could not load firmware image 'i915/adlp_dmc_ver2_16.bin'
drmn0: [drm] Failed to load DMC firmware i915/adlp_dmc_ver2_16.bin. Disabling runtime power management.
drmn0: [drm] Run pkg install gpu-firmware-kmod to install it
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus3: <Philips I2C bus> on lkpi_iic3
iic3: <I2C generic I/O> on iicbus3
lkpi_iic4: <LinuxKPI I2C> on drmn0
iicbus4: <Philips I2C bus> on lkpi_iic4
iic4: <I2C generic I/O> on iicbus4
lkpi_iic5: <LinuxKPI I2C> on drmn0
iicbus5: <Philips I2C bus> on lkpi_iic5
iic5: <I2C generic I/O> on iicbus5
lkpi_iic6: <LinuxKPI I2C> on drmn0
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
lkpi_iic7: <LinuxKPI I2C> on drmn0
iicbus7: <Philips I2C bus> on lkpi_iic7
iic7: <I2C generic I/O> on iicbus7
lkpi_iic8: <LinuxKPI I2C> on drmn0
iicbus8: <Philips I2C bus> on lkpi_iic8
iic8: <I2C generic I/O> on iicbus8
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
start FB_INFO:
height=600 width=1024 depth=32
pbase=0x4000000000 vbase=0xfffffe00f9600000
name=drmn0 id=i915drmfb flags=0x0 stride=4096
end FB_INFO
ichsmb0: <Intel Alder Lake SMBus controller> port 0xefa0-0xefbf mem 0x6001148000-0x60011480ff at device 31.4 on pci0
smbus0: <System Management Bus> on ichsmb0
rtw890: <rtw89_8852be> port 0x3000-0x30ff mem 0x80800000-0x808fffff at device 0.0 on pci1
rtw8852b_fw-1.bin: could not load binary firmware /boot/firmware/rtw8852b_fw-1.bin either
rtw89/rtw8852b_fw-1.bin: could not load binary firmware /boot/firmware/rtw89/rtw8852b_fw-1.bin either
rtw89_rtw8852b_fw-1.bin: could not load binary firmware /boot/firmware/rtw89_rtw8852b_fw-1.bin either
rtw89_rtw8852b_fw-1_bin: could not load binary firmware /boot/firmware/rtw89_rtw8852b_fw-1_bin either
rtw890: successfully loaded firmware image 'rtw89/rtw8852b_fw-1.bin'
rtw890: loaded firmware rtw89/rtw8852b_fw-1.bin
rtw890: Firmware version 0.29.29.5 (da87cccd), cmd version 0, type 5
rtw890: Firmware version 0.29.29.5 (da87cccd), cmd version 0, type 3
rtw890: chip rfe_type is 5
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: cannot find EC device
acpi_wmi0: Embedded MOF found
ACPI: \134_SB.WFDE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
acpi_wmi1: <ACPI-WMI mapping> on acpi0
acpi_wmi1: cannot find EC device
acpi_wmi1: Embedded MOF found
ACPI: \134_SB.WFTE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
igc0: link state changed to UP
lo0: link state changed to UP
igc0: link state changed to DOWN
ubt0 on uhub1
ubt0: <Realtek Bluetooth Radio, class 224/1, rev 1.00/0.00, addr 1> on usbus1
igc0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
 
There is something wrong. fwget(8) claims "most recent [firmware] versions of packages are already installed", but the intel driver is of the view no firmware is installed:
drmn0: could not load firmware image 'i915/adlp_dmc_ver2_16.bin'
drmn0: [drm] Failed to load DMC firmware i915/adlp_dmc_ver2_16.bin. Disabling runtime power management.
drmn0: [drm] Run pkg install gpu-firmware-kmod to install it
I also can't see more [drm] related messages, indicating no firmware has attached to the device.

Delete gpu-firmware-intel-kmod-alderlake, gpu-firmware-intel-kmod-tigerlake (wifi-firmware-rtw89-kmod as well), try to install all intel firmware. To get rid of "could not load binary firmware /boot/firmware" messages, set KMODDIR variable:
Code:
 # cd /usr/ports/graphics/gpu-firmware-intel-kmod

 # make install clean  KMODDIR=/boot/firmware

make(1) variables can also be set via make.conf(5) for specific ports:
Code:
.if ${.CURDIR:M*/graphics/gpu-firmware-intel-kmod}
KMODDIR=/boot/firmware
.endif
For a specific flavor add, i.e. FLAVOR=alderlake.

Proceed the same with net/wifi-firmware-rtw89-kmod. The variable KMODDIR should not be needed. On my system, the rtw89 firmware is installed under /boot/firmware (I have it installed from official package, not port):
Code:
 % pkg list wifi-firmware-rtw89-kmod
/boot/firmware/rtw89/rtw8851b_fw.bin
/boot/firmware/rtw89/rtw8852a_fw.bin
/boot/firmware/rtw89/rtw8852b_fw-1.bin
/boot/firmware/rtw89/rtw8852b_fw.bin
/boot/firmware/rtw89/rtw8852c_fw-1.bin
/boot/firmware/rtw89/rtw8852c_fw.bin
/boot/firmware/rtw89/rtw8922a_fw-1.bin
/boot/firmware/rtw89/rtw8922a_fw-2.bin
/boot/firmware/rtw89/rtw8922a_fw.bin
/boot/loader.conf.d/rtw89.conf
[...]
 
Proceed the same with net/wifi-firmware-rtw89-kmod. The variable KMODDIR should not be needed. On my system, the rtw89 firmware is installed under /boot/firmware (I have it installed from official package, not port):

I used the latest source to obtain the pkg file.

C:
pkg download wifi-firmware-rtw89-kmod

The paths inside also point to /boot/modules. You can verify this in the image.

I believe it might be more appropriate for fwget or https://reviews.freebsd.org/D43555 to use /boot/modules instead of /boot/firmware. Just a suggestion for consideration, to ensure consistency.

1739407256236.png
 
I used the latest source to obtain the pkg file.

pkg download wifi-firmware-rtw89-kmod
The paths inside also point to /boot/modules. You can verify this in the image.
There are two packages of rtw89 available, one from the 14.1 package repository, and one from the 14.2 package repository (latest, quarterly = 14.1, kmods_latest_2, kmods_quarterly_2 = 14.2.

What you show is the 1401000 package (build for 14.1 branch). That package indeed installs the firmware under /boot/modules.

The 1402000 package installs the firmware under /boot/firmware:
Code:
 % tar  tvf  wifi-firmware-rtw89-kmod-20241017.1402000_1.pkg
[...]
-r--r--r--  0 root   wheel      32 Dec 12 12:44 /boot/loader.conf.d/rtw89.conf
-r--r--r--  0 root   wheel 1162024 Dec 12 12:44 /boot/firmware/rtw89/rtw8851b_fw.bin
-r--r--r--  0 root   wheel 1423232 Dec 12 12:44 /boot/firmware/rtw89/rtw8852a_fw.bin
-r--r--r--  0 root   wheel 1242808 Dec 12 12:44 /boot/firmware/rtw89/rtw8852b_fw-1.bin
-r--r--r--  0 root   wheel 1035232 Dec 12 12:44 /boot/firmware/rtw89/rtw8852b_fw.bin
-r--r--r--  0 root   wheel 2180616 Dec 12 12:44 /boot/firmware/rtw89/rtw8852c_fw-1.bin
-r--r--r--  0 root   wheel 1532656 Dec 12 12:44 /boot/firmware/rtw89/rtw8852c_fw.bin
-r--r--r--  0 root   wheel 1583434 Dec 12 12:44 /boot/firmware/rtw89/rtw8922a_fw-1.bin
-r--r--r--  0 root   wheel 1586954 Dec 12 12:44 /boot/firmware/rtw89/rtw8922a_fw-2.bin
-r--r--r--  0 root   wheel 1537690 Dec 12 12:44 /boot/firmware/rtw89/rtw8922a_fw.bin
drwxr-xr-x  0 root   wheel       0 Dec 12 12:44 /boot/firmware/rtw89/

I believe it might be more appropriate for fwget or https://reviews.freebsd.org/D43555 to use /boot/modules instead of /boot/firmware. Just a suggestion for consideration, to ensure consistency.
As for consistency, the firmware installation path is currently hardwired to /boot/firmware since commit c7b1e980ae16 (follow the reviews link above):
Code:
static const char *fw_path = "/boot/firmware/";



Speaking of branches, your are running 14.2, have you installed the 14.2 graphics kernel module drm-61-kmod-6.1.128.1402000? Or did you install drm-61-kmod-6.1.92.1401000_3?

Note that for the time being packages of the 14 branch are build for 14.1 until it is end-of-life after March 31. Kernel modules must match the the running kernel, in your case for 14.2.

Either install graphics/drm-61-kmod from ports, or from FreeBSD-kmods repository.
 
Speaking of branches, your are running 14.2, have you installed the 14.2 graphics kernel module drm-61-kmod-6.1.128.1402000? Or did you install drm-61-kmod-6.1.92.1401000_3?

root@ykla:~ # pkg info drm-61-kmod
drm-61-kmod-6.1.128.1402000
Name : drm-61-kmod
Version : 6.1.128.1402000
Installed on : Wed Feb 12 23:30:00 2025 CST
Origin : graphics/drm-61-kmod
Architecture : FreeBSD:14:amd64
Prefix : /usr/local
Categories : kld graphics
Licenses : BSD2CLAUSE, MIT, GPLv2
Maintainer : x11@FreeBSD.org
WWW : https://github.com/freebsd/drm-kmod/
Comment : DRM drivers modules
Annotations :
FreeBSD_version: 1402000
Flat size : 17.0MiB
Description :
amdgpu, i915, and radeon DRM drivers modules.
Currently corresponding to Linux 6.1 DRM.
This version is for FreeBSD 14-STABLE 1400508
and above.



root@ykla:~ # pkg info wifi-firmware-rtw89-kmod-rtw8852b
wifi-firmware-rtw89-kmod-rtw8852b-20241017.1401000_1
Name : wifi-firmware-rtw89-kmod-rtw8852b
Version : 20241017.1401000_1
Installed on : Wed Feb 12 23:16:19 2025 CST
Origin : net/wifi-firmware-rtw89-kmod
Architecture : FreeBSD:14:amd64
Prefix : /usr/local
Categories : net kld
Licenses : primary, whence
Maintainer : bz@FreeBSD.org
WWW : https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtw89
Comment : Firmware modules for the rtw89 (rtw8852b) WiFi NIC driver
Annotations :
FreeBSD_version: 1401000
build_timestamp: 2025-01-30T06:55:17+0000
built_by : poudriere-git-3.4.2
flavor : rtw8852b
port_checkout_unclean: no
port_git_hash : be7bdd6616
ports_top_checkout_unclean: no
ports_top_git_hash: 182ff2d0ad
repo_type : binary
repository : FreeBSD
Flat size : 1.20MiB
Description :
Firmware files for Realtek WiFi NICs supported by the rtw89 driver.

Currently 11ax supported chipsets:
- RTL8851B
- RTL8852A
- RTL8852B
- RTL8852C

Currently 11be supported chipsets:
- RTL8922A
root@ykla:~ #



I installed wifi-firmware-rtw89-kmod-rtw8852b by pkg, but I installed drm by ports. I don't know when FreeBSD added kmods_latest_2 and kmods_quarterly_2. What are these repositories used for? Where can I find some documentation about them? Thanks.
 
I'm lost.

# pkg info -a | grep gpu-firmware-amd-kmod-kabini
Bash:
gpu-firmware-amd-kmod-kabini-20230625.1401000_2 Firmware modules for kabini AMD GPUs
root@none:/boot/modules # ls -la | grep kabini
Bash:
-r--r--r--   1 root wheel    21344 Jan  7 03:05 amdgpu_kabini_ce_bin.ko
-r--r--r--   1 root wheel    21344 Jan  7 03:05 amdgpu_kabini_me_bin.ko
-r--r--r--   1 root wheel    29552 Jan  7 03:05 amdgpu_kabini_mec_bin.ko
-r--r--r--   1 root wheel    21360 Jan  7 03:05 amdgpu_kabini_pfp_bin.ko
-r--r--r--   1 root wheel    23024 Jan  7 03:05 amdgpu_kabini_rlc_bin.ko
-r--r--r--   1 root wheel    17024 Jan  7 03:05 amdgpu_kabini_sdma1_bin.ko
-r--r--r--   1 root wheel    17000 Jan  7 03:05 amdgpu_kabini_sdma_bin.ko
-r--r--r--   1 root wheel   245280 Jan  7 03:05 amdgpu_kabini_uvd_bin.ko
-r--r--r--   1 root wheel   113600 Jan  7 03:05 amdgpu_kabini_vce_bin.ko
-r--r--r--   1 root wheel    21344 Jan  7 03:05 radeon_kabini_ce_bin.ko
-r--r--r--   1 root wheel    21344 Jan  7 03:05 radeon_kabini_me_bin.ko
-r--r--r--   1 root wheel    29552 Jan  7 03:05 radeon_kabini_mec_bin.ko
-r--r--r--   1 root wheel    21360 Jan  7 03:05 radeon_kabini_pfp_bin.ko
-r--r--r--   1 root wheel    23024 Jan  7 03:05 radeon_kabini_rlc_bin.ko
-r--r--r--   1 root wheel    17024 Jan  7 03:05 radeon_kabini_sdma1_bin.ko
-r--r--r--   1 root wheel    17000 Jan  7 03:05 radeon_kabini_sdma_bin.ko
-r--r--r--   1 root wheel   245280 Jan  7 03:05 radeon_kabini_uvd_bin.ko
-r--r--r--   1 root wheel   113600 Jan  7 03:05 radeon_kabini_vce_bin.ko
root@none:/boot/firmware # ls
Bash:
amd-ucode.bin
# kldstat | egrep kabini
Bash:
14    1 0xffffffff82db7000     4360 amdgpu_kabini_pfp_bin.ko
15    1 0xffffffff82dbc000     4360 amdgpu_kabini_me_bin.ko
16    1 0xffffffff82dc1000     4360 amdgpu_kabini_ce_bin.ko
17    1 0xffffffff82dc6000     6360 amdgpu_kabini_mec_bin.ko
18    1 0xffffffff82dcd000     49e0 amdgpu_kabini_rlc_bin.ko
19    1 0xffffffff82dd2000     3248 amdgpu_kabini_sdma_bin.ko
20    1 0xffffffff82dd6000     3248 amdgpu_kabini_sdma1_bin.ko
21    1 0xffffffff83466000    3ae10 amdgpu_kabini_uvd_bin.ko
22    1 0xffffffff82dda000    1abb0 amdgpu_kabini_vce_bin.ko

Everything is in place. What else does the system want?
# fwget -n
Bash:
Needed firmware packages: 'gpu-firmware-amd-kmod-kabini'
 
I had the similar problem but everything works.
Code:
fwget -n
Needed firmware packages: 'wifi-firmware-iwlwifi-kmod-9000 gpu-firmware-amd-kmod-raven'
I have installed both.
Code:
 pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_latest_2",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
 

Erichans fernandel

very interesting.
# pkg -vv | sed -n '/^Repositories:/,$ p'
Bash:
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
 
Thanks. I can't reproduce that on my 14.2R-p1-amd64-latest.

Everything is in place. What else does the system want?
However, as now two (EDIT: and more persons) have reported unexpected results, this, IMO, justifies a PR (or at least a submission in the mailinglist).
I suggest you consider this.

fwget(8) is part of the base install (it has been introduced fairly recent: FreeBSD 14.0-RELEASE Release Notes: 'A new fwget(8) utility inspects the system for peripherals that need firmware, [...]' and future expansion of this utility lies ahead); this may be a (benign) false positive but, there may be more to it. If I were the developer/maintainer, I'd like to know about this.
 
Hmm, can you post the output of pkg -vv | sed -n '/^Repositories:/,$ p' ?

root@ykla:~ # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
FreeBSD: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
root@ykla:~ #
 
Everything I read and reason in this thread is not what would be happening to me with drm-61.kmod:


judd@freebsd ~> uname -aU
FreeBSD freebsd 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 1402000



judd@freebsd ~> pkg info drm-61-kmod
drm-61-kmod-6.1.92
Name : drm-61-kmod
Version : 6.1.92
Installed on : Sat Feb 15 11:45:34 2025 -03
Source : graphics/drm-61-kmod
Architecture : FreeBSD:14:amd64
Prefix : /usr/local
Categories : kld graphics
Licenses : MIT and GPLv2 and BSD2CLAUSE
Maintainer : x11@FreeBSD.org
WWW : https://github.com/freebsd/drm-kmod/
Comments : DRM driver modules
Annotations :
FreeBSD_version : 1402000
Flat size : 17.0MiB
Description :
DRM driver modules amdgpu, i915 and radeon.
Currently corresponding to Linux 6.1 DRM.
This version is for FreeBSD 14-STABLE 1400508
and above.



judd@freebsd ~> pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
FreeBSD: {
url : “pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly”,
enabled : yes,
priority : 0,
mirror_type : “SRV”,
signature_type : “FINGERPRINTS”,
footprints : “/usr/share/keys/pkg”
}
judd@freebsd ~>



When I upgrade drm-61-kmod I don't get the version:


drm-61-kmod-6.1.128.1402000



and I do not know what is the reason ?


But it throws me:


judd@freebsd ~> sudo pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (8 candidates): 100%
Processing candidates (8 candidates): 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
drm-61-kmod: 6.1.92 -> 6.1.92.1401000_3

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]:



Something surely isn't right, but that's what I have and everything works fine.
🤔


Translated with DeepL.com (free version)
 
This might be related to the extension of port/package names: kmod: append osversion to the portversion, but that's just a guess.

all packages are built on the lowest
supported version of a given branch, which means right now all packages
are built on 14.1, this results as since 14.2 has been released and up
to the time 14.1 is EOLed we do not provide working binary packages for
kernel modules and related for 14.2.


It is probably so.
Thank you.
 
When I upgrade drm-61-kmod I don't get the version:
Code:
drm-61-kmod-6.1.128.1402000
and I do not know what is the reason ? [...]
Something surely isn't right, but that's what I have and everything works fine.
On 14.2-RELEASE with the 'kmods' repository enabled, on amd64-quarterly, you should get:
Rich (BB code):
[1-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_quarterly_2",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
[2-0] # pkg search '^drm-61-kmod'
drm-61-kmod-6.1.92.1401000_3   DRM drivers modules
drm-61-kmod-6.1.128.1402000    DRM drivers modules
[3-0] #
So the last drm-61-kmod available for your set up is drm-61-kmod-6.1.128.1402000; specifically build for 14.2-RELEASE (or its equivalent equally suited stable/14 version). However, probably because your graphics are not the newest, you do not have any errors resulting from running a 14.1-RELEASE specific version, that is: 6.1.92. That may change when you upgrade as suggested:
Code:
Installed packages to be UPGRADED:
drm-61-kmod: 6.1.92 -> 6.1.92.1401000_3
I cannot say one way or the other.

To get the version drm-61-kmod-6.1.128.1402000 on your system, you can either build drm-kmod (inc. drm-61-kmod) from source (use port source code) or make the changes to use the 'kmods' repository. For the last option, see the thread Possible solution to the drm-kmod kernel mismatch after upgrade from Bapt
 
However, probably because your graphics are not the newest, you do not have any errors resulting from running a 14.1-RELEASE specific version, that is: 6.1.92

This is what I have:

Code:
judd@freebsd ~> fwget -n
Needed firmware packages: 'gpu-firmware-intel-kmod-alderlake gpu-firmware-intel-kmod-tigerlake wifi-firmware-rtw88-kmod-rtw8821c'

Thanks again for your attention!
 
Are firmware packages build for 14.2 and are in kmods repository, please?
Some are (my view from 14.2-R-amd64-latest, out of 'kmods' totalling now at 44):
Code:
[1-0] # pkg search '\.1402' | grep -i firmware
gpu-firmware-amd-kmod-aldebaran-20230625.1402000_2 Firmware modules for aldebaran AMD GPUs
gpu-firmware-intel-kmod-skylake-20230625.1402000 Firmware modules for skylake Intel GPUs
gpu-firmware-radeon-kmod-aruba-20220511.1402000 Firmware modules for aruba Radeon GPUs
wifi-firmware-ath10k-kmod-20240513.1402000_1 Firmware modules for the ath10k (ath10k) WiFi NIC driver
wifi-firmware-ath11k-kmod-20240513.1402000_1 Firmware modules for the ath11k (ath11k) WiFi NIC driver
wifi-firmware-ath12k-kmod-20240513.1402000_1 Firmware modules for the ath12k (ath12k) WiFi NIC driver
wifi-firmware-iwlwifi-kmod-20241017.1402000_1 Firmware modules for the iwlwifi (iwlwifi) WiFi NIC driver
wifi-firmware-mt76-kmod-20240513.1402000_1 Firmware modules for the mt76 (mt76) WiFi NIC driver
wifi-firmware-mtw-kmod-20241017.1402000_1 Firmware modules for the mtw (mtw) WiFi NIC driver
wifi-firmware-rtw88-kmod-20241017.1402000_1 Firmware modules for the rtw88 (rtw88) WiFi NIC driver
wifi-firmware-rtw89-kmod-20241017.1402000_1 Firmware modules for the rtw89 (rtw89) WiFi NIC driver
[2-0] # pkg search '\.1402' | wc -l
      44
[3-0] #

When you've set up your 'kmods' correctly, IF 14.2-RELEASE specific packages appear in the 'kmods' repository, and you need them, a pkg upgrade should pick them up*. Note: on pkg(8) 2.0.6 that is;
Edit: When you've set up your 'kmods' correctly, IF 14.2-RELEASE specific packages appear in the 'kmods' repository, and you need them, then with pkg(8) 1.21.3 and 2.0.6 on, you should do the two-step upgrade as mentioned in Possible solution to the drm-kmod kernel mismatch after upgrade from Bapt, message #36.

___
* Edit: pkg 2.0.6 with just pkg upgrade does not seem to upgrade to 14.2 specific packages.
 
Last edited:
Some are (my view from 14.2-R-amd64-latest, out of 'kmods' totalling now at 44):
Code:
[1-0] # pkg search '\.1402' | grep -i firmware
gpu-firmware-amd-kmod-aldebaran-20230625.1402000_2 Firmware modules for aldebaran AMD GPUs
gpu-firmware-intel-kmod-skylake-20230625.1402000 Firmware modules for skylake Intel GPUs
gpu-firmware-radeon-kmod-aruba-20220511.1402000 Firmware modules for aruba Radeon GPUs
wifi-firmware-ath10k-kmod-20240513.1402000_1 Firmware modules for the ath10k (ath10k) WiFi NIC driver
wifi-firmware-ath11k-kmod-20240513.1402000_1 Firmware modules for the ath11k (ath11k) WiFi NIC driver
wifi-firmware-ath12k-kmod-20240513.1402000_1 Firmware modules for the ath12k (ath12k) WiFi NIC driver
wifi-firmware-iwlwifi-kmod-20241017.1402000_1 Firmware modules for the iwlwifi (iwlwifi) WiFi NIC driver
wifi-firmware-mt76-kmod-20240513.1402000_1 Firmware modules for the mt76 (mt76) WiFi NIC driver
wifi-firmware-mtw-kmod-20241017.1402000_1 Firmware modules for the mtw (mtw) WiFi NIC driver
wifi-firmware-rtw88-kmod-20241017.1402000_1 Firmware modules for the rtw88 (rtw88) WiFi NIC driver
wifi-firmware-rtw89-kmod-20241017.1402000_1 Firmware modules for the rtw89 (rtw89) WiFi NIC driver
[2-0] # pkg search '\.1402' | wc -l
      44
[3-0] #

When you've set up your 'kmods' correctly, IF 14.2-RELEASE specific packages appear in the 'kmods' repository, and you need them, a pkg upgrade should pick them up. Note: on pkg(8) 2.0.6 that is; on 1.21.3, you should do the two-step upgrade as mentioned in Possible solution to the drm-kmod kernel mismatch after upgrade from Bapt, message #36.
Looks like that I have correct settings but it upgrade just drm-61-kmod and last time was updated to drm-61-kmod-6.1.128.1402000.
I have the same as you:
Code:
 pkg search '\.1402' | wc -l
      44
Code:
fwget -n -v
Trying to match device 0x2526 in class network and vendor intel with pci_network_intel
Trying to match device 0x8168 in class network and vendor realtek with pci_network_realtek
Trying to match device 0x8168 in class network and vendor realtek with pci_network_realtek
Trying to match device 0x522a in class misc and vendor realtek with pci_misc_realtek
Trying to match device 0x15d8 in class video and vendor amd with pci_video_amd
Needed firmware packages: 'wifi-firmware-iwlwifi-kmod-9000 gpu-firmware-amd-kmod-raven'
And I didn't install gpu-frimware-amd-kmod but just
Code:
gpu-firmware-amd-kmod-picasso-20230625.1401000_2 Firmware modules for picasso AMD GPUs
gpu-firmware-amd-kmod-raven-20230625.1401000_2 Firmware modules for raven AMD GPUs
 
Something new.
I have 'wifi-firmware-iwlwifi-kmod-9000 gpu-firmware-amd-kmod-raven' and also amdgpu.ko, amdgpu_picasso in /boot/modules
and in /boot/firmware is just amd-ucode.bin.
And I installed now wifi-firmware-iwlwifi-kmod from kmods repository without problem and everything is installed in
/boot/firmware.
The wifi-firmware-iwlwifi-kmod-9000 in /boot/modules is built on 1.41 and in /boot/firmware on 1.42.
How should I solved the problem, please.
 
Code:
ls -l /boot/modules
total 23476
-r-xr-xr-x  1 root wheel    12464 Jan 30 20:55 acpi_call.ko
-r--r--r--  1 root wheel   185088 Dec 11 20:04 amdgpu_picasso_asd_bin.ko
-r--r--r--  1 root wheel    21872 Dec 11 20:04 amdgpu_picasso_ce_bin.ko
-r--r--r--  1 root wheel    12952 Dec 11 20:04 amdgpu_picasso_gpu_info_bin.ko
-r--r--r--  1 root wheel    30064 Dec 11 20:04 amdgpu_picasso_me_bin.ko
-r--r--r--  1 root wheel   280608 Dec 11 20:04 amdgpu_picasso_mec_bin.ko
-r--r--r--  1 root wheel   280632 Dec 11 20:04 amdgpu_picasso_mec2_bin.ko
-r--r--r--  1 root wheel    34176 Dec 11 20:04 amdgpu_picasso_pfp_bin.ko
-r--r--r--  1 root wheel    51760 Dec 11 20:04 amdgpu_picasso_rlc_am4_bin.ko
-r--r--r--  1 root wheel    51688 Dec 11 20:04 amdgpu_picasso_rlc_bin.ko
-r--r--r--  1 root wheel    29976 Dec 11 20:04 amdgpu_picasso_sdma_bin.ko
-r--r--r--  1 root wheel    54512 Dec 11 20:04 amdgpu_picasso_ta_bin.ko
-r--r--r--  1 root wheel   378080 Dec 11 20:04 amdgpu_picasso_vcn_bin.ko
-r--r--r--  1 root wheel   180960 Jan 29 20:09 amdgpu_raven_asd_bin.ko
-r--r--r--  1 root wheel    21840 Jan 29 20:09 amdgpu_raven_ce_bin.ko
-r--r--r--  1 root wheel    35712 Jan 29 20:09 amdgpu_raven_dmcu_bin.ko
-r--r--r--  1 root wheel    12920 Jan 29 20:09 amdgpu_raven_gpu_info_bin.ko
-r--r--r--  1 root wheel    51776 Jan 29 20:09 amdgpu_raven_kicker_rlc_bin.ko
-r--r--r--  1 root wheel    30032 Jan 29 20:09 amdgpu_raven_me_bin.ko
-r--r--r--  1 root wheel   280560 Jan 29 20:09 amdgpu_raven_mec_bin.ko
-r--r--r--  1 root wheel   280576 Jan 29 20:09 amdgpu_raven_mec2_bin.ko
-r--r--r--  1 root wheel    34144 Jan 29 20:09 amdgpu_raven_pfp_bin.ko
-r--r--r--  1 root wheel    51656 Jan 29 20:09 amdgpu_raven_rlc_bin.ko
-r--r--r--  1 root wheel    29936 Jan 29 20:09 amdgpu_raven_sdma_bin.ko
-r--r--r--  1 root wheel    46032 Jan 29 20:09 amdgpu_raven_ta_bin.ko
-r--r--r--  1 root wheel   378048 Jan 29 20:09 amdgpu_raven_vcn_bin.ko
-r--r--r--  1 root wheel 10931224 Feb 11 10:59 amdgpu.ko
-r--r--r--  1 root wheel    56968 Feb 11 10:59 dmabuf.ko
-r--r--r--  1 root wheel   970680 Feb 11 10:59 drm.ko
-r--r--r--  1 root wheel  3352096 Feb 11 10:59 i915kms.ko
-r--r--r--  1 root wheel  1532304 Jan 30 01:49 iwlwifi_9000_pu_b0_jf_b0_46_ucode.ko
-r--r--r--  1 root wheel  1503248 Jan 30 01:49 iwlwifi_9260_th_b0_jf_b0_46_ucode.ko
-rw-r--r--  1 root wheel    14680 Feb 16 13:08 linker.hints
-r--r--r--  1 root wheel  2379232 Feb 11 10:59 radeonkms.ko
-r--r--r--  1 root wheel   101752 Feb 11 10:59 ttm.ko

/boot/firmware have now new files from kmods repository wifi-firmware-iwlwifi-kmod
Code:
ls -l /boot/firmware
total 38868
-rw-r--r--  1 root wheel  147350 Feb 12 20:06 amd-ucode.bin
-r--r--r--  1 root wheel  918268 Dec 12 04:44 iwlwifi-3160-17.ucode
-r--r--r--  1 root wheel 1036288 Dec 12 04:44 iwlwifi-3168-29.ucode
-r--r--r--  1 root wheel 1049340 Dec 12 04:44 iwlwifi-7260-17.ucode
-r--r--r--  1 root wheel 1180412 Dec 12 04:44 iwlwifi-7265-17.ucode
-r--r--r--  1 root wheel 1036772 Dec 12 04:44 iwlwifi-7265D-29.ucode
-r--r--r--  1 root wheel 2428004 Dec 12 04:44 iwlwifi-8000C-36.ucode
-r--r--r--  1 root wheel 2436632 Dec 12 04:44 iwlwifi-8265-36.ucode
-r--r--r--  1 root wheel 1519568 Dec 12 04:44 iwlwifi-9000-pu-b0-jf-b0-46.ucode
-r--r--r--  1 root wheel 1490508 Dec 12 04:44 iwlwifi-9260-th-b0-jf-b0-46.ucode
-r--r--r--  1 root wheel 1367504 Dec 12 04:44 iwlwifi-cc-a0-77.ucode
-r--r--r--  1 root wheel 1797996 Dec 12 04:44 iwlwifi-gl-c0-fm-c0-83.ucode
-r--r--r--  1 root wheel 1913128 Dec 12 04:44 iwlwifi-gl-c0-fm-c0-92.ucode
-r--r--r--  1 root wheel  295004 Dec 12 04:44 iwlwifi-gl-c0-fm-c0.pnvm
-r--r--r--  1 root wheel 1747384 Dec 12 04:44 iwlwifi-ma-b0-gf-a0-89.ucode
-r--r--r--  1 root wheel   55112 Dec 12 04:44 iwlwifi-ma-b0-gf-a0.pnvm
-r--r--r--  1 root wheel 1599724 Dec 12 04:44 iwlwifi-ma-b0-gf4-a0-89.ucode
-r--r--r--  1 root wheel   27828 Dec 12 04:44 iwlwifi-ma-b0-gf4-a0.pnvm
-r--r--r--  1 root wheel 1572104 Dec 12 04:44 iwlwifi-ma-b0-hr-b0-83.ucode
-r--r--r--  1 root wheel 1539472 Dec 12 04:44 iwlwifi-ma-b0-hr-b0-89.ucode
-r--r--r--  1 root wheel 1405988 Dec 12 04:44 iwlwifi-Qu-b0-hr-b0-77.ucode
-r--r--r--  1 root wheel 1322744 Dec 12 04:44 iwlwifi-Qu-b0-jf-b0-77.ucode
-r--r--r--  1 root wheel 1406004 Dec 12 04:44 iwlwifi-Qu-c0-hr-b0-77.ucode
-r--r--r--  1 root wheel 1406124 Dec 12 04:44 iwlwifi-QuZ-a0-hr-b0-77.ucode
-r--r--r--  1 root wheel 1322828 Dec 12 04:44 iwlwifi-QuZ-a0-jf-b0-77.ucode
-r--r--r--  1 root wheel 1739904 Dec 12 04:44 iwlwifi-so-a0-gf-a0-89.ucode
-r--r--r--  1 root wheel   55192 Dec 12 04:44 iwlwifi-so-a0-gf-a0.pnvm
-r--r--r--  1 root wheel   27868 Dec 12 04:44 iwlwifi-so-a0-gf4-a0.pnvm
-r--r--r--  1 root wheel 1530736 Dec 12 04:44 iwlwifi-so-a0-hr-b0-89.ucode
-r--r--r--  1 root wheel 1446036 Dec 12 04:44 iwlwifi-so-a0-jf-b0-77.ucode
-r--r--r--  1 root wheel 1681772 Dec 12 04:44 iwlwifi-ty-a0-gf-a0-89.ucode
-r--r--r--  1 root wheel   55036 Dec 12 04:44 iwlwifi-ty-a0-gf-a0.pnvm
 
The wifi-firmware-iwlwifi-kmod-9000 in /boot/modules is built on 1.41 and in /boot/firmware on 1.42.
Just to verify, please post the results of
pkg -v
pkg which /boot/modules/iwlwifi_9000_pu_b0_jf_b0_46_ucode.ko
pkg which /boot/modules/iwlwifi_9260_th_b0_jf_b0_46_ucode.ko
pkg which /boot/firmware/iwlwifi-9000-pu-b0-jf-b0-46.ucode
pkg which /boot/firmware/iwlwifi-9260-th-b0-jf-b0-46.ucode
 
The reason why one port installs under /boot/modules and the other under /boot/firmware is the use of different location variables.

For amdgpu "picasso", a flavor of graphics/gpu-firmware-amd-kmod, its "Makefile" has the "USES=kmod" macro set: 93 USES= kmod uidfix (for details see porters handbook Chapter 17. Using USES Macros).

The macro "kmod" is a ports/Mk/Uses make file, which has the firmware/kernel modules directory set to /boot/modules:
Code:
33 KMODDIR?=       /boot/modules
34 .  if ${KMODDIR} == /boot/kernel
35 KMODDIR=        /boot/modules
36 .  endif


net/wifi-firmware-iwlwifi-kmod on the other hand has the firmware location set to /boot/firmware:

ports/net/wifi-firmware-iwlwifi-kmod/Makefile
Code:
BASEDIR=        ${.CURDIR}/../wifi-firmware-kmod

ports/net/wifi-firmware-kmod/Makefile.inc
Code:
97 BOOTFWDIR?=     /boot/firmware

As for amd-ucode.bin from port sysutils/cpu-microcode-amd:

Makefile
Code:
27 FWDIR=          /boot/firmware
 
Back
Top