我已经购买了安装了 ubuntu 18.10 的 DELL Vosro 3583。我立即升级到 19.10。升级进展顺利,一切正常,直到我看到仍在使用的内核是旧的 4.15 内核 (vmlinuz-4.15.0-1073-oem)。
然后我使用手动升级内核
->sudo apt-get upgrade linux-kernel-generic linux-headers-generic
在执行此操作时,我看到有一个错误:
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.
我重新启动,一切似乎都工作正常。该盒子现在正在运行内核 5.3。
我搜索了一下,发现我可以使用以下命令列出 dkms 模块:
->dkms status
oem-ethernet-r8169-aspm-support-bionic, 3, 4.15.0-1073-oem, x86_64: installed
oem-wifi-qualcomm-ath10k-lp1803647-4.15, 2.0, 4.15.0-1073-oem, x86_64: installed
我有一个问题:如何将这些模块更新为新的 19.10 模块?
lspci
给出以下内容:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
谢谢
编辑:对 heynnema 的回应:
是的,升级后wifi工作正常。反正我不使用以太网端口。
添加请求的输出。我看过 dkms.conf 文件并看到“BUILD_EXCLUSIVE_KERNEL="^4.15.*"”这一行。但是我希望升级到 19.10 后,目录本身应该升级到类似于“oem-wifi-qualcomm-ath10k-lp1803647-5.3-xx”而不是“/oem-wifi-qualcomm-ath10k-lp1803647-4.15- xx”。
$ sudo lshw -C 网络
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 15
serial: 98:e7:43:0f:8d:28
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical
configuration: broadcast=yes driver=r8169 latency=0 multicast=yes
resources: irq:16 ioport:3000(size=256) memory:c1304000-c1304fff memory:c1300000-c1303fff
*-network
description: Wireless interface
product: QCA9377 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 31
serial: 40:23:43:44:aa:61
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=5.3.0-40-generic firmware=WLAN.TF.2.1-00021-QCARMSWP-1 ip=192.168.1.47 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:131 memory:c1000000-c11fffff
$ cat /usr/src/oem-wifi-qualcomm-ath10k-lp1803647-4.15-2.0/dkms.conf
PACKAGE_NAME="oem-wifi-qualcomm-ath10k-lp1803647-4.15"
PACKAGE_VERSION="2.0"
MAKE="'make' -C ./ KVER=$kernelver"
CLEAN="'make' -C ./ clean"
AUTOINSTALL="yes"
REMAKE_INITRD="yes"
BUILD_EXCLUSIVE_KERNEL="^4.15.*"
BUILT_MODULE_NAME[0]="ath"
BUILT_MODULE_LOCATION[0]="./"
DEST_MODULE_LOCATION[0]="/updates"
BUILT_MODULE_NAME[1]="ath10k_core"
BUILT_MODULE_LOCATION[1]="ath10k/"
DEST_MODULE_LOCATION[1]="/updates"
BUILT_MODULE_NAME[2]="ath10k_pci"
BUILT_MODULE_LOCATION[2]="ath10k/"
DEST_MODULE_LOCATION[2]="/updates"
BUILT_MODULE_NAME[3]="ath10k_sdio"
BUILT_MODULE_LOCATION[3]="ath10k/"
DEST_MODULE_LOCATION[3]="/updates"
BUILT_MODULE_NAME[4]="ath10k_usb"
BUILT_MODULE_LOCATION[4]="ath10k/"
DEST_MODULE_LOCATION[4]="/updates"
$ cat /usr/src/oem-ethernet-r8169-aspm-support-bionic-3/dkms.conf
PACKAGE_NAME="oem-ethernet-r8169-aspm-support-bionic"
PACKAGE_VERSION="3"
MAKE="'make' -C ./ KVER=$kernelver"
CLEAN="'make' -C ./ clean"
AUTOINSTALL="yes"
REMAKE_INITRD="yes"
BUILD_EXCLUSIVE_KERNEL="^4.15.*"
BUILT_MODULE_NAME[0]="r8169"
BUILT_MODULE_LOCATION[0]="./"
DEST_MODULE_LOCATION[0]="/updates"