MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sat Apr 15, 2017 12:00 pm

wind93 wrote:Hi everybody,

I have read a lot and done a lot, but still cannot compile through the Driver. At least I have done the apt-get update && apt-get upgrade, also, apt-get dist-upgrade, and installed the kernel headers as well.

But I got some errors seems like from the 'Makefile' itself, like below:
Image

It's interesting :D
You need to update/patch the driver source code to compile for the kernel version you are using on the Pi.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sat Apr 15, 2017 12:09 pm

Here is the complete output:

Code: Select all

[email protected]:~/TL-WN823N/Driver# make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.50+/build M=/root/TL-WN823N/Driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.50+'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/TL-WN823N/Driver/core/rtw_cmd.o
In file included from /root/TL-WN823N/Driver/include/drv_types.h:95:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
In file included from include/linux/cgroup.h:16:0,
                 from include/net/netprio_cgroup.h:17,
                 from include/linux/netdevice.h:48,
                 from /root/TL-WN823N/Driver/include/osdep_service_linux.h:35,
                 from /root/TL-WN823N/Driver/include/osdep_service.h:41,
                 from /root/TL-WN823N/Driver/include/drv_types.h:32,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
include/linux/fs.h:2574:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
In file included from /root/TL-WN823N/Driver/include/drv_types.h:65:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
  ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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"
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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:258: recipe for target '/root/TL-WN823N/Driver/core/rtw_cmd.o' failed
make[2]: *** [/root/TL-WN823N/Driver/core/rtw_cmd.o] Error 1
Makefile:1402: recipe for target '_module_/root/TL-WN823N/Driver' failed
make[1]: *** [_module_/root/TL-WN823N/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.50+'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
Life goes on, people pass by~

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 4:14 pm

MrEngman wrote:
wind93 wrote:Hi everybody,

I have read a lot and done a lot, but still cannot compile through the Driver. At least I have done the apt-get update && apt-get upgrade, also, apt-get dist-upgrade, and installed the kernel headers as well.

But I got some errors seems like from the 'Makefile' itself, like below:
Image

It's interesting :D
You need to update/patch the driver source code to compile for the kernel version you are using on the Pi.



MrEngman
Hi MrEngman,

I think this is the lastest version from TP-LINK's official site...... Any suggestion?
Life goes on, people pass by~

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 5:19 pm

wind93 wrote:Hi MrEngman,

I think this is the lastest version from TP-LINK's official site...... Any suggestion?
Looking at TP-Links UK web site it says the driver supports linux(kernel 2.6.18 ~ 3.10.10) so as I said in my previous post the driver needs updating to support newer kernels.

I compile the 8192eu driver and use it. I have a script that will determine the which driver version you need and automatically download and install it. You can download and install the script using commands

Code: Select all

sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
Command

Code: Select all

sudo install-wifi -h
will show details on how to use it. To install the driver for the current kernel version you are using use command

Code: Select all

sudo install-wifi
If you still want to compile your own version I have a patch which will update the driver and will allow it to be compiled for kernels 4.0.xx - 4.9.xx.
You can download the patch using command

Code: Select all

wget http://fars-robotics.net/Driver.patch
To download and install the patch use commands

Code: Select all

cd /root/TL-WN823N
wget http://fars-robotics.net/Driver.patch
patch -p0 < Driver.patch
Then you should be able to compile the driver. These commands assume you driver is installed in the directory you show in the picture you posted.

NOTE before applying the patch backup you current driver just in case there is a problem.

One final point. Why is the driver installed in the /root directory. I presume this is because you are logged on to you Pi as root user. Not a good idea. You do not need to be root to compile the driver.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 6:10 pm

Thanks a lot MrEngman,

First, the least important, I am a former RHCE student, so, the "root" account....... :D

Just minutes ago, I found https://github.com/Mange/rtl8192eu-linux-driver , this just makes it work on my pi zero.

And I'd like to thank you for pointing out the kernel version is not supported by TP-LINK driver.

I tried your script, now it's compiling. I will let you know, if I need more help.

Thanks again~
Life goes on, people pass by~

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 6:23 pm

OK, here's something after patching the driver, and I execute

Code: Select all

make

Code: Select all

[email protected]:~/TL-WN823N/Driver# make 
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.50+/build M=/root/TL-WN823N/Driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.50+'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/TL-WN823N/Driver/core/rtw_cmd.o
In file included from /root/TL-WN823N/Driver/include/drv_types.h:95:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
In file included from include/linux/cgroup.h:16:0,
                 from include/net/netprio_cgroup.h:17,
                 from include/linux/netdevice.h:48,
                 from /root/TL-WN823N/Driver/include/osdep_service_linux.h:35,
                 from /root/TL-WN823N/Driver/include/osdep_service.h:41,
                 from /root/TL-WN823N/Driver/include/drv_types.h:32,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
include/linux/fs.h:2574:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
In file included from /root/TL-WN823N/Driver/include/drv_types.h:65:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
  ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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"
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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:258: recipe for target '/root/TL-WN823N/Driver/core/rtw_cmd.o' failed
make[2]: *** [/root/TL-WN823N/Driver/core/rtw_cmd.o] Error 1
Makefile:1402: recipe for target '_module_/root/TL-WN823N/Driver' failed
make[1]: *** [_module_/root/TL-WN823N/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.50+'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
Life goes on, people pass by~

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 6:51 pm

Strange, the file_path errors are one of the issues the patch is supposed to fix. I have tried the TP-Link driver with the patch and have no problems compiling it. Did the patch apply OK without any errors?

You can try the driver source I have if you want, you can download using

Code: Select all

wget http://fars-robotics.net/rtl8192eu.tar.gz

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 6:55 pm

ERROR: 404 :lol:
Life goes on, people pass by~

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 7:11 pm

wind93 wrote:ERROR: 404 :lol:
Sorry, should be OK now.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 7:28 pm

wind93 wrote:OK, here's something after patching the driver, and I execute

Code: Select all

make

Code: Select all

[email protected]:~/TL-WN823N/Driver# make 
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.50+/build M=/root/TL-WN823N/Driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.50+'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/TL-WN823N/Driver/core/rtw_cmd.o
In file included from /root/TL-WN823N/Driver/include/drv_types.h:95:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
In file included from include/linux/cgroup.h:16:0,
                 from include/net/netprio_cgroup.h:17,
                 from include/linux/netdevice.h:48,
                 from /root/TL-WN823N/Driver/include/osdep_service_linux.h:35,
                 from /root/TL-WN823N/Driver/include/osdep_service.h:41,
                 from /root/TL-WN823N/Driver/include/drv_types.h:32,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
include/linux/fs.h:2574:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
In file included from /root/TL-WN823N/Driver/include/drv_types.h:65:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
  ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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"
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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);
   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/root/TL-WN823N/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/root/TL-WN823N/Driver/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:258: recipe for target '/root/TL-WN823N/Driver/core/rtw_cmd.o' failed
make[2]: *** [/root/TL-WN823N/Driver/core/rtw_cmd.o] Error 1
Makefile:1402: recipe for target '_module_/root/TL-WN823N/Driver' failed
make[1]: *** [_module_/root/TL-WN823N/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.50+'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
Checked the patch and the first error and other references to "file_path"

Code: Select all

  CC [M]  /root/TL-WN823N/Driver/core/rtw_cmd.o
In file included from /root/TL-WN823N/Driver/include/drv_types.h:95:0,
                 from /root/TL-WN823N/Driver/core/rtw_cmd.c:22:
/root/TL-WN823N/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
should have been fixed by the patch. The file include/hal_com.h should have been patched with the following

Code: Select all

diff -aurwb '--exclude=bin' Driver-old/include/hal_com.h Driver/include/hal_com.h
--- Driver-old/include/hal_com.h        2017-01-08 13:00:37.090749575 +0000
+++ Driver/include/hal_com.h    2017-04-15 23:35:52.639645008 +0100
@@ -410,7 +410,7 @@

 #ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
 extern char *rtw_phy_file_path;
-extern char file_path[PATH_LENGTH_MAX];
+extern char phy_para_file_path[PATH_LENGTH_MAX];
 #define GetLineFromBuffer(buffer)   strsep(&buffer, "\n")
 #endif

changing "file_path" to "phy_para_file_path" as all other references to "file_path" should have been as well so it appears your source code was not correctly patched for some reason.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 7:35 pm

Yes, I was also wondering.

I do have a glance at your patching codes, but I don't see a "Driver-old" folder was created. I don't have an idea.

And here's the output of making your rtl8192eu driver:

Code: Select all

[email protected]:~/rtl8192eu# make 
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.50+/build M=/root/rtl8192eu  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.50+'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/rtl8192eu/core/rtw_cmd.o
  CC [M]  /root/rtl8192eu/core/rtw_security.o
  CC [M]  /root/rtl8192eu/core/rtw_debug.o
/root/rtl8192eu/core/rtw_debug.c: In function ‘dump_drv_version’:
/root/rtl8192eu/core/rtw_debug.c:70:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/rtl8192eu/core/rtw_debug.o' failed
make[2]: *** [/root/rtl8192eu/core/rtw_debug.o] Error 1
Makefile:1402: recipe for target '_module_/root/rtl8192eu' failed
make[1]: *** [_module_/root/rtl8192eu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.50+'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:~/rtl8192eu# 
Life goes on, people pass by~

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 8:35 pm

wind93 wrote:Yes, I was also wondering.

I do have a glance at your patching codes, but I don't see a "Driver-old" folder was created. I don't have an idea.

And here's the output of making your rtl8192eu driver:

Code: Select all

[email protected]:~/rtl8192eu# make 
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.50+/build M=/root/rtl8192eu  modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.50+'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/rtl8192eu/core/rtw_cmd.o
  CC [M]  /root/rtl8192eu/core/rtw_security.o
  CC [M]  /root/rtl8192eu/core/rtw_debug.o
/root/rtl8192eu/core/rtw_debug.c: In function ‘dump_drv_version’:
/root/rtl8192eu/core/rtw_debug.c:70:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/root/rtl8192eu/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/rtl8192eu/core/rtw_debug.o' failed
make[2]: *** [/root/rtl8192eu/core/rtw_debug.o] Error 1
Makefile:1402: recipe for target '_module_/root/rtl8192eu' failed
make[1]: *** [_module_/root/rtl8192eu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.50+'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:~/rtl8192eu# 
Driver-old was the directory containing the original source code and Driver is the directory for the patched code. The patch file is generated by using diff on the two directories.

I cross-compile my drivers on a PC and don't see the DATE and TIME errors - probably the gcc version being used. You can fix the errors with DATE and TIME by adding a line to the Makefile. Look for lines

Code: Select all

#EXTRA_CFLAGS += -Wno-uninitialized
#EXTRA_CFLAGS += -Wno-error=date-time   # Fix compile error on gcc 4.9 and later
about line 30 then after that add a new line

Code: Select all

EXTRA_CFLAGS += -Wno-date-time
and that will stop the errors and any warnings about DATE and TIME.

Instead of adding the new line to the Makefile you can just uncomment the line

Code: Select all

#EXTRA_CFLAGS += -Wno-error=date-time   # Fix compile error on gcc 4.9 and later
and instead of getting errors you will just get warnings and the driver should compile.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

wind93
Posts: 9
Joined: Thu Apr 13, 2017 1:25 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 9:03 pm

THX, it's working now~ :D
Life goes on, people pass by~

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 16, 2017 9:05 pm

wind93 wrote:THX, it's working now~ :D
Great, glad to be able to help.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

eugens
Posts: 1
Joined: Sun Apr 23, 2017 9:27 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 23, 2017 9:33 am

I registered on this forum just to tell you big THANK YOU. Your script is easy to use and it saved me and everyone else many hours or days of work.
MrEngman wrote:
I compile the 8192eu driver and use it. I have a script that will determine the which driver version you need and automatically download and install it. You can download and install the script [...]

MrEngman

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 23, 2017 11:41 am

eugens wrote:I registered on this forum just to tell you big THANK YOU. Your script is easy to use and it saved me and everyone else many hours or days of work.
MrEngman wrote:
I compile the 8192eu driver and use it. I have a script that will determine the which driver version you need and automatically download and install it. You can download and install the script [...]

MrEngman
Than you, glad to be able to help


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

geekykidstuff
Posts: 1
Joined: Fri Mar 10, 2017 4:02 am

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 30, 2017 6:06 am

MrEngman wrote:The error is because the link to the linux source is missing. You can make the link with command

Code: Select all

sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
You will need to change directory /home/pi/src/linux to where your Linux source/headers are stored.

To get the linux source to compile your driver you can look here. I do not use this but I have seen many people recommend this.

I compile the 8192eu driver and you can download and install it using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-4.4.9-v7-884.tar.gz
tar xzf 8192eu-4.4.9-v7-884.tar.gz
./install.sh


MrEngman
@MrEngman: Your script worked perfectly but I had to reinstall my RPi OS and now, when I try to download it from your Dropbox link, doesn't work anymore because of Dropbox changes. Do you happen to still have it hosted somewhere else? Thanks

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Apr 30, 2017 3:04 pm

geekykidstuff wrote: @MrEngman: Your script worked perfectly but I had to reinstall my RPi OS and now, when I try to download it from your Dropbox link, doesn't work anymore because of Dropbox changes. Do you happen to still have it hosted somewhere else? Thanks
Take a look here



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

iurly
Posts: 16
Joined: Sun May 14, 2017 10:50 pm

Re: Wlan Stick with RTL8192EU Chipset

Thu Aug 31, 2017 7:57 pm

Hey MrEngman,

great job with the download script!
I'd like to implement something similar for another kernel module I need to deploy to several cards.
Could you also share the script you use to build and upload your compiled drivers?
I'm assuming you're not cross compiling but rather your building it on the pi itself, is that right?

Thanks!

Maxemojo
Posts: 1
Joined: Sat Sep 02, 2017 12:09 pm

Re: Wlan Stick with RTL8192EU Chipset

Sat Sep 02, 2017 1:12 pm

I also just joined this forum just to say THANK YOU MrEngman!
After many hours of searching and struggling, I got the blinking LED to blink. And then my Pi started talking to the world.

Just for reference for others who might land here:
Raspberry Pi 2
TP-LINK TL-WN823N
Running Octoprint for remote control of 3d Printing.
Set your logins before you do the downloads.
This got me going

Supersimo88
Posts: 1
Joined: Wed Sep 27, 2017 10:07 am

Re: Wlan Stick with RTL8192EU Chipset

Wed Sep 27, 2017 10:09 am

I'm getting this error

Code: Select all

[email protected]:~ $ sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.4.50+
Your current kernel build    = #970

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 088: ID 2357:0109

And it uses the 8192eu driver.

Checking for a new 8192eu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8192eu driver.
Installing the 8192eu driver.

Installing driver module 8192eu.ko.
install: cannot create regular file ‘/lib/modules/4.4.50+/kernel/drivers/net/wireless’: No such file or directory
depmod: ERROR: could not open directory /lib/modules/4.4.50+: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Loading and running the new 8192eu driver, 8192eu.ko.
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.50+/modules.dep.bin'

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Wed Sep 27, 2017 5:44 pm

Supersimo88 wrote:
Wed Sep 27, 2017 10:09 am
I'm getting this error

Code: Select all

[email protected]:~ $ sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.4.50+
Your current kernel build    = #970

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 088: ID 2357:0109

And it uses the 8192eu driver.

Checking for a new 8192eu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8192eu driver.
Installing the 8192eu driver.

Installing driver module 8192eu.ko.
install: cannot create regular file ‘/lib/modules/4.4.50+/kernel/drivers/net/wireless’: No such file or directory
depmod: ERROR: could not open directory /lib/modules/4.4.50+: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Loading and running the new 8192eu driver, 8192eu.ko.
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.50+/modules.dep.bin'
Very strange. The script thinks you are using kernel 4.4.50+ but you don't appear to have the modules directory for that kernel revision.

What do these commands show

Code: Select all

uname -a
ls /lib/modules
What happens if you reboot and then try to run the script again? Presumably you are running Raspbian OS.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

appalcrumble
Posts: 3
Joined: Thu Jan 11, 2018 4:29 pm

Re: Wlan Stick with RTL8192EU Chipset

Thu Jan 11, 2018 4:31 pm

Hi

I only have access to the internet via a separate PC, how do I go about installing this on the Pi that has no internet access?

Any info would be greatly appreciated!!

Thanks!

MrEngman
Posts: 3716
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Thu Jan 11, 2018 6:41 pm

appalcrumble wrote:
Thu Jan 11, 2018 4:31 pm
Hi

I only have access to the internet via a separate PC, how do I go about installing this on the Pi that has no internet access?

Any info would be greatly appreciated!!

Thanks!
NOTE: The drivers I compile are for use with Raspbian. Your Pi will need to be running a version of the Raspbian OS to use my drivers.

You can download the driver to your PC and then copy it to your Pi and then install it.

First find the kernel version your Pi is using with command uname -a.

Then access the web site http://downloads.fars-robotics.net from your PC. Select the link Directory of available wifi drivers then the link 8192eu-drivers/ and find the driver that matches the kernel version you have on your PI and download to your PC.

You will then need to copy the driver file from your PC to the Pi. Either copy the driver to a USB stick and then connect the USB stick to your Pi and copy the driver to your Pi home directory, or shutdown the Pi and remove the SD card and connect it to your PC and copy the driver file to the SD card then plug the SD card back into your Pi and re-start your Pi and then copy the driver file from the /boot directory to your home directory.

Then unzip the driver file and install using commands below replacing 8192eu-driver-file.tar.gz with the actual name of the driver file you have downloaded.

Code: Select all

tar xzf 8192eu-driver-file.tar.gz
./install.sh
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

appalcrumble
Posts: 3
Joined: Thu Jan 11, 2018 4:29 pm

Re: Wlan Stick with RTL8192EU Chipset

Thu Jan 11, 2018 7:20 pm

Thanks so much!!!

Commands worked perfectly.

However, I am still not seeing the stick. Any thoughts?

[edit: I downloaded this version off the website: 8192eu-4.14.13-v7-1077.tar.gz]

When I run lsusb, all I see is:
Bus 001 Device 004: ID 2357:0109 *blank*

Running iwconfig gives me:
eth0 no wireless extensions

lo no wireless extensions

And typing sudo iwlist wlan0 scan, returns:
wlan0 Interface doesn't support scanning

I currently have installed a fresh version of Raspbian stretch. Kernel is 4.9.59-v7+.

/etc/network/interfaces and wpa_supplicant is blank.

Thanks again, appreciate any ideas.

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 12 guests