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)
Re: Compile wireless driver rtl8188eu
May 31, 2024 06:05PM
My compiled version

https://github.com/lwfinger/rtl8192du
https://linux-hardware.org/?id=usb:0bda-8171

ARCH=arm make

warning ! This driver not correct working on my system NSA310, maybe my wifi adapter not fully compatible



Edited 2 time(s). Last edit at 06/02/2024 09:51AM by Audrius.
Attachments:
open | download - 8192du.zip (396.1 KB)
Re: Compile wireless driver rtl8188eu
June 01, 2024 12:57AM
Thanks Audrius!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Compile wireless driver rtl8188eu
June 02, 2024 09:52AM
Native compiling kernel driver RTL8712U

System: NSA310
OS: 6.8.7-kirkwood-tld-1

sudo apt-get install make build-essential libncurses-dev linux-libc-dev bison flex libssl-dev libelf-dev bc
ln -s /usr/include/asm-generic /usr/include/asm (maybe not nessesary)
wget https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.8.7.tar.gz
tar xfz linux-6.8.7.tar.gz
move linux-6.8.7 /usr/src/
cd /usr/src/linux-6.8.7
cp /usr/src/linux-headers-6.8.7-kirkwood-tld-1/Module.symvers .
cp /boot/config-3.2.0-3-kirkwood .config
patch -p1 < /boot/linux-6.8.7-kirkwood-tld-1.patch (file from "linux-6.8.7-kirkwood-tld-1-bodhi.tar.bz2")
make menuconfig

> Device Drivers --->
> Staging drivers --->
> (M) RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver

save config as .config_
exit menu
mv .config_ .config
make modules_prepare
make M=drives/staging/ KBUILD_MODPOST_WARN=1 (maybe switch "KBUILD_MODPOST_WARN=1" not nessesary)
Attachments:
open | download - rtl8712.zip (79.5 KB)
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: