Giter Club home page Giter Club logo

rtl8192eu's Introduction

RTL8192EU

Linux driver for Realtek RTL8192EU based on official's TP Link TL - WN823N V3 Beta v5.2.19.1 from 2018-05-08
Supports monitor mode and frame injection for penetration testing abilities.

Supported devices:

  • DWA-131 (untested)
  • GW-300S Katana (untested)
  • TL-WN821N V6 (untested)
  • TL-WN822N V5 (tested)
  • TL-WN823N V3 (tested)

Changelog:

  • Added frame injection support
  • Monitor mode is now supported
  • Turned of powersaving
  • Turned of debug
  • Added compatibility for Linux Kernel v5.0-rc1
  • Added compatibility for Linux Kernel v4.20
  • Added compatibility for Linux Kernel v4.19+
  • Added compatibility for Linux Kernel v4.15+

Build guide

  1. Make sure you have installed the following packages:
    - make (Tested on 4.2.1)
    - gcc (Tested on 8.2.0)
    - git (OPTIONAL, Tested on 2.18.0)
    - libelf-dev
  1. Download and unpack this repo, or just clone with git:
    $ git clone https://github.com/ZeeRooo/RTL8192EU.git
    $ cd RTL8192EU/
  1. Build the module:
   $ make clean
   $ make
   $ make install
  1. Load our shiny module:
   $ modprobe 8192eu

Original TP Link driver:

https://static.tp-link.com/2018/201805/20180514/TP-Link_Driver_Linux_series8_beta.zip

rtl8192eu's People

Contributors

bytehackr avatar icenowy avatar kimocoder avatar satanicraw avatar zeerooo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rtl8192eu's Issues

Add device

Hello. Please add a line
{USB_DEVICE (0x2c4e, 0x0100),. Driver_info = RTL8192E}, / * mercusys * /
in section #ifdef CONFIG_RTL8192E
To support Wi-Fi adapter Mercusys MW300UM.

DWA-131 Revision E tested

Ubuntu 18.04 with kernel 4.15.0-58-generic and kernel 4.15.0-55-generic
This driver successfully builded, installed and worked with D-Link DWA-131 Revision E USB stick.
Please add to documentation this command:
sudo apt install libelf-dev
because without libelf-dev you can't build .ko file from sources

[Makefile:1835: install] Error 1

hello there
i have wn822n v5 and i want to use it in monitor mode when i install this driver it shows me this

root@Gaara:/home/gaara/RTL8192EU# make install
install -p -m 644 8192eu.ko /lib/modules/5.6.0-kali2-686-pae/kernel/drivers/net/wireless/
install: cannot stat '8192eu.ko': No such file or directory
make: *** [Makefile:1835: install] Error 1

please help

Can't install on Kali 5.9

There is an error after trying to Make the driver:

root@kali:~/RTL8192EU# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.9.0-kali1-amd64/build M=/root/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-kali1-amd64'
CC [M] /root/RTL8192EU/core/rtw_cmd.o
In file included from /root/RTL8192EU/include/drv_types.h:78,
from /root/RTL8192EU/core/rtw_cmd.c:17:
/root/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’
243 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/filter.h:24,
from /usr/src/linux-headers-5.9.0-kali1-common/include/net/sock.h:59,
from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/tcp.h:19,
from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/ipv6.h:88,
from /usr/src/linux-headers-5.9.0-kali1-common/include/net/addrconf.h:50,
from /root/RTL8192EU/include/osdep_service_linux.h:48,
from /root/RTL8192EU/include/osdep_service.h:47,
from /root/RTL8192EU/include/drv_types.h:27,
from /root/RTL8192EU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.9.0-kali1-common/include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.9.0-kali1-common/scripts/Makefile.build:288: /root/RTL8192EU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:1796: /root/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-kali1-amd64'
make: *** [Makefile:1829: modules] Error 2

problems with modprobe

Trying to get TP link dongle (2357:0109) to work with 4.18.0 -15 kernel in Linux Mint.

Experienced this problem?
neil@culnacnoc:~/RTL8192EU$ sudo modprobe 8192eu
modprobe: ERROR: could not insert '8192eu': Invalid argument

I'm new to this and am probably doing something stupid/ have missed something important, etc.

Any advice and/or instructions to remedy issue?

Driver features explanation

Hi.
I would like to ask a small description of each feature of the driver.
With this info, I can configure properly the Makefile before compiling and installing the driver.

Thanks

cannot complete make command

after use make command

┌──(kali㉿kali)-[~/RTL8192EU]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.0.0-kali6-amd64/build M=/home/kali/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
CC [M] /home/kali/RTL8192EU/core/rtw_br_ext.o
/home/kali/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.0.0-kali6-common/scripts/Makefile.build:254: /home/kali/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.0.0-kali6-common/Makefile:1876: /home/kali/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
make: *** [Makefile:1829: modules] Error 2

Driver auto-initialization

I've noticed that even after installing the driver and applying the modprobe command, I was still using the generic network driver rtl8xxxu

So, I did a little research and I found THE SOLUTION

I leave you the quote:

  1. Distributions based on Debian & Ubuntu have RTL8XXXU driver present & running in kernelspace. To use our RTL8192EU driver, we need to blacklist RTL8XXXU.

    $ echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf;
  2. Force RTL8192EU Driver to be active from boot.

    $ echo -e "8192eu\n\nloop" | sudo tee /etc/modules;
  3. Update changes to Grub & initramfs

    $ sudo update-grub; sudo update-initramfs -u;
  4. Reboot system to load new changes from newly generated initramfs.

    $ systemctl reboot -i;
  5. Check that your kernel has loaded the right module:

    $ sudo lshw -c network;

You should see the line driver=8192eu

Of course, it'd be better to automatize this in, I don't know ... a bash script?

Build error on kernel 5.18.0 because of net/ipx.h is missing

System info:

$ uname -a             
Linux kali 5.18.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali1 (2022-06-20) x86_64 GNU/Linux

Make output:

$ make                                                                                                                                                                     
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali2-amd64/build M=/home/kali/tmp/RTL8192EU  modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali2-amd64'
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_cmd.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_security.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_debug.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_io.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_ioctl_query.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_ioctl_set.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_ieee80211.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_mlme.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c:1638:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1638 |                 if (MLME_IS_AP(padapter))
      |                    ^
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c:1643:9: note: here
 1643 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_mi.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_wlan_util.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_vht.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_pwrctrl.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_rf.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_recv.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_sta_mgt.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_ap.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_xmit.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_p2p.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_rson.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_tdls.o
  CC [M]  /home/kali/tmp/RTL8192EU/core/rtw_br_ext.o
/home/kali/tmp/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
   20 |         #include <net/ipx.h>
      |                  ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.18.0-kali2-common/scripts/Makefile.build:293: /home/kali/tmp/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.18.0-kali2-common/Makefile:1858: /home/kali/tmp/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali2-amd64'
make: *** [Makefile:1829: modules] Error 2

Make error for kernel 5.8.0 - redefinition of ‘struct sha256_state’

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-1-amd64/build M=/home/ipaleka/opt/repos/RTL8192EU  modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-1-amd64'
  CC [M]  /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o
In file included from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:78,
                 from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/home/ipaleka/opt/repos/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’
  243 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.8.0-1-common/include/linux/filter.h:23,
                 from /usr/src/linux-headers-5.8.0-1-common/include/net/sock.h:59,
                 from /usr/src/linux-headers-5.8.0-1-common/include/linux/tcp.h:19,
                 from /usr/src/linux-headers-5.8.0-1-common/include/linux/ipv6.h:88,
                 from /usr/src/linux-headers-5.8.0-1-common/include/net/addrconf.h:50,
                 from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service_linux.h:48,
                 from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service.h:47,
                 from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:27,
                 from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.8.0-1-common/include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.8.0-1-common/scripts/Makefile.build:286: /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:1768: /home/ipaleka/opt/repos/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-1-amd64'
make: *** [Makefile:1829: modules] Error 2

Related

Doesn't compile on Kali

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali9-amd64/build M=/home/kali/RTL8192EU  modules
make[1]: *** /lib/modules/5.10.0-kali9-amd64/build: No such file or directory.  Stop.
make: *** [Makefile:1829: modules] Error 2

/lib/modules/5.10.0-kali9-amd64/ doesn't contain build/.

Не устанавливается в 5.9.0

Подскажите. Как установить, выдает ошибки -
make[3]: *** [/usr/src/linux-headers-5.9.0-kali5-common/scripts/Makefile.build:288: /root/RTL8192EU/core/rtw_cmd.o] Ошибка 1
make[2]: *** [/usr/src/linux-headers-5.9.0-kali5-common/Makefile:1799: /root/RTL8192EU] Ошибка 2
make[1]: *** [/usr/src/linux-headers-5.9.0-kali5-common/Makefile:185: __sub-make] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-5.9.0-kali5-amd64»
make: *** [Makefile:1829: modules] Ошибка 2

Можно ли исправить? Ответьте плз.

Makefile build error

Command was executed with the following configuration:

$ uname -a
Linux kali 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux
$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.7.0-kali1-amd64/build M=/home/kali/Downloads/RTL8192EU  modules
make[1]: Entering directory '/usr/src/linux-headers-5.7.0-kali1-amd64'
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_cmd.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_security.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_debug.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_io.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_ioctl_query.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_ioctl_set.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_ieee80211.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_mlme.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c:1638:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1638 |   if (MLME_IS_AP(padapter))
      |      ^
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c:1643:2: note: here
 1643 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_mi.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_wlan_util.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_vht.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_pwrctrl.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_rf.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_recv.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_sta_mgt.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_ap.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_xmit.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_p2p.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_rson.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_tdls.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_br_ext.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_iol.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_sreset.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_btcoex_wifionly.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_btcoex.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_beamforming.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/rtw_odm.o
  CC [M]  /home/kali/Downloads/RTL8192EU/core/efuse/rtw_efuse.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/osdep_service.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/os_intfs.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/usb_intf.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_linux.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/xmit_linux.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/mlme_linux.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/recv_linux.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.o
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_change_iface’:
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2069:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2069 |   is_p2p = _TRUE;
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2071:2: note: here
 2071 |  case NL80211_IFTYPE_STATION:
      |  ^~~~
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2093:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2093 |   is_p2p = _TRUE;
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2095:2: note: here
 2095 |  case NL80211_IFTYPE_AP:
      |  ^~~~
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/wifi_regd.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_android.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_radiotap.o
  CC [M]  /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.o
/home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’:
/home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c:72:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   72 |  entry = proc_create_data(name,  S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data);
      |                                                                       ^~~~
      |                                                                       |
      |                                                                       const struct file_operations *
In file included from /home/kali/Downloads/RTL8192EU/include/../os_dep/linux/rtw_proc.h:18,
                 from /home/kali/Downloads/RTL8192EU/include/osdep_intf.h:128,
                 from /home/kali/Downloads/RTL8192EU/include/drv_types.h:104,
                 from /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c:17:
/usr/src/linux-headers-5.7.0-kali1-common/include/linux/proc_fs.h:74:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   74 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:1745: /home/kali/Downloads/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-kali1-amd64'
make: *** [Makefile:1829: modules] Error 2

Status of TL-WN821N V5

Driver seems to support the TL-WN821N V5 too.

There is an issue, though which is probably in common with the TL-WN821N V6.

If you load the module and connect, the connection is fine.
If you ask network manager to unconnect and then you try to connect again, it does not work anymore.

Debian 9 txpower

Everything works fine, but there are 2 little things, 40 MHz is not turned on forcibly, and the signal power is always 12.00 dBm. How to increase txpower signal power up to 20-30 dBm?
phy#1
Interface wlx503eaa53b68c
ifindex 3
wdev 0x100000001
addr 50:3e:aa:53:b6:8c
ssid test_2
type AP
txpower 12.00 dBm

I'm going mad.

I've been trying to set this up for 2 months now and I still get the same error

Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c .mod .o ..cmd .ko
cd hal/led ; rm -fr .mod.c .mod .o ..cmd .ko
cd hal ; rm -fr //
.mod.c //
.mod //
.o //.
.cmd //
.ko
cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd core ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod .o ..cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod .o ..cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-kali2-amd64/build M=/root/Realtek-RTL8192EU-driver/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-kali2-amd64'
/usr/src/linux-headers-4.18.0-kali2-common modules
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-kali2-amd64/build M=/usr/src/linux-headers-4.18.0-kali2-common modules

make[2327]: fork: Resource temporarily unavailable
make[2326]: *** [Makefile:1700: modules] Error 2

for the sake of not spamming these two lines go about TWOTHOUSAND times each

test result of TL-WN821N V6

@ZeeRooo
after adding rtl8xxxu driver to blacklist and installing RTL8192EU driver, wifi connection is successful on Linux version 4.15.0-29-generic (buildd@lgw01-amd64-057) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 (Ubuntu 4.15.0-29.31-generic 4.15.18)

extra informations:

1. driver name and chipset nameis not shown on airmon-ng i dont know why, only shows ?????? on driver name (i dont know whether this device support monitor-mode or promiscuous mode)

2. if i do reset the NetworkManager, i have to reboot the linux for using wifi device otherwise it is not working

net/ipx.h is missing and the one in linux is netipx/ipx.h

┌──(kali㉿kali)-[~/RTL8192EU]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
CC [M] /home/kali/RTL8192EU/core/rtw_cmd.o
CC [M] /home/kali/RTL8192EU/core/rtw_security.o
CC [M] /home/kali/RTL8192EU/core/rtw_debug.o
CC [M] /home/kali/RTL8192EU/core/rtw_io.o
CC [M] /home/kali/RTL8192EU/core/rtw_ioctl_query.o
CC [M] /home/kali/RTL8192EU/core/rtw_ioctl_set.o
CC [M] /home/kali/RTL8192EU/core/rtw_ieee80211.o
CC [M] /home/kali/RTL8192EU/core/rtw_mlme.o
CC [M] /home/kali/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/RTL8192EU/core/rtw_mlme_ext.c:1638:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1638 | if (MLME_IS_AP(padapter))
| ^
/home/kali/RTL8192EU/core/rtw_mlme_ext.c:1643:9: note: here
1643 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/kali/RTL8192EU/core/rtw_mi.o
CC [M] /home/kali/RTL8192EU/core/rtw_wlan_util.o
CC [M] /home/kali/RTL8192EU/core/rtw_vht.o
CC [M] /home/kali/RTL8192EU/core/rtw_pwrctrl.o
CC [M] /home/kali/RTL8192EU/core/rtw_rf.o
CC [M] /home/kali/RTL8192EU/core/rtw_recv.o
CC [M] /home/kali/RTL8192EU/core/rtw_sta_mgt.o
CC [M] /home/kali/RTL8192EU/core/rtw_ap.o
CC [M] /home/kali/RTL8192EU/core/rtw_xmit.o
CC [M] /home/kali/RTL8192EU/core/rtw_p2p.o
CC [M] /home/kali/RTL8192EU/core/rtw_rson.o
CC [M] /home/kali/RTL8192EU/core/rtw_tdls.o
CC [M] /home/kali/RTL8192EU/core/rtw_br_ext.o
/home/kali/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
make: *** [Makefile:1829: modules] Error 2

Unable to compile - Kernel 5.9

Hi!
Sorry for a noob question but I can't seem to compile and install these drivers.
I get the following:

"make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.9.0-0.bpo.2-rt-amd64/build M=/home//Downloads/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-0.bpo.2-rt-amd64'

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

make[2]: *** [/usr/src/linux-headers-5.9.0-0.bpo.2-common-rt/Makefile:718: include/config/auto.conf] Error 1
make[1]: *** [/usr/src/linux-headers-5.9.0-0.bpo.2-common-rt/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-0.bpo.2-rt-amd64'
make: *** [Makefile:1829: modules] Error 2"

I tried to:
make oldconfig
make prepare
make scripts

I have:
gcc 8.3.0-6
git 2.20.1
dkms 2.6

And I'm trying to install the drivers on Debian based distro with 5.9 kernel.

Build Fail

Build failed with following configuration

uname -a
Linux kali 5.4.0-kali3-amd64 #1 SMP Debian 5.4.13-1kali1 (2020-01-20) x86_64 GNU/Linux


CC [M] /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.o
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c: In function ‘dump_drv_version’:
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^
In file included from /media/sf_KaliShare/RTL8192EU-master/include/drv_types.h:60,
from /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:17:
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’
107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’
107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:285:25: note: in definition of macro ‘RTW_PRINT_SEL’
285 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/;
| ^~~
cc1: some warnings being treated as errors

Error 2 Kali Linux 2021.1 Kernel 5.10

when i type make, i get the following error:

┌──(root💀kali)-[~/RTL8192EU] └─# make 2 ⨯ make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali5-amd64/build M=/root/RTL8192EU modules make[1]: Entering directory '/usr/src/linux-headers-5.10.0-kali5-amd64' CC [M] /root/RTL8192EU/core/rtw_cmd.o In file included from /root/RTL8192EU/include/drv_types.h:78, from /root/RTL8192EU/core/rtw_cmd.c:17: /root/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’ 243 | struct sha256_state { | ^~~~~~~~~~~~ In file included from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/filter.h:24, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/sock.h:59, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/tcp.h:19, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/ipv6.h:87, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/addrconf.h:50, from /root/RTL8192EU/include/osdep_service_linux.h:48, from /root/RTL8192EU/include/osdep_service.h:47, from /root/RTL8192EU/include/drv_types.h:27, from /root/RTL8192EU/core/rtw_cmd.c:17: /usr/src/linux-headers-5.10.0-kali5-common/include/crypto/sha.h:84:8: note: originally defined here 84 | struct sha256_state { | ^~~~~~~~~~~~ make[3]: *** [/usr/src/linux-headers-5.10.0-kali5-common/scripts/Makefile.build:284: /root/RTL8192EU/core/rtw_cmd.o] Error 1 make[2]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:1819: /root/RTL8192EU] Error 2 make[1]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:185: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-kali5-amd64' make: *** [Makefile:1829: modules] Error 2

TL-WN821N V6 injects but does not monitor

Hi guys,
I have been tring to make my wifi dongle work but facing some weird situation as I am able to inject packets and even hear other networks but, not able to use wireshark at all as not able to set the wifi dongle into Monitor mode.
From a wireshark perspective, I can see the interface which has the Monitor checkbox available but automatically unchecks it in case I try to check it.
Other fact that I am facing is that I can't start monitor mode by doing "airmon-ng start wlan0". I have to manually turn it into moiitor mode but never becomes "wlan0mon", it just keeps as "wlan0".
I am not very sure whether this is a bug or whether I am missign something or what's going on with it?
Could someone please drop some light over this topic?
Regards.
Alejandro.

/bin/sh: 1: bc: not found Error when running the make command

Info:
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux

Error:
/bin/sh: 1: bc: not found make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/kali/RTL8192EU modules make[1]: *** /lib/modules/5.16.0-kali7-amd64/build: No such file or directory. Stop. make: *** [Makefile:1829: modules] Error 2

I also tried:
sudo apt upgrade

sudo apt update

It didn't help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.