Wifi driver installation

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ffoody
Level 1
Level 1
Posts: 6
Joined: Wed May 23, 2018 4:52 am

Wifi driver installation

Post by ffoody »

Hello, I'm new to this forum but have used Linux for quite a few years and usually manage to sort out problems by searching here or elsewhere. However, I'm trying to install a Realtek USB wireless adaptor as I'm switching broadband providers and will connect to the new hub wirelessly. I've been able to run the install.sh file ok in Terminal but get error messages so the installation is incomplete. The software is on a CD and so I copied the Linux folder to my Desktop to run it using sh ./install.sh The tar ball is unpacked OK but then there's a sequence of errors. My system is Linux Mint 18.1 Serena. I can't make it run from the disk. Many thanks for any help and apologies if it's just me being thick! This is the section from Terminal that shows the errors:

Code: Select all

/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/hal_com.h:412:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
In file included from include/linux/seq_file.h:10:0,
                 from include/linux/pinctrl/consumer.h:17,
                 from include/linux/pinctrl/devinfo.h:21,
                 from include/linux/device.h:24,
                 from include/linux/dmaengine.h:20,
                 from include/linux/netdevice.h:38,
                 from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service_linux.h:35,
                 from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service.h:41,
                 from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:32,
                 from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
include/linux/fs.h:2611:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
In file included from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:65:0,
                 from /home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
  DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
  ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
   ^
scripts/Makefile.build:277: recipe for target '/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o' failed
make[2]: *** [/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o] Error 1
Makefile:1437: recipe for target '_module_/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51' failed
make[1]: *** [_module_/home/richard/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-127-generic'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi driver installation

Post by JeremyB »

Please post results for

Code: Select all

lsusb
I think source code can be found at github that will compile, just want to make sure your device is covered
ffoody
Level 1
Level 1
Posts: 6
Joined: Wed May 23, 2018 4:52 am

Re: Wifi driver installation

Post by ffoody »

Here's the result of running lsusb

Bus 003 Device 004: ID 056a:033b Wacom Co., Ltd
Bus 003 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 04a9:2206 Canon, Inc. CanoScan N650U/N656U
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 046d:c52e Logitech, Inc. MK260 Wireless Combo Receiver
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi driver installation

Post by JeremyB »

Was the USB wifi plugged in when you ran the command?
ffoody
Level 1
Level 1
Posts: 6
Joined: Wed May 23, 2018 4:52 am

Re: Wifi driver installation

Post by ffoody »

Hi Jeremy. Thanks for this help. No I'd not plugged in the adaptor as all the instructions I've seen say that the driver should be loaded first then plug in the adaptor.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi driver installation

Post by JeremyB »

Plug it in and run the lsusb[/] command and post results
ffoody
Level 1
Level 1
Posts: 6
Joined: Wed May 23, 2018 4:52 am

Re: Wifi driver installation

Post by ffoody »

Hi Jeremy

Plugged it in and ran lsusb again - results:

Bus 003 Device 004: ID 056a:033b Wacom Co., Ltd
Bus 003 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0bda:0811 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 04a9:2206 Canon, Inc. CanoScan N650U/N656U
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 046d:c52e Logitech, Inc. MK260 Wireless Combo Receiver
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ffoody
Level 1
Level 1
Posts: 6
Joined: Wed May 23, 2018 4:52 am

Re: Wifi driver installation

Post by ffoody »

Going to be away for a few days and no access to this pc. Look forward to seeing your comments next Monday or Tuesday. Thanks for what you've done so far.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi driver installation

Post by JeremyB »

I would do

Code: Select all

sudo apt-get install rtl8812au-dkms
Reboot
Locked

Return to “Software & Applications”