按照网上的教程下了一个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
怎么办阿 请教大神帮忙
ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
-
- 帖子: 4
- 注册时间: 2019-03-17 23:28
- 系统: ubuntu18.04.1
-
- 论坛版主
- 帖子: 5371
- 注册时间: 2007-01-14 16:23
Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
我是说,你执行命令都不看返回结果的,不管上一步成不成接着往下搞?
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
-
- 帖子: 4
- 注册时间: 2019-03-17 23:28
- 系统: ubuntu18.04.1
Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
我看到有错误提示了 但是不会改
怎么改阿

怎么改阿
- astolia
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
二楼给你列出来的那几句初中水准的英语读不懂?sudo apt install libelf-dev
-
- 帖子: 4
- 注册时间: 2019-03-17 23:28
- 系统: ubuntu18.04.1
Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
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
还是有错误,意思是驱动文件太老了 和内核不匹配吗?
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
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
-
- 帖子: 4
- 注册时间: 2019-03-17 23:28
- 系统: ubuntu18.04.1
Re: ubuntu 18.04.1 ThinkPadE480(RTL8821CE)无线网卡驱动问题
可算是搞定了 ,谢谢。
把内核降到了4.14,然后我又在git上重下了一个驱动,终于无线好使了,linux好难阿
把内核降到了4.14,然后我又在git上重下了一个驱动,终于无线好使了,linux好难阿