Welcome! Log In Create A New Profile

Advanced

Compile wireless driver rtl8188eu

Posted by jevgienij 
Compile wireless driver rtl8188eu
January 20, 2019 02:34PM
I'm trying to get my wireless card working in monitor mode. To do this I need to compile the driver. I think my issue is kirkwood related, so I'm asking here.

I'm trying this: https://github.com/mfruba/kernel

[root] [~/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417] # make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv5tel CROSS_COMPILE= -C /lib/modules/4.19.0-kirkwood-tld-1/build M=/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
Makefile:619: arch/armv5tel/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv5tel/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
Makefile:1368: recipe for target 'modules' failed
make: *** [modules] Error 2

OK, so then I try this:

[root] [~/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417] # ARCH=arm make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.0-kirkwood-tld-1/build M=/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o
In file included from ./include/linux/compat.h:16:0,
                 from ./include/linux/ethtool.h:17,
                 from ./include/linux/netdevice.h:41,
                 from /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:3 ,
                 from /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45,
                 from /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32,
                 from /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.c:22:
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>   /* for struct sockaddr.  */
                                                      ^
compilation terminated.
scripts/Makefile.build:305: recipe for target '/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o' failed
make[2]: *** [/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o] Error 1
Makefile:1517: recipe for target '_module_/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417' failed
make[1]: *** [_module_/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
Makefile:1368: recipe for target 'modules' failed
make: *** [modules] Error 2

[root] [~] # cat /etc/debian_version
9.6
[root] [~] # uname -a
Linux backup 4.19.0-kirkwood-tld-1 #1 PREEMPT Mon Oct 22 17:08:01 PDT 2018 armv5tel GNU/Linux
[root] [~] # dmesg | grep -i nsa
[    0.000000] OF: fdt: Machine model: ZyXEL NSA310

How can I compile this driver on this machine?
Re: Compile wireless driver rtl8188eu
January 20, 2019 11:49PM
jevgienij Wrote:
-------------------------------------------------------
> I'm trying to get my wireless card working in
> monitor mode. To do this I need to compile the
> driver. I think my issue is kirkwood related, so
> I'm asking here.
>
> I'm trying this:
> https://github.com/mfruba/kernel
>
>
> [root]
> [~/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417]
> # make
> "******************************************"
> "NO SKRC,we will use default KSRC"
> "******************************************"
> make ARCH=armv5tel CROSS_COMPILE= -C
> /lib/modules/4.19.0-kirkwood-tld-1/build
> M=/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417
>  modules
> make[1]: Entering directory
> '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
> Makefile:619: arch/armv5tel/Makefile: No such file
> or directory
> make[1]: *** No rule to make target
> 'arch/armv5tel/Makefile'.  Stop.
> make[1]: Leaving directory
> '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
> Makefile:1368: recipe for target 'modules' failed
> make: *** [modules] Error 2
>
>
> OK, so then I try this:
>
>
> [root]
> [~/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417]
> # ARCH=arm make
> "******************************************"
> "NO SKRC,we will use default KSRC"
> "******************************************"
> make ARCH=arm CROSS_COMPILE= -C
> /lib/modules/4.19.0-kirkwood-tld-1/build
> M=/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417
>  modules
> make[1]: Entering directory
> '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
> "******************************************"
> "NO SKRC,we will use default KSRC"
> "******************************************"
>   CC [M] 
> /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o
> In file included from
> ./include/linux/compat.h:16:0,
>                  from
> ./include/linux/ethtool.h:17,
>                  from
> ./include/linux/netdevice.h:41,
>                  from
> /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service_linux.h:3
> ,
>                  from
> /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/osdep_service.h:45,
>                  from
> /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/include/drv_types.h:32,
>                  from
> /root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.c:22:
> ./include/linux/if.h:28:54: fatal error:
> sys/socket.h: No such file or directory
>  #include <sys/socket.h>   /* for struct sockaddr.
>  */
>                                                   
>    ^
> compilation terminated.
> scripts/Makefile.build:305: recipe for target
> '/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o'
> failed
> make[2]: ***
> [/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_cmd.o]
> Error 1
> Makefile:1517: recipe for target
> '_module_/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417'
> failed
> make[1]: ***
> [_module_/root/8188eu/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417]
> Error 2
> make[1]: Leaving directory
> '/usr/src/linux-headers-4.19.0-kirkwood-tld-1'
> Makefile:1368: recipe for target 'modules' failed
> make: *** [modules] Error 2
>
>
>
> [root] [~] # cat /etc/debian_version
> 9.6
> [root] [~] # uname -a
> Linux backup 4.19.0-kirkwood-tld-1 #1 PREEMPT Mon
> Oct 22 17:08:01 PDT 2018 armv5tel GNU/Linux
> [root] [~] # dmesg | grep -i nsa
> [    0.000000] OF: fdt: Machine model: ZyXEL
> NSA310
>
>
> How can I compile this driver on this machine?

There was some confirmed report in this forum about this issue (compiling module). I will look in to this eventually when I have time. Pehaps in a couple weeks.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 01/20/2019 11:52PM by bodhi.
Re: Compile wireless driver rtl8188eu
January 23, 2019 03:14PM
Thanks. Let's keep this as an open issue. In the mean time I'm gonna use an old i386 terminal where the driver compiled with no problem.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: