华硕fx80没有无线网卡选项,网卡是rtl8821ce
Tofloor
poster avatar
woshadoubh
deepin
2019-04-12 04:05
Author
去github上下载了rtl8821ce的驱动,make编译总是错误,linux内核为5.1
Reply Favorite View the author
All Replies
avatar
woshadoubh
deepin
2019-04-12 04:07
#1
Reply View the author
avatar
woshadoubh
deepin
2019-04-12 04:07
#2
00:00.0 Host bridge: Intel Corporation Device 3ec4 (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Device a379 (rev 10)
00:14.0 USB controller: Intel Corporation Device a36d (rev 10)
00:14.2 RAM memory: Intel Corporation Device a36f (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)
00:16.0 Communication controller: Intel Corporation Device a360 (rev 10)
00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)
00:1d.0 PCI bridge: Intel Corporation Device a330 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Device a335 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Device a336 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Device a348 (rev 10)
00:1f.4 SMBus: Intel Corporation Device a323 (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a324 (rev 10)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
02:00.0 Non-Volatile memory controller: SK hynix Device 1327
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Reply View the author
avatar
woshadoubh
deepin
2019-04-12 04:09
#3
网上大多方法都已经试过了...有没有大神救救我
Reply View the author
avatar
woshadoubh
deepin
2019-04-12 04:21
#4
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.1.0-050100rc4-generic/build M=/home/ygl/Desktop/rtl8821ce-master  modules
make[1]: 进入目录“/usr/src/linux-headers-5.1.0-050100rc4-generic”
  CC [M]  /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.o
In file included from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:35:0,
                 from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
/home/ygl/Desktop/rtl8821ce-master/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:86:0,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
                 from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
                 from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF  0x100

/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2088:10: error: implicit declaration of function ‘get_ds’; did you mean ‘get_da’? [-Werror=implicit-function-declaration]
   set_fs(get_ds());
          ^~~~~~
          get_da
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2088:10: error: incompatible type for argument 1 of ‘set_fs’
In file included from ./include/linux/uaccess.h:11:0,
                 from ./include/linux/crypto.h:26,
                 from ./include/crypto/hash.h:16,
                 from ./include/linux/uio.h:14,
                 from ./include/linux/socket.h:8,
                 from ./include/linux/compat.h:15,
                 from ./include/linux/ethtool.h:17,
                 from ./include/linux/netdevice.h:41,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
                 from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
                 from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
                    ^~~~~~
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2126:11: error: incompatible type for argument 1 of ‘set_fs’
    set_fs(get_ds());
           ^~~~~~
In file included from ./include/linux/uaccess.h:11:0,
                 from ./include/linux/crypto.h:26,
                 from ./include/crypto/hash.h:16,
                 from ./include/linux/uio.h:14,
                 from ./include/linux/socket.h:8,
                 from ./include/linux/compat.h:15,
                 from ./include/linux/ethtool.h:17,
                 from ./include/linux/netdevice.h:41,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
                 from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
                 from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
                    ^~~~~~
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:2161:11: error: incompatible type for argument 1 of ‘set_fs’
    set_fs(get_ds());
           ^~~~~~
In file included from ./include/linux/uaccess.h:11:0,
                 from ./include/linux/crypto.h:26,
                 from ./include/crypto/hash.h:16,
                 from ./include/linux/uio.h:14,
                 from ./include/linux/socket.h:8,
                 from ./include/linux/compat.h:15,
                 from ./include/linux/ethtool.h:17,
                 from ./include/linux/netdevice.h:41,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service_linux.h:35,
                 from /home/ygl/Desktop/rtl8821ce-master/include/osdep_service.h:48,
                 from /home/ygl/Desktop/rtl8821ce-master/include/drv_types.h:32,
                 from /home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.c:24:
./arch/x86/include/asm/uaccess.h:29:20: note: expected ‘mm_segment_t {aka struct }’ but argument is of type ‘int’
static inline void set_fs(mm_segment_t fs)
                    ^~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:276:/home/ygl/Desktop/rtl8821ce-master/os_dep/osdep_service.o] 错误 1
make[1]: *** [Makefile:1571:_module_/home/ygl/Desktop/rtl8821ce-master] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.1.0-050100rc4-generic”
make: *** [Makefile:1902:modules] 错误 2


Reply View the author
avatar
woshadoubh
deepin
2019-04-12 04:22
#5
我已经搞了三天了...有没有大神啊啊啊啊,难受
Reply View the author
avatar
decennium-bye
deepin
2019-11-09 04:58
#6
sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
(卸载用这个而命令:sudo chmod +x dkms-remove.sh && ./dkms-remove.sh)
sudo./dkms-install.sh
Reply View the author