在 ubuntu 18.04 上安装 tp link tl-wn822n

在 ubuntu 18.04 上安装 tp link tl-wn822n

好吧,我遇到了一些问题。我现在对 Linux 还很陌生,只使用了大约一天。我买了一个 tp link wifi 适配器以获得更好的互联网。虽然 ubuntu 似乎注意到了它并通过它连接,但我在下载和安装驱动程序时遇到了很多麻烦。他们提供的指南似乎有不完整的命令供我在终端中遵循,而我得到的唯一驱动程序是一个包含一些文本文件和代码的文件夹。我一直在关注它,直到它告诉我通过进入驱动程序目录来编译驱动程序。我不知道要安装到哪里。请不要打扰别人,但我完全迷路了,我不想觉得我刚刚在一块破损的塑料上浪费了 30 美元。到目前为止,我只在 ubuntu 14 和 16 上看到有关它的帖子。

另外,我很抱歉没有给你无线信息脚本。终端一直告诉我无法解析主机地址,这也不是连接问题,而是速度问题。安装驱动程序时,我被告知不起作用。我收到一堆错误消息。当安装诸如 sudo apt-get install rtl8192cu-dkms 之类的东西时,终端告诉我无法找到该软件包。目录中应该有一个 chip.ko 文件,但我没有看到任何 chip.ko 文件或基础下载中的任何新文件名。 编辑:ubuntu 18 的内核版本太新,无法与该设备一起使用。当讨论该设备的线程未解决任何这些问题时,请不要将其标记为重复。

答案1

我还有另一个答案,我刚刚测试过,它似乎在我的真实系统上运行良好。我只是没有 USB 设备来测试它。

按着这些次序:

git clone https://github.com/Mange/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
make

我的编译过程很顺利,没有任何错误,最后我得到了8192eu.ko

如果编译过程没有任何错误,则应该有该文件。接下来,要(暂时)测试它,只需执行此操作(在此步骤之前保存您的工作)。

sudo insmod 8192eu.ko
lsmod | grep 8192eu

您应该看到:

8192eu               1110016  0
cfg80211              622592  4 8192eu,iwlmvm,iwlwifi,mac80211

测试您的设备,如果可以运行,我们会在启动时添加它。事实上,它只能按需运行。如果您遇到错误,请在此处发布,我们会尝试解决。

答案2

好的,这是一个答案,但你不会喜欢它。

第一的,此链接说:Operating System: Linux (kernel 2.6.24 ~ <4.9.60)Ubuntu 18.04 有一个高于该版本的内核。

在此处输入图片描述

其次,缺少的依赖项libelf-dev与上述部分无关。这与您的系统配置密切相关。

第三,我自己下载了驱动程序,因为我的系统满足所有依赖项,所以我尝试编译它,尽管我的系统也使用高于建议的“兼容”的内核修订版。我收到的第一个错误是(没有缺少依赖项):

osdep_service_linux.h:299:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;

仅凭这一点就足以表明新内核已经删除了这个成员。尽管如此,我还是继续,并注释掉了那一行(真是个坏主意,永远不要这样做,但我在虚拟机中,所以我不在乎是否丢失其中的任何数据,但无论如何,我只是想看看我能走多远...)。我真的很想编译那个东西,看看会发生什么,所以这是我的模式:

在此处输入图片描述

我遇到的第二个错误是:

osdep_service_linux.h:300:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);

我通过EXTRA_CFLAGS += -Wno-implicit-function-declaration在 Makefile 的第 17 行添加内容来修复这个问题。是时候再运行一次了:make你知道吗,它实际上编译了,在此输出之后更多:

marko @ marko-P7xxDM2-G  ~/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047
└─ $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-43-generic/build M=/home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-43-generic'
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_security.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_debug.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_io.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_ioctl_query.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_ioctl_set.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_ieee80211.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_mlme.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_mlme_ext.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_mi.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_wlan_util.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_vht.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_pwrctrl.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_rf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_recv.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_sta_mgt.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_ap.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_xmit.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_p2p.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_rson.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_tdls.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_br_ext.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_iol.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_sreset.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_btcoex_wifionly.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_btcoex.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_beamforming.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_odm.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/efuse/rtw_efuse.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/osdep_service.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/os_intfs.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/usb_intf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/ioctl_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/xmit_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/mlme_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/recv_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/wifi_regd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/rtw_android.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/rtw_proc.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/os_dep/linux/ioctl_mp.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_intf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_com.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_com_phycfg.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_phy.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_dm.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_dm_acs.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_btcoex_wifionly.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_btcoex.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_mp.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_mcc.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/hal_hci/hal_usb.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/led/hal_usb_led.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/HalPwrSeqCmd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/Hal8192EPwrSeq.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_xmit.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_sreset.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_hal_init.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_phycfg.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_rf6052.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_dm.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_rxdesc.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/rtl8192e_cmd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/hal8192e_fw.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/usb/usb_halinit.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/usb/rtl8192eu_led.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/usb/rtl8192eu_xmit.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/usb/rtl8192eu_recv.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/rtl8192e/usb/usb_ops_linux.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/efuse/rtl8192e/HalEfuseMask8192E_USB.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_debug.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_antdiv.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_soml.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_smt_ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_antdect.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_interface.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_phystatus.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_hwconfig.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_dig.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_pathdiv.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_rainfo.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_adaptivity.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_cfotracking.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_noisemonitor.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_acs.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_beamforming.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_dfs.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_adc_sampling.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_ccx.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_psd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_primary_cca.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_cck_pd.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_rssi_monitor.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_auto_dbg.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_math_lib.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_api.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/phydm_pow_train.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/halrf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/halphyrf_ce.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/halrf_powertracking_ce.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/halrf_powertracking.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/halrf_kfree.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/rtl8192e/halhwimg8192e_mac.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/rtl8192e/halhwimg8192e_bb.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/rtl8192e/halhwimg8192e_rf.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/halrf/rtl8192e/halrf_8192e_ce.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/rtl8192e/phydm_regconfig8192e.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/phydm/rtl8192e/phydm_rtl8192e.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8723bwifionly.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8822bwifionly.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8821cwifionly.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8192e1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8192e2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8723b1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8723b2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8812a1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8812a2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8821a1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8821a2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8703b1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8723d1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8723d2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8822b1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8822b2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8821c1ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/hal/btc/halbtc8821c2ant.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/platform/platform_ops.o
  CC [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_mp.o
  LD [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/8192eu.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "init_timer" [/home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/8192eu.ko] undefined!
WARNING: "__vfs_read" [/home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/8192eu.ko] undefined!
  CC      /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/8192eu.mod.o
  LD [M]  /home/marko/Desktop/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/8192eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic'

让我们做一个ls *.ko,我们有一个新编译的8192eu.ko

让我们看看它是什么:

8192eu.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=a4eae30125a8c332ccb8da9a86eebbe42be8ef57, not stripped

是的,手册上说:

在此处输入图片描述 好的 :) 祝你好运:

insmod: ERROR: could not insert module 8192eu.ko: Unknown symbol in module

那么,我们在这里学到了什么?它不会加载,因此无法兼容 Linux 内核版本。较新的内核修订版中删除了一些内容,导致当前代码库不兼容。

我真的希望你能让它运行起来。以上是我目前能做的最多的事情了。

相关内容