Welcome! Log In Create A New Profile

Advanced

Compile wireless driver rtl8188eu

Posted by jevgienij 
Compile wireless driver rtl8188eu
January 20, 2019 03: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 21, 2019 12:49AM
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 (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/21/2019 12:52AM by bodhi.
Re: Compile wireless driver rtl8188eu
January 23, 2019 04: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.
Re: Compile wireless driver rtl8188eu
August 05, 2019 09:52AM
Was any progress made on this?
Re: Compile wireless driver rtl8188eu
August 05, 2019 04:14PM
This is interesting as i remember having a similar issue when I was trying to compile unofficial drivers for the Edimax EW-7811UN. There was some issue that needed to be solved by creating symlinks from the "build" dir to the headers as outlined in this post by Mieki:

https://forum.doozan.com/read.php?2,26114,26160#msg-26160

after doing that I was able to compile the driver successfully with DKMS on the 4.4.0 kernel. I can confirm however that trying to build the driver linked above as described in OP's post results in a build error using the latest kernel provided by bodhi. I have no idea if DKMS would work in this situation though.



Edited 1 time(s). Last edit at 08/05/2019 04:15PM by alexr.
Re: Compile wireless driver rtl8188eu
August 05, 2019 11:57PM
I’ve bumped this issue up on my priority list.

Probably just a side effect of usingmake-kpkg (i.e. some directories were not populated).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Compile wireless driver rtl8188eu
September 02, 2019 11:58PM
Please see this post:

https://forum.doozan.com/read.php?2,89449

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: