sudo apt upgrade 后 wlan0 丢失

sudo apt upgrade 后 wlan0 丢失

sudo apt upgrade 后:内核版本 5.4.0.1052-raspi 升级到 5.4.0.1095-raspi 但突然找不到 wlan0。因此检查了模块和 linux-headers,发现 1052 中使用的 wifi 接口是 rtl8821cu,但在 1095 内核版本中找不到。找到了新模块,rtl8192cu 已加载,但仍找不到 wlan0。

请告知新版本内核是否存在任何复杂性。它位于 raspberry pi4 的 ubuntu20.04 中。

lsusb

Bus 003 Device 002: ID 2bc5:0401 Orbbec(R) ORBBEC Depth Sensor
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 040b:2000 Weltrend Semiconductor wired Keyboard [Dynex DX-WRK1401]
Bus 001 Device 004: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 001 Device 007: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter
Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. USB2.0 Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo iwconfig

lo        no wireless extensions.
hnet0     no wireless extensions.
eth1      no wireless extensions.
eth0      no wireless extensions.
docker0   no wireless extensions.

lsmod |grep cfg什么都没显示。
新内核中缺少 cfg8821
ls /lib/modules/5.4.0-1095-raspi/kernel/drivers/net/wireless。:

ath       intel              marvell   ray_cs.ko      rsi  virt_wifi.ko
atmel     intersil           mediatek  realtek        st   wl3501_cs.ko
broadcom  mac80211_hwsim.ko  ralink    rndis_wlan.ko  ti   zydas

ls /lib/modules/5.4.0-1052-raspi/kernel/drivers/net/wireless

8821cu.ko  intel              mediatek   rndis_wlan.ko  virt_wifi.ko
ath        intersil           ralink     rsi            wl3501_cs.ko
atmel      mac80211_hwsim.ko  ray_cs.ko  st             zydas
broadcom   marvell            realtek    ti

sudo lspci

00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2711 (rev 20)
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)

答案1

虽然我不明白为什么升级版本中缺少无线接口模块,但所需的模块从此再次安装rtl8821cu然后回来。

相关内容