This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

Installing Drivers

NewLinuxUser

Fri Mar 24, 2017 5:46:27 pm

I'm new to Linux as my username suggests but am eager to become familiar with it. My first hurdle is getting my external wifi antenna working with Zorin.

I have downloaded the linux drivers but when I try to run 'makedrv' in terminal I get the following errors:
~/Downloads/Driver/linux$ ./makedrv

ieee80211/
ieee80211/license
ieee80211/ieee80211_crypt.c
ieee80211/ieee80211_tx.c
ieee80211/ieee80211_softmac.c
ieee80211/ieee80211_softmac_wx.c
ieee80211/ieee80211_module.c
ieee80211/ieee80211_crypt_ccmp.c
ieee80211/ieee80211_rx.c
ieee80211/tags
ieee80211/ieee80211_crypt_tkip.c
ieee80211/Makefile
ieee80211/readme
ieee80211/.tmp_versions/
ieee80211/.tmp_versions/ieee80211-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_wep-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_tkip-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_ccmp-rtl.mod
ieee80211/ieee80211_crypt_wep.c
ieee80211/ieee80211.h
ieee80211/ieee80211_wx.c
ieee80211/ieee80211_crypt.h
rtl8187/
rtl8187/license
rtl8187/r8180_rtl8225z2.c
rtl8187/r8180_rtl8225.h
rtl8187/r8187_led.c
rtl8187/r8180_93cx6.h
rtl8187/r8180_wx.h
rtl8187/r8180_hw.h
rtl8187/copying
rtl8187/r8187_led.h
rtl8187/r8180_pm.h
rtl8187/tags
rtl8187/r8187.h
rtl8187/Makefile
rtl8187/r8180_rtl8225.c
rtl8187/readme
rtl8187/install
rtl8187/.tmp_versions/
rtl8187/.tmp_versions/r8187.mod
rtl8187/changes
rtl8187/r8180_wx.c
rtl8187/r8180_pm.c
rtl8187/r8187_core.c
rtl8187/r8180_93cx6.c
rtl8187/authors
rtl8187/ieee80211.h
rtl8187/ieee80211_crypt.h
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /home/s8lv/Downloads/Driver/linux/ieee80211/tmp
make -C /lib/modules/4.8.0-41-generic/build M=/home/s8lv/Downloads/Driver/linux/ieee80211 modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-41-generic'
CC [M] /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.o
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘softmac_mgmt_xmit’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:168:13: error: ‘struct net_device’ has no member named ‘trans_start’
ieee->dev->trans_start = jiffies;
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘softmac_ps_mgmt_xmit’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:211:12: error: ‘struct net_device’ has no member named ‘trans_start’
ieee->dev->trans_start = jiffies;
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_scan_wq’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:421:31: error: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type [-Werror=incompatible-pointer-types]
queue_delayed_work(ieee->wq, &ieee->softmac_scan_wq, IEEE80211_SOFTMAC_SCAN_TI
^
In file included from ./include/linux/srcu.h:34:0,
from ./include/linux/notifier.h:15,
from ./arch/x86/include/asm/uprobes.h:26,
from ./include/linux/uprobes.h:61,
from ./include/linux/mm_types.h:13,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
./include/linux/workqueue.h:484:20: note: expected ‘struct delayed_work *’ but argument is of type ‘struct work_struct *’
static inline bool queue_delayed_work(struct workqueue_struct *wq,
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_stop_scan’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:495:23: error: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type [-Werror=incompatible-pointer-types]
cancel_delayed_work(&ieee->softmac_scan_wq);
^
In file included from ./include/linux/srcu.h:34:0,
from ./include/linux/notifier.h:15,
from ./arch/x86/include/asm/uprobes.h:26,
from ./include/linux/uprobes.h:61,
from ./include/linux/mm_types.h:13,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
./include/linux/workqueue.h:448:13: note: expected ‘struct delayed_work *’ but argument is of type ‘struct work_struct *’
extern bool cancel_delayed_work(struct delayed_work *dwork);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_abort’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:915:31: error: passing argument 2 of ‘queue_delayed_work’ from incompatible pointer type [-Werror=incompatible-pointer-types]
queue_delayed_work(ieee->wq, &ieee->associate_retry_wq, IEEE80211_SOFTMAC_ASSO
^
In file included from ./include/linux/srcu.h:34:0,
from ./include/linux/notifier.h:15,
from ./arch/x86/include/asm/uprobes.h:26,
from ./include/linux/uprobes.h:61,
from ./include/linux/mm_types.h:13,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
./include/linux/workqueue.h:484:20: note: expected ‘struct delayed_work *’ but argument is of type ‘struct work_struct *’
static inline bool queue_delayed_work(struct workqueue_struct *wq,
^
In file included from ./include/linux/kernel.h:12:0,
from ./include/linux/skbuff.h:17,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_sta_ps_sleep’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1350:35: error: ‘struct net_device’ has no member named ‘trans_start’
if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
^
./include/linux/typecheck.h:10:9: note: in definition of macro ‘typecheck’
typeof(x) __dummy2; \
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1350:6: note: in expansion of macro ‘time_after’
if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
^
./include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
(void)(&__dummy == &__dummy2); \
^
./include/linux/jiffies.h:104:3: note: in expansion of macro ‘typecheck’
typecheck(unsigned long, b) && \
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1350:6: note: in expansion of macro ‘time_after’
if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
^
In file included from ./include/linux/ktime.h:25:0,
from ./include/linux/rcupdate.h:47,
from ./include/linux/rbtree.h:34,
from ./include/linux/mm_types.h:9,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1350:35: error: ‘struct net_device’ has no member named ‘trans_start’
if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
^
./include/linux/jiffies.h:105:12: note: in definition of macro ‘time_after’
((long)((b) - (a)) < 0))
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_xmit’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1712:13: error: ‘struct net_device’ has no member named ‘trans_start’
ieee->dev->trans_start = jiffies;
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_resume_tx’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:1740:13: error: ‘struct net_device’ has no member named ‘trans_start’
ieee->dev->trans_start = jiffies;
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_stop_protocol_rtl’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2120:22: error: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type [-Werror=incompatible-pointer-types]
cancel_delayed_work(&ieee->associate_retry_wq);
^
In file included from ./include/linux/srcu.h:34:0,
from ./include/linux/notifier.h:15,
from ./arch/x86/include/asm/uprobes.h:26,
from ./include/linux/uprobes.h:61,
from ./include/linux/mm_types.h:13,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
./include/linux/workqueue.h:448:13: note: expected ‘struct delayed_work *’ but argument is of type ‘struct work_struct *’
extern bool cancel_delayed_work(struct delayed_work *dwork);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2229:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
INIT_WORK(&ieee->start_ibss_wq,(void(*)(void*)) ieee80211_start_ibss_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2229:2: error: ‘INIT_WORK’ undeclared (first use in this function)
INIT_WORK(&ieee->start_ibss_wq,(void(*)(void*)) ieee80211_start_ibss_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2229:2: note: each undeclared identifier is reported only once for each function it appears in
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2230:88: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
(&ieee->associate_retry_wq,(void(*)(void*)) ieee80211_associate_retry_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2231:94: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
->associate_complete_wq,(void(*)(void*)) ieee80211_associate_complete_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2232:96: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
associate_procedure_wq,(void(*)(void*)) ieee80211_associate_procedure_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2233:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
T_WORK(&ieee->softmac_scan_wq,(void(*)(void*)) ieee80211_softmac_scan_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2234:82: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
T_WORK(&ieee->wx_sync_scan_wq,(void(*)(void*)) ieee80211_wx_sync_scan_wq,ieee);
^
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_free’:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:2255:22: error: passing argument 1 of ‘cancel_delayed_work’ from incompatible pointer type [-Werror=incompatible-pointer-types]
cancel_delayed_work(&ieee->associate_retry_wq);
^
In file included from ./include/linux/srcu.h:34:0,
from ./include/linux/notifier.h:15,
from ./arch/x86/include/asm/uprobes.h:26,
from ./include/linux/uprobes.h:61,
from ./include/linux/mm_types.h:13,
from ./include/linux/kmemcheck.h:4,
from ./include/linux/skbuff.h:18,
from ./include/linux/if_ether.h:23,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:26,
from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:
./include/linux/workqueue.h:448:13: note: expected ‘struct delayed_work *’ but argument is of type ‘struct work_struct *’
extern bool cancel_delayed_work(struct delayed_work *dwork);
^
In file included from /home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c:17:0:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.c: At top level:
/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211.h:1212:37: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
return ((struct ieee80211_device *)netdev_priv(dev))->priv;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.o' failed
make[2]: *** [/home/s8lv/Downloads/Driver/linux/ieee80211/ieee80211_softmac.o] Error 1
Makefile:1491: recipe for target '_module_/home/s8lv/Downloads/Driver/linux/ieee80211' failed
make[1]: *** [_module_/home/s8lv/Downloads/Driver/linux/ieee80211] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-41-generic'
Makefile:36: recipe for target 'modules' failed
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /home/s8lv/Downloads/Driver/linux/rtl8187/tmp
make -C /lib/modules/4.8.0-41-generic/build M=/home/s8lv/Downloads/Driver/linux/rtl8187 modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-41-generic'
CC [M] /home/s8lv/Downloads/Driver/linux/rtl8187/r8187_core.o
In file included from /home/s8lv/Downloads/Driver/linux/rtl8187/r8187_core.c:64:0:
/home/s8lv/Downloads/Driver/linux/rtl8187/r8187.h:29:26: fatal error: linux/config.h: No such file or directory
#include <linux/config.h>
^
compilation terminated.
scripts/Makefile.build:289: recipe for target '/home/s8lv/Downloads/Driver/linux/rtl8187/r8187_core.o' failed
make[2]: *** [/home/s8lv/Downloads/Driver/linux/rtl8187/r8187_core.o] Error 1
Makefile:1491: recipe for target '_module_/home/s8lv/Downloads/Driver/linux/rtl8187' failed
make[1]: *** [_module_/home/s8lv/Downloads/Driver/linux/rtl8187] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-41-generic'
Makefile:34: recipe for target 'modules' failed
make: *** [modules] Error 2


Any help would be appreciated.

Swarfendor437

Sat Mar 25, 2017 5:02:31 pm

Please can you provide us details of your machine please? Thanks:

viewtopic.php?f=5&t=5449

NewLinuxUser

Sun Mar 26, 2017 1:36:57 am

Intel i7-6500U w/ Nvidia 950m (also HD 520 internal)
16Gb RAM
SSD etc

Swarfendor437

Sun Mar 26, 2017 10:18:55 am

OK, is the external wifi antenna a 'dongle'? Can you be more specific as to Brand and Model? Also is your PC Branded or 'grey' machine/home brew?

NewLinuxUser

Sun Mar 26, 2017 4:08:48 pm

It is an ASUS Q534 laptop and the antenna is a Yagi 007GTi connected via USB.

The drivers can be found as part of the 007GTi CDROM.iso download.

Swarfendor437

Sun Mar 26, 2017 10:45:06 pm