Re: Intel NUC iwm0 (Intel Dual Band Wireless AC 8260) supported?

From: Li-Wen Hsu <lwhsu_at_freebsd.org>
Date: Wed, 31 May 2023 05:42:02 UTC
On Wed, May 31, 2023 at 1:31 PM Gregory Shapiro <gshapiro@freebsd.org> wrote:
>
> I recently obtained an Intel NUC and, of course, installed FreeBSD on it.  Everything that I need works except for the built-in wireless.  Though it shows at boot (as iwm0), after booting, it doesn't show up as a network interface.  I tried installing the iwmbt-firmware-20221109 port and using it, but it didn't help (successfully applied, but no change).  Is there something I am missing or is this particular device not supported?
>
> # iwmbtfw -I -d ugen0.3 -f /usr/local/share/iwmbt-firmware
> iwmbt_is_8260: found 8260/8265
> main: Firmware has already been downloaded
> main: Firmware download is successful!
>
> pciconf sees:
>
> # pciconf -l | grep iwm
> iwm0@pci0:1:0:0:        class=0x028000 rev=0x3a hdr=0x00 vendor=0x8086 device=0x24f3 subvendor=0x8086 subdevice=0x9010
> # pciconf -lv pci0:1:0:0
> iwm0@pci0:1:0:0:        class=0x028000 rev=0x3a hdr=0x00 vendor=0x8086 device=0x24f3 subvendor=0x8086 subdevice=0x9010
>     vendor     = 'Intel Corporation'
>     device     = 'Wireless 8260'
>     class      = network
>
> Kernel modules are autoloaded for it:
>
> # kldstat
> Id Refs Address                Size Name
>  1   75 0xffffffff80200000  1f3e2d0 kernel
>  2    1 0xffffffff8213f000     a4a0 cryptodev.ko
>  3    1 0xffffffff8214a000   59dfa8 zfs.ko
>  4    1 0xffffffff83010000     d9b0 geom_eli.ko
>  5    1 0xffffffff8301e000     3250 ichsmb.ko
>  6    1 0xffffffff83022000     2180 smbus.ko
>  7    1 0xffffffff83025000    880c8 if_iwlwifi.ko
>  8    1 0xffffffff830ae000    17310 if_iwm.ko
>  9    1 0xffffffff830c6000     2110 pchtherm.ko
> 10    1 0xffffffff83200000   207d78 iwm8000Cfw.ko
> 11    1 0xffffffff830c9000     3340 uhid.ko
> 12    1 0xffffffff830cd000     3380 usbhid.ko
> 13    1 0xffffffff830d1000     31f8 hidbus.ko
> 14    1 0xffffffff830d5000     3320 wmt.ko
> 15    1 0xffffffff830d9000     4d00 ng_ubt.ko
> 16    6 0xffffffff830de000     aac8 netgraph.ko
> 17    2 0xffffffff830e9000     a238 ng_hci.ko
> 18    4 0xffffffff830f4000     25a8 ng_bluetooth.ko
> 19    1 0xffffffff830f7000     e250 ng_l2cap.ko
> 20    1 0xffffffff83106000    1bee8 ng_btsocket.ko
> 21    1 0xffffffff83122000     39c0 ng_socket.ko
> 22    1 0xffffffff83126000    27190 ipfw.ko
> 23    1 0xffffffff8314e000     2a08 mac_ntpd.ko
>
>
> Boot messages:
>
> FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
> ...
> ACPI APIC Table: <INTEL  NUC6i5SY>
> ...
> pci1: <ACPI PCI bus> on pcib1
> ...
> pci1: <network> at device 0.0 (no driver attached)
> ...
> Intel(R) Wireless WiFi based driver for FreeBSD
> pchtherm0: <Skylake PCH Thermal Subsystem> mem 0xdf250000-0xdf250fff irq 18 at device 20.2 on pci0
> ichsmb0: <Intel Sunrise Point-LP SMBus controller> port 0xf040-0xf05f mem 0xdf24a000-0xdf24a0ff irq 16 at device 31.4 on pci0
> smbus0: <System Management Bus> on ichsmb0
> iwm0: <Intel(R) Dual Band Wireless AC 8260> mem 0xdf100000-0xdf101fff irq 16 at device 0.0 on pci1
> iwm0: hw rev 0x200, fw ver 22.361476.0, address a0:c5:89:17:cc:f3
> ...
> ubt0 on uhub0
> ubt0: <vendor 0x8087 product 0x0a2b, class 224/1, rev 2.00/0.01, addr 2> on usbus0
> WARNING: attempt to domain_add(bluetooth) after domainfinalize()
> WARNING: attempt to domain_add(netgraph) after domainfinalize()
> ...
>
>
>

iwmbt-firmware is for bluetooth. I guess what you want is 802.11
wireless. The firmware of iwm(4) is in the base. From your chip (8260)
and the output of kldstate, It seems using iwm8000Cfw.ko and it's
already loaded.

For the interface, have you tried to create a vap (wlan) from the
parent device (iwm)?
Try: `ifconfig wlan create wlandev iwm0`

BTW, You can also try the newer iwlwifi(4)

Best,
Li-Wen