ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
star1986xk
帖子: 4
注册时间: 2019-03-17 23:28
系统: ubuntu18.04.1
送出感谢: 2 次
接收感谢: 0

ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#1

帖子 star1986xk » 2019-03-17 23:35

按照网上的教程下了一个RTL8821CE驱动,没弄明白,请教一下大侠帮忙

lee@lee-ThinkPad-E480:~/rtl8821ce$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-16-generic/build M=/home/lee/rtl8821ce modules
make[1]: 进入目录“/usr/src/linux-headers-4.18.0-16-generic”
Makefile:970: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/lee/rtl8821ce/os_dep/linux/os_intfs.o
/home/lee/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/lee/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:325: recipe for target '/home/lee/rtl8821ce/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/lee/rtl8821ce/os_dep/linux/os_intfs.o] Error 1
Makefile:1534: recipe for target '_module_/home/lee/rtl8821ce' failed
make[1]: *** [_module_/home/lee/rtl8821ce] Error 2
make[1]: 离开目录“/usr/src/linux-headers-4.18.0-16-generic”
Makefile:1902: recipe for target 'modules' failed
make: *** [modules] Error 2


lee@lee-ThinkPad-E480:~/rtl8821ce$ sudo make install
[sudo] lee 的密码:
install -p -m 644 8821ce.ko /lib/modules/4.18.0-16-generic/kernel/drivers/net/wireless/
install: 无法获取'8821ce.ko' 的文件状态(stat): 没有那个文件或目录
Makefile:1908: recipe for target 'install' failed
make: *** [install] Error 1

怎么办阿 请教大神帮忙
onlylove
论坛版主
帖子: 4528
注册时间: 2007-01-14 16:23
送出感谢: 0
接收感谢: 110 次

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#2

帖子 onlylove » 2019-03-18 2:20

我是说,你执行命令都不看返回结果的,不管上一步成不成接着往下搞?
Makefile:970: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
Makefile:1902: recipe for target 'modules' failed
make: *** [modules] Error 2
这些用户感谢了作者 onlylove 于这个帖子:
star1986xk (2019-03-18 11:34)
评价: 3.7%
star1986xk
帖子: 4
注册时间: 2019-03-17 23:28
系统: ubuntu18.04.1
送出感谢: 2 次
接收感谢: 0

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#3

帖子 star1986xk » 2019-03-18 10:05

我看到有错误提示了 但是不会改 :Adore
怎么改阿
头像
astolia
论坛版主
帖子: 3640
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 609 次

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#4

帖子 astolia » 2019-03-18 10:49

star1986xk 写了:
2019-03-18 10:05
我看到有错误提示了 但是不会改 :Adore
怎么改阿
二楼给你列出来的那几句初中水准的英语读不懂?sudo apt install libelf-dev
这些用户感谢了作者 astolia 于这个帖子:
star1986xk (2019-03-18 11:33)
评价: 3.7%
star1986xk
帖子: 4
注册时间: 2019-03-17 23:28
系统: ubuntu18.04.1
送出感谢: 2 次
接收感谢: 0

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#5

帖子 star1986xk » 2019-03-18 11:35

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-16-generic/build M=/home/lee/rtl8821ce modules
make[1]: 进入目录“/usr/src/linux-headers-4.18.0-16-generic”
CC [M] /home/lee/rtl8821ce/os_dep/linux/os_intfs.o
/home/lee/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/lee/rtl8821ce/os_dep/linux/os_intfs.c:1325:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:325: recipe for target '/home/lee/rtl8821ce/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/lee/rtl8821ce/os_dep/linux/os_intfs.o] Error 1
Makefile:1534: recipe for target '_module_/home/lee/rtl8821ce' failed
make[1]: *** [_module_/home/lee/rtl8821ce] Error 2
make[1]: 离开目录“/usr/src/linux-headers-4.18.0-16-generic”
Makefile:1902: recipe for target 'modules' failed
make: *** [modules] Error 2

还是有错误,意思是驱动文件太老了 和内核不匹配吗?
头像
astolia
论坛版主
帖子: 3640
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 609 次

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#6

帖子 astolia » 2019-03-18 15:26

有可能。你是从哪里下载的?https://github.com/tomaspinho/rtl8821ce 这里?
star1986xk
帖子: 4
注册时间: 2019-03-17 23:28
系统: ubuntu18.04.1
送出感谢: 2 次
接收感谢: 0

Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题

#7

帖子 star1986xk » 2019-03-18 15:31

可算是搞定了 ,谢谢。
把内核降到了4.14,然后我又在git上重下了一个驱动,终于无线好使了,linux好难阿
回复

回到 “网卡问题以及网络和拨号”