Bug 291403 - iwm(4): iwm8000Cfw: could not load firmware image
Summary: iwm(4): iwm8000Cfw: could not load firmware image
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 15.0-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Bjoern A. Zeeb
URL:
Keywords: patch
Depends on:
Blocks: 278175
  Show dependency tree / graph
 
Reported: 2025-12-04 19:09 UTC by Augustin Hoffmann
Modified: 2026-01-18 21:43 UTC (History)
4 users (show)

See Also:
bz: mfc-stable15+
bz: mfc-stable14-
bz: mfc-stable13-


Attachments
This patch fixes incorrectly written entry in /boot/defaults/loader.conf (317 bytes, patch)
2025-12-04 19:09 UTC, Augustin Hoffmann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Augustin Hoffmann 2025-12-04 19:09:01 UTC
Created attachment 265847 [details]
This patch fixes incorrectly written entry in /boot/defaults/loader.conf

OS version, that this bug affects:
FreeBSD 15.0-STABLE 1500503

$ grep "iwm" /var/log/messages:
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6
Nov 30 09:04:28 bsdlap kernel: iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xe1100000-0xe1101fff at device 0.0 on pci2
Nov 30 09:04:28 bsdlap kernel: iwm8000Cfw: could not load firmware image, error 2
Nov 30 09:04:28 bsdlap kernel: iwm0: could not read firmware iwm8000Cfw (error 0)
Nov 30 09:04:28 bsdlap kernel: device_attach: iwm0 attach returned 6

$ pkg list FreeBSD-firmware-iwm:
/boot/firmware/iwm3160fw
/boot/firmware/iwm3168fw
/boot/firmware/iwm7260fw
/boot/firmware/iwm7265Dfw
/boot/firmware/iwm7265fw
/boot/firmware/iwm8000C     <<<<
/boot/firmware/iwm8265fw
/boot/firmware/iwm9000fw
/boot/firmware/iwm9260fw

$ grep "iwm" /boot/defaults/loader.conf:
iwm3160fw_type="firmware"
iwm7260fw_type="firmware"
iwm7265fw_type="firmware"
iwm8265fw_type="firmware"
iwm9260fw_type="firmware"
iwm3168fw_type="firmware"
iwm7265Dfw_type="firmware"
iwm8000C_type="firmware"    <<<<
iwm9000fw_type="firmware"

The problem is that the iwm module tries to load the firmware from /boot/firmware/iwm8000Cfw, but eventually fails because the filename from the installed package is incorrect.

To fix this, iwm8000C needs to be renamed to iwm8000Cfw, and an additional entry must be added to /boot/loader.conf:
$ mv /boot/firmware/iwm8000C /boot/firmware/iwm8000Cfw
$ echo 'iwm8000Cfw_type="firmware"' >> /boot/loader.conf
Comment 1 Jaskie 2025-12-08 02:15:10 UTC
I can confirm this affects 15.0-RELEASE too. On a newly upgraded laptop with Intel 8260 AC wireless devices, even with firmware installed sysctl net.wlan.devices shows no device, dmesg throws the same error message. With the proposed renaming of iwm8000C to iwm8000Cfw and adding the entry in /boot/loader.conf, WiFi starts to work as previously on 14.3-RELEASE.
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-12-08 03:17:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f0ea859229843affe07ac94db915489756f87096

commit f0ea859229843affe07ac94db915489756f87096
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-12-08 03:03:14 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-12-08 03:16:00 +0000

    iwmfw(4): fix spelling of the iwm8000C firmware.

    When migrating the firmware to be installed as plain firmware files
    to /boot/firmware the iwm8000C firmware lost its "fw" suffix that
    iwm(4) expects.
    The follow-up change to defaults/loader.conf is also consistently
    missing the "fw".

    Fix both places, and add the wrongly spelt version to ObsoleteFiles.inc
    (entirely untested).

    PR:             291403
    Reported by:    Augustin Hoffmann (avgwst tutanota.de)
    Fixes:          af0a81b6470aba4af4a24ae9804053722846ded4
    Fixes:          a0f06dfb0d188966bee7265ec7d9f20093186bb6
    MFC after:      3 days

 ObsoleteFiles.inc            | 3 +++
 share/firmwares/iwm/Makefile | 2 +-
 stand/defaults/loader.conf   | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-12-15 18:11:04 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f545f88246416514b09efde44879ba0eadfa1780

commit f545f88246416514b09efde44879ba0eadfa1780
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-12-08 03:03:14 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-12-15 18:09:21 +0000

    iwmfw(4): fix spelling of the iwm8000C firmware.

    When migrating the firmware to be installed as plain firmware files
    to /boot/firmware the iwm8000C firmware lost its "fw" suffix that
    iwm(4) expects.
    The follow-up change to defaults/loader.conf is also consistently
    missing the "fw".

    Fix both places, and add the wrongly spelt version to ObsoleteFiles.inc
    (entirely untested).

    PR:             291403
    Reported by:    Augustin Hoffmann (avgwst tutanota.de)
    Fixes:          af0a81b6470aba4af4a24ae9804053722846ded4
    Fixes:          a0f06dfb0d188966bee7265ec7d9f20093186bb6

    (cherry picked from commit f0ea859229843affe07ac94db915489756f87096)

 ObsoleteFiles.inc            | 3 +++
 share/firmwares/iwm/Makefile | 2 +-
 stand/defaults/loader.conf   | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
Comment 4 Bjoern A. Zeeb freebsd_committer freebsd_triage 2026-01-18 21:43:33 UTC
Apparently I merged it to stable/15 in December and forgot to close the PR.
I believe the fix is not needed in 14 or 13 so I'll close this.
Thanks a lot for reporting, analysis and initial patch!