降级至5.19.0-45-generic内核后Intel AX200无线网卡无法工作的解决求助
降级至5.19.0-45-generic内核后Intel AX200无线网卡无法工作的解决求助
大家好,想请教个问题:公司因为Digital Guardian的产品要求,强制我们把内核从6.2.0-32-generic降级到5.19.0-45-generic,这个要求是硬性规则没法改动。但降级之后,我这台Ubuntu认证的Lenovo P53上的Intel AX200无线网卡就彻底没法用了,切回新内核又能正常工作。有没有大佬能教教我,怎么在正常运行的新内核里排查缺失的组件,然后让旧内核也能用上WiFi?
更新1:网卡硬件信息
我执行了lspci -nnk -d ::0280命令,得到以下输出:
52:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a) Subsystem: Intel Corporation Wi-Fi 6 AX200 [8086:0080] Kernel driver in use: iwlwifi Kernel modules: iwlwifi
更新2:新旧内核下的dmesg日志对比
在能正常使用WiFi的新内核里,执行sudo dmesg | grep iwl能看到完整的网卡加载日志,但在旧内核里执行这个命令没有任何输出。新内核的日志内容如下:
[ 12.763037] iwlwifi 0000:52:00.0: enabling device (0000 -> 0002) [ 12.781561] iwlwifi 0000:52:00.0: api flags index 2 larger than supported by driver [ 12.781576] iwlwifi 0000:52:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37 [ 12.781998] iwlwifi 0000:52:00.0: loaded firmware version 72.daa05125.0 cc-a0-72.ucode op_mode iwlmvm [ 12.953490] iwlwifi 0000:52:00.0: BIOS contains WGDS but no WRDS [ 12.954059] iwlwifi 0000:52:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340 [ 13.106123] iwlwifi 0000:52:00.0: Detected RF HR B3, rfid=0x10a100 [ 13.175678] iwlwifi 0000:52:00.0: base HW address: 94:e6:f7:f3:ef:e9 [ 13.193880] iwlwifi 0000:52:00.0 wlp82s0: renamed from wlan0 [ 330.316983] Modules linked in: rfcomm xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables libcrc32c nfnetlink br_netfilter bridge stp llc ccm cmac algif_hash algif_skcipher af_alg bnep overlay snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation binfmt_misc soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_ctl_led soundwire_bus snd_hda_codec_conexant snd_soc_core snd_hda_codec_generic snd_hda_codec_hdmi snd_compress ac97_bus snd_pcm_dmaengine intel_tcc_cooling snd_hda_intel x86_pkg_temp_thermal iwlmvm snd_intel_dspcfg intel_powerclamp snd_intel_sdw_acpi snd_seq_midi mei_hdcp mei_pxp snd_hda_codec coretemp intel_rapl_msr tps6598x nls_iso8859_1 snd_seq_midi_event mac80211 kvm_intel btusb snd_hda_core snd_rawmidi snd_hwdep [ 330.317033] libarc4 btrtl kvm uvcvideo snd_pcm cmdlinepart processor_thermal_device_pci_legacy iwlwifi irqbypass snd_seq btbcm spi_nor videobuf2_vmalloc processor_thermal_device think_lmi rapl btintel snd_seq_device intel_cstate thinkpad_acpi videobuf2_memops processor_thermal_rfim serio_raw typec_displayport firmware_attributes_class intel_wmi_thunderbolt btmtk wmi_bmof mtd nvram elan_i2c ee1004 8250_dw snd_timer videobuf2_v4l2 processor_thermal_mbox cfg80211 bluetooth videodev processor_thermal_rapl input_leds snd mei_me intel_rapl_common videobuf2_common cdc_mbim ecdh_generic joydev cdc_wdm mc mei ecc soundcore intel_soc_dts_iosf intel_pch_thermal serial_multi_instantiate ledtrig_audio platform_profile int3403_thermal int340x_thermal_zone nvidia_uvm(POE) mac_hid int3400_thermal acpi_pad acpi_thermal_rel sch_fq_codel msr parport_pc ppdev lp parport ramoops reed_solomon pstore_blk pstore_zone efi_pstore ip_tables x_tables autofs4 dm_crypt hid_microsoft ff_memless hid_generic cdc_ncm [ 4942.434971] Modules linked in: xt_nat xt_tcpudp veth rfcomm xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables libcrc32c nfnetlink br_netfilter bridge stp llc ccm cmac algif_hash algif_skcipher af_alg bnep overlay snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation binfmt_misc soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_ctl_led soundwire_bus snd_hda_codec_conexant snd_soc_core snd_hda_codec_generic snd_hda_codec_hdmi snd_compress ac97_bus snd_pcm_dmaengine intel_tcc_cooling snd_hda_intel x86_pkg_temp_thermal iwlmvm snd_intel_dspcfg intel_powerclamp snd_intel_sdw_acpi snd_seq_midi mei_hdcp mei_pxp snd_hda_codec coretemp intel_rapl_msr tps6598x nls_iso8859_1 snd_seq_midi_event mac80211 kvm_intel btusb snd_hda_core [ 4942.435032] snd_rawmidi snd_hwdep libarc4 btrtl kvm uvcvideo snd_pcm cmdlinepart processor_thermal_device_pci_legacy iwlwifi irqbypass snd_seq btbcm spi_nor videobuf2_vmalloc processor_thermal_device think_lmi rapl btintel snd_seq_device intel_cstate thinkpad_acpi videobuf2_memops processor_thermal_rfim serio_raw typec_displayport firmware_attributes_class intel_wmi_thunderbolt btmtk wmi_bmof mtd nvram elan_i2c ee1004 8250_dw snd_timer videobuf2_v4l2 processor_thermal_mbox cfg80211 bluetooth videodev processor_thermal_rapl input_leds snd mei_me intel_rapl_common videobuf2_common cdc_mbim ecdh_generic joydev cdc_wdm mc mei ecc soundcore intel_soc_dts_iosf intel_pch_thermal serial_multi_instantiate ledtrig_audio platform_profile int3403_thermal int340x_thermal_zone nvidia_uvm(POE) mac_hid int3400_thermal acpi_pad acpi_thermal_rel sch_fq_codel msr parport_pc ppdev lp parport ramoops reed_solomon pstore_blk pstore_zone efi_pstore ip_tables x_tables autofs4 dm_crypt hid_microsoft ff_memless
更新3:旧内核下的模块操作问题
在旧内核环境里,我尝试加载iwlwifi模块失败:
sudo modprobe iwlwifi
输出错误信息:
modprobe: ERROR: ../libkmod/libkmod-module.c:838 kmod_module_insert_module() could not find module by name='iwlwifi' modprobe: ERROR: could not insert 'iwlwifi': Unknown symbol in module, or unknown parameter (see dmesg)
尝试安装无线固件也找不到对应包:
sudo apt install firmware-iwlwifi
输出:
Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package firmware-iwlwifi
其他相关命令的执行结果:
modinfo iwlwifi:输出modinfo: ERROR: Module iwlwifi not found.sudo dpkg -l | grep iwl:无任何输出lsmod | grep iwl:无任何输出
更新4:模块配置和DKMS状态
我查询了modprobe的配置文件:
grep -ir iwl /etc/modprobe.d
输出:
/etc/modprobe.d/iwlwifi.conf:# /etc/modprobe.d/iwlwifi.conf /etc/modprobe.d/iwlwifi.conf:# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the /etc/modprobe.d/iwlwifi.conf:# microcode file installed on the system. When removing iwlwifi, first /etc/modprobe.d/iwlwifi.conf:# remove the iwl?vm module and then iwlwifi. /etc/modprobe.d/iwlwifi.conf:remove iwlwifi \ /etc/modprobe.d/iwlwifi.conf:(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
DKMS状态查询结果:
dkms status
输出:
backport-iwlwifi/9858, 5.19.0-45-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) backport-iwlwifi/9858, 6.2.0-32-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) nvidia/535.86.05, 5.19.0-45-generic, x86_64: installed nvidia/535.86.05, 6.2.0-31-generic, x86_64: installed nvidia/535.86.05, 6.2.0-32-generic, x86_64: installed
备注:内容来源于stack exchange,提问作者Martin Mucha
相关产品推荐
相关产品推荐

