Intel Corporation Alder Lake-P PCH CNVi WiFi?

I tried to install freebsd several weeks ago on my laptop but the network doesn't seem to be working after I've installed the system(it works when I install the system somehow)

Do I have any luck with "Intel Corporation Alder Lake-P PCH CNVi WiFi"? Is there some kind of tutorial? Thanks a lot!
 
IMO no hardware support blocks many users from using freebsd, and that's kind of a vicious cycle as few users means less code(especially for drivers), and as a result less users.
 
It appears the Alder Lake-P PCH CNVi WiFi is a AX201
It's a AX201 allright.

src/share/misc/pci_vendors
Code:
        51f0  Alder Lake-P PCH CNVi WiFi
                8086 0034  Wireless-AC 9560 160MHz
                8086 0070  Wi-Fi 6 AX201 160MHz
                8086 0074  Wi-Fi 6 AX201 160MHz
                8086 0094  Wi-Fi 6E AX211 160MHz
                8086 4070  Wi-Fi 6 AX201 160MHz
                8086 4090  Wi-Fi 6E AX211 160MHz
 
I've already followed that guide and failed recently, I'll take another look in a couple of days, Thanks!
 
I recently bought a laptop with an AX201 as well, and that works very intermittently with iwlwifi. When running the 14.0-RELEASE installer I usually get it to scan SSID's and connect. After that, it almost invariably complains very loudly in dmesg and then fails to associate properly. Apparently there are some weird non-deterministic effects from the surrounding radio environment and other kernel modules you may or may not have in place like drm-kmod versions and the order in which things get loaded. I'll be investigating this over the weekend. Maybe wifibox could be an option for you. I haven't tried that with the AX201 yet, but on other iwlwifi cards it works just fine and for me it's a reasonable compromise on a laptop that can handle a tiny VM in the background. If all else fails I'm going to hook this thing up to a wired port and provide SSH access to the people working on iwlwifi so they can get into the nitty gritty themselves without buying hardware.
 
Something very wonky is still going on with my AX201. When I run it through iwlwifi it occasionally works, but I get loads of flickering and instability with KDE5. Same story on 14.0-RELEASE, 14.1-RC1 and CURRENT. However, now that I use wifibox the desktop also cleared up completely. The system suddenly feels rock-solid. Typing this from CURRENT right now, but will revert this setup back down once 14.1-RELEASE hits in a few days.

Lots of complicated interactions going on apparently. Looks like wifibox is the path of least resistance for those with AX201 + recent Intel iGPU graphics and a need to get their laptop to just work in the short term. How to get that running?

First install wifibox-iwlwifi through pkg. It takes care of its own dependencies.

Code:
pciconf -l -v
This gives you something like:
Code:
ppt0@pci0:0:20:3:       class=0x028000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x51f1 subvendor=0x8086 subdevice=0x0074
    vendor     = 'Intel Corporation'
    device     = 'Raptor Lake PCH CNVi WiFi'
    class      = network
The interesting part here is the pci0:0:20:3 bit, that tells you what you need to pass on to the Linux VM. Edit the config file /usr/local/etc/wifibox/bhyve.conf for that. There's a line in there that starts with 'passthru='. Mine currently is:

Code:
passthru="0/20/3"

Note that this mirrors the digits you found through the pciconf command earlier. These numbers differ depending on where your WiFi card appears on the PCI bus.

I copied my /etc/wpa_supplicant.conf into /usr/local/etc/wifibox/wpa_supplicant/ directory unmodified so that the VM knows how to connect to my network at all.

In /etc/rc.conf you need to have a few things that set up wifibox and block out the loading of iwlwifi and iwm:

Code:
devmatch_enable="YES"
devmatch_blocklist="if_iwm if_iwlwifi"
wifibox_enable="YES"

I rebooted after this and manually ran dhclient against the wifibox0 interface. That got me an IP address from the VM and I could use the IPv4 internet. To make this stick, add the following to /etc/rc.conf:

Code:
ifconfig_wifibox0="SYNCDHCP"

IPv6 is also possible. This comes straight from the wifibox manpage and works fine in my /etc/rc.conf:

Code:
ifconfig_wifibox0_ipv6="inet6 fd00::1/64 accept_rtadv auto_linklocal"

For me personally, this is all I need. My laptop doesn't need any open ports (even though this is doable) and double NAT is acceptable for my needs. The box is plenty fast enough and I have 32GB of RAM in here so I won't notice the tiny 128MB Alpine VM running in the background.
 
Back
Top