Jump to content

Need assitance with CUDY wu650 drivers on Ubuntu 21.04

Go to solution Solved by Nayr438,

It looks like it was made for a older Kernel.

 

Try this driver, https://github.com/brektrou/rtl8821CU

I have an old Dell Optiplex 745 I'm setting up in the kitchen for simple use while cooking, EG looking up recipes and watching cooking guides, and because of it's placement in a cabinet (yes bad thermals I know I know) I need it to connect to the internet wirelessly. I purchased a CUDY wu650 for this as it listed compatibility with Linux and when I went to install it I instantly hit the "crap I have no idea how to do this" wall. I found the guide provided by CUDY on the product page here and followed it to the best of my ability but to no avail, all that happens is I get errors in the screenshot below and the process fails. Either I have missed something important or this adapter is total garbage.

Screenshot from 2021-06-20 22-11-39.png

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, Nayr438 said:

Try installing the build-essential meta-package


sudo apt install build-essential

 

I have done this and now the process will run and do something but it still exits with errors. Terminal output below;

 

herorareheart@Kitchen-PC:~/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141$ sudo make
[sudo] password for herorareheart:  
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.11.0-18-generic/build M=/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141  modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-18-generic'
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_cmd.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_security.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_debug.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_io.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_ioctl_query.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_ioctl_set.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_ieee80211.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_mlme.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_mlme_ext.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_mi.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_wlan_util.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_vht.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_pwrctrl.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_rf.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_chplan.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_recv.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_sta_mgt.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_ap.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/mesh/rtw_mesh.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_xmit.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_p2p.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_rson.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_tdls.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_br_ext.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_iol.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_sreset.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_btcoex_wifionly.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_btcoex.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_beamforming.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_odm.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_rm.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_rm_fsm.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/rtw_rm_util.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/core/efuse/rtw_efuse.o
  CC [M]  /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.o
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2223:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
 2223 |   oldfs = get_fs();
      |           ^~~~~~
      |           get_sa
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2223:11: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2225:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
 2225 |   set_fs(KERNEL_DS);
      |   ^~~~~~
      |   sget_fc
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2225:10: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2225 |   set_fs(KERNEL_DS);
      |          ^~~~~~~~~
      |          KERNFS_NS
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2225:10: note: each undeclared identifier is reported only once for each function it appears in
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2265:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2265 |    oldfs = get_fs();
      |            ^~~~~~
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2267:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2267 |    set_fs(KERNEL_DS);
      |           ^~~~~~~~~
      |           KERNFS_NS
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2304:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2304 |    oldfs = get_fs();
      |            ^~~~~~
/home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.c:2306:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2306 |    set_fs(KERNEL_DS);
      |           ^~~~~~~~~
      |           KERNFS_NS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:287: /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1848: /home/herorareheart/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-18-generic'
herorareheart@Kitchen-PC:~/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141$

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Nayr438 said:

It looks like it was made for a older Kernel.

 

Try this driver, https://github.com/brektrou/rtl8821CU

The instructions do say it's for Ubuntu 18.04 and 20.04 and I am running 21.04 on this system. Can I ask how you knew it was made for an older kernel? Was it just literally reading the online documentation and I was wrong to assume that because it worked on 20.04 work on 21.04 or was it something about the specific error?

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, herorareheart said:

The instructions do say it's for Ubuntu 18.04 and 20.04 and I am running 21.04 on this system. Can I ask how you knew it was made for an older kernel? Was it just literally reading the online documentation and I was wrong to assume that because it worked on 20.04 work on 21.04 or was it something about the specific error?

The Decleration Errors indicate a incompatibility with the linux-headers, probably from the changes around 5.10

 

Also the path indicates it was for Kernel 5.8.1 Sept 2020

herorareheart@Kitchen-PC:~/wifi/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.7_37266.20200929_COEX20200616-4141$

And your current Kernel is

make[1]: Entering directory '/usr/src/linux-headers-5.11.0-18-generic'

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×