根据英特尔,英特尔® Wi-Fi 6 AX200 160MHz 设备仅保证与内核版本兼容5.1+
.(供您参考,它适用于内核版本为 的 Ubuntu 18.04.4 LTS 5.3.0-28
。)
我想要实现的目标
但是,我需要让英特尔 Wi-Fi 6 AX200 在内核版本为 Ubuntu 16.04.6 LTS 上运行4.15.0-88
(原因是我需要 CUDA 10 Toolkit,而截至本文发稿时,CUDA 10 支持的最高内核版本4.15
是英伟达。
有什么方法可以让这个内核在 Ubuntu 16.04.6 中工作吗4.15
?
我尝试过
我尝试复制固件,方法如下这,但没有区别:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git cd linux-firmware cp iwlwifi-*.ucode /lib/firmware
我尝试按照以下步骤安装反向移植驱动程序指导但出现以下错误:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git cd backport-iwlwifi make defconfig-iwlwifi-public sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config make -j4 sudo make install ... ... At main.c:160: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory ...
重启后 Wifi 确实被检测到了。但是,Ubuntu 在尝试连接后立即冻结。
以下是一些信息。
user@laptop:~$ sudo modprobe iwlwifi
user@laptop:~$ modinfo iwlwifi | grep file filename: /lib/modules/4.15.0-91-generic/updates/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko parm: nvm_file:NVM file name (charp)
user@laptop:~$ dmesg | grep iwl [ 4.857473] Loading modules backported from iwlwifi [ 4.857474] iwlwifi-stack-public:master:8324:9176b151 [ 4.931567] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) [ 4.938095] iwlwifi 0000:04:00.0: Direct firmware load for iwl-dbg-cfg.ini failed with error -2 [ 4.938218] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-55.ucode failed with error -2 [ 4.938328] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-54.ucode failed with error -2 [ 4.938555] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-53.ucode failed with error -2 [ 4.938567] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-52.ucode failed with error -2 [ 4.938577] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-51.ucode failed with error -2 [ 4.940246] iwlwifi 0000:04:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 58.3.35.22 [ 4.940249] iwlwifi 0000:04:00.0: Found debug destination: EXTERNAL_DRAM [ 4.940251] iwlwifi 0000:04:00.0: Found debug configuration: 0 [ 4.940498] iwlwifi 0000:04:00.0: loaded firmware version 50.3e391d3e.0 cc-a0-50.ucode op_mode iwlmvm [ 4.940511] iwlwifi 0000:04:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2 [ 4.958898] iwlwifi 0000:04:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340 [ 5.128296] iwlwifi 0000:04:00.0: base HW address: 50:eb:71:74:fc:52 [ 5.216966] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0 [ 7.615869] iwlwifi 0000:04:00.0: BIOS contains WGDS but no WRDS
user@laptop:~$ rfkill list all 0: hci0: Bluetooth Soft blocked: yes Hard blocked: no 1: phy0: Wireless LAN Soft blocked: nob Hard blocked: no
user@laptop:~$ cat /var/log/syslog | grep -e iwl -e wlp Mar 19 21:55:26 laptop kernel: [ 4.089819] Loading modules backported from iwlwifi Mar 19 21:55:26 laptop kernel: [ 4.089820] iwlwifi-stack-public:master:8324:9176b151 Mar 19 21:55:26 laptop kernel: [ 4.120067] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) Mar 19 21:55:26 laptop kernel: [ 4.127062] iwlwifi 0000:04:00.0: Direct firmware load for iwl-dbg-cfg.ini failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.127308] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-55.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.128596] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-54.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.128618] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-53.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.129199] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-52.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.129220] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-51.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.129318] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-50.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.129334] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-49.ucode failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.131300] iwlwifi 0000:04:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 43.2.23.17 Mar 19 21:55:26 laptop kernel: [ 4.131308] iwlwifi 0000:04:00.0: Found debug destination: EXTERNAL_DRAM Mar 19 21:55:26 laptop kernel: [ 4.131311] iwlwifi 0000:04:00.0: Found debug configuration: 0 Mar 19 21:55:26 laptop kernel: [ 4.131728] iwlwifi 0000:04:00.0: loaded firmware version 48.4fa0041f.0 cc-a0-48.ucode op_mode iwlmvm Mar 19 21:55:26 laptop kernel: [ 4.131751] iwlwifi 0000:04:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2 Mar 19 21:55:26 laptop kernel: [ 4.174508] iwlwifi 0000:04:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340 Mar 19 21:55:26 laptop kernel: [ 4.186490] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM Mar 19 21:55:26 laptop kernel: [ 4.187531] iwlwifi 0000:04:00.0: Allocated 0x00400000 bytes for firmware monitor. Mar 19 21:55:26 laptop kernel: [ 4.344711] iwlwifi 0000:04:00.0: base HW address: 50:eb:71:74:fc:52 Mar 19 21:55:26 laptop kernel: [ 4.360401] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0 Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.7886] rfkill1: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/ieee80211/phy0/rfkill1) (driver iwlwifi) Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8192] devices added (path: /sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/wlp4s0, iface: wlp4s0) Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8192] device added (path: /sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/wlp4s0, iface: wlp4s0): no ifupdown configuration found. Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8499] (wlp4s0): using nl80211 for WiFi device control Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8512] device (wlp4s0): driver supports Access Point (AP) mode Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8523] manager: (wlp4s0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/0) Mar 19 21:55:26 laptop NetworkManager[1003]: <info> [1584629726.8535] device (wlp4s0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Mar 19 21:55:26 laptop kernel: [ 4.780946] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready Mar 19 21:55:26 laptop kernel: [ 4.792594] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM Mar 19 21:55:27 laptop kernel: [ 4.942557] iwlwifi 0000:04:00.0: FW already configured (0) - re-configuring Mar 19 21:55:27 laptop kernel: [ 4.948463] iwlwifi 0000:04:00.0: BIOS contains WGDS but no WRDS Mar 19 21:55:27 laptop kernel: [ 4.950788] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready Mar 19 21:55:27 laptop NetworkManager[1003]: <info> [1584629727.1088] device (wlp4s0): supplicant interface state: init -> starting Mar 19 21:55:27 laptop wpa_supplicant[1193]: Could not read interface p2p-dev-wlp4s0 flags: No such device Mar 19 21:55:27 laptop NetworkManager[1003]: <info> [1584629727.1881] device (wlp4s0): supplicant interface state: starting -> ready Mar 19 21:55:27 laptop NetworkManager[1003]: <info> [1584629727.1882] device (wlp4s0): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42] Mar 19 21:55:27 laptop kernel: [ 5.115444] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready Mar 19 21:55:30 laptop NetworkManager[1003]: <info> [1584629730.4391] device (wlp4s0): supplicant interface state: ready -> inactive Mar 19 21:55:52 laptop NetworkManager[1003]: <info> [1584629752.8460] device (wlp4s0): Activation: starting connection 'AndroidAPA24A' (fbf53422-d295-49ed-b45c-6c5383cb931c) Binary file (standard input) matches
笔记
- 在类似邮政,提供的答案是将内核升级到
5.1+
,但这不符合我的情况的要求。
答案1
答案2
仅针对 ubuntu 16.04 lts 进行了检查
检查内核版本
uname -a
,若版本不是4.15则更新至4.15sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04
若更新内核需要重启只需复制并粘贴
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
sudo make defconfig-iwlwifi-public;sudo make; sudo make install
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cd linux-firmware/
sudo cp iwlwifi-* /lib/firmware/
reboot