我正在使用EP- am 1661 WiFi和蓝牙适配器。根据他们的网站,驱动程序只支持内核版本2.6 .I,并试图在ubuntu18.04上安装驱动程序,内核版本为5.0.0.29-泛型
当我运行命令时
sudo make install -s
我犯了个错误
rtk_coex.c:2532:2 :error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
init_timer(&btrtl_coex.polling_timer)
关于如何解决这个问题,有什么建议吗?
Edit1: lsusb的结果
:~$ lsusb
Bus 002 Device 007: ID 0bda:c820 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04f3:0b23 Elan Microelectronics Corp.
Bus 001 Device 003: ID 0424:2137 Standard Microsystems Corp.
Bus 001 Device 002: ID 1307:0330 Transcend Information, Inc. 63-in-1 Multi-Card Reader/Writer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 002: ID 0424:5537 Standard Microsystems Corp.
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
尾-f /var/log/syslog的结果
tail -f /var/log/syslog
Sep 23 16:17:42 blue kernel: [ 5578.720943] usb 2-6: new high-speed USB device number 8 using ehci-pci
Sep 23 16:17:43 blue kernel: [ 5578.877878] usb 2-6: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00
Sep 23 16:17:43 blue kernel: [ 5578.877881] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 23 16:17:43 blue kernel: [ 5578.877883] usb 2-6: Product: 802.11ac NIC
Sep 23 16:17:43 blue kernel: [ 5578.877885] usb 2-6: Manufacturer: Realtek
Sep 23 16:17:43 blue kernel: [ 5578.877887] usb 2-6: SerialNumber: FF
Sep 23 16:17:43 blue mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6"
Sep 23 16:17:43 blue mtp-probe: bus: 2, device: 8 was not an MTP device
Sep 23 16:17:43 blue upowerd[1164]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6
Sep 23 16:17:43 blue kernel: [ 5578.981975] [UFW BLOCK] IN=enp5s0 OUT= MAC=bc:ae:c5:1a:0e:f1:00:bb:c1:75:7a:46:08:00 SRC=10.1.10.68 DST=10.1.10.121 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=49755 PROTO=UDP SPT=8610 DPT=8612 LEN=40
Sep 23 16:17:43 blue kernel: [ 5578.992093] [UFW BLOCK] IN=enp5s0 OUT= MAC=bc:ae:c5:1a:0e:f1:00:bb:c1:75:7a:46:08:00 SRC=10.1.10.68 DST=10.1.10.121 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=56262 PROTO=UDP SPT=8610 DPT=8612 LEN=40
编辑2:usb设备的结果
usb-devices
T: Bus=02 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=c820 Rev=02.00
S: Manufacturer=Realtek
S: Product=802.11ac NIC
S: SerialNumber=FF
C: #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
I: If#= 2 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8821cu
发布于 2019-09-24 15:35:36
正如您在drivers/bluetooth/btusb.c
中看到的那样,Linux内核支持这个蓝牙设备。
/* Realtek Bluetooth devices */
{ USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01),
.driver_info = BTUSB_REALTEK },
(0x0bda, 0xe0, 0x01, 0x01)
的含义正是你所拥有的
Vendor=0bda Cls=e0(wlcon) Sub=01 Prot=01
您有一个组合式Wi+ BT设备,这两个部分都可以在usb-devices
中看到。
I: If#= 2 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8821cu
是Wi设备。成功加载了rtl8821cu
驱动程序。
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
是BT设备。由于某些原因,它不会加载btusb
驱动程序。
理由可能是:
rtl8821cu
进行测试。它应该加载btusb
。如果是这样的话,那么应该报告一个内核错误。btusb
的驱动程序,但是无法工作。如果您获得btusb
加载,您需要确保在lib/firmware/rtl_bt
中有固件。该文件名为rtl8821a_config.bin
。
这个文件还没有添加到linux-firmware
中,但是您可以在以前下载的没有安装的旧驱动程序中找到它。
我在linux/2017.../BT/2017...BT_ANDROID/rtkbt/system/etc/firmware/rtl8821a_config
里看到一个文件
尝试将其重命名为rtl8821a_config.bin
并复制到/lib/firmware/rtl_bt
。
如果这个文件有效的话,我会把它发送到上游。
https://askubuntu.com/questions/1176131
复制相似问题