quickreflex / rtl8188eus

Wifi driver support for rtl8188eu, rtl8188eus and rtl8188etv chips and working under the new linux kernel (5.1.x).
Other
189 stars 73 forks source link

Raspberry Pi, Kali and TP-LINK TL-WN722N (EU) Version 3.20 #53

Open TheBallOfAeolus opened 4 years ago

TheBallOfAeolus commented 4 years ago

Hi everybody I have a Raspberry Pi 2 Model B Rev 1.1 and a TP-LINK TL-WN722N (EU) Ver.:3.20 (150 Mbps High Gain Wireless USB Adapter - White)

Installed: OS: Kali Linux Kernel: armv7l Linux 4.19.118-Re4son-v7+ CPU: ARMv7 rev 5 (v7l) @ 4x 900MHz

USB:

:~$ sudo lshw -C network
  *-network:0
       description: Wireless interface
       physical id: 2
       bus info: usb@1:1.5
       logical name: wlan0
       serial: d0:37:45:0e:6b:1a
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated

Compiling:

:~$ git clone https://github.com/quickreflex/rtl8188eus.git
Cloning into 'rtl8188eus'...
remote: Enumerating objects: 1312, done.
remote: Total 1312 (delta 0), reused 0 (delta 0), pack-reused 1312
Receiving objects: 100% (1312/1312), 4.64 MiB | 2.78 MiB/s, done.
Resolving deltas: 100% (777/777), done.
Updating files: 100% (588/588), done.

:~$ cd rtl8188eus/

:~$ make all
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.19.118-Re4son-v7+/build M=/home/username/dev/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
Makefile:614: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
make: *** [Makefile:1911: modules] Error 2

becuase of the Makefile:614: arch/armv7l/Makefile: No such file or directory I tried instead:

:~$ make all ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.118-Re4son-v7+/build M=/home/username/dev/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_cmd.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_security.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_debug.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_io.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ioctl_query.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ioctl_set.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ieee80211.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mlme.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mlme_ext.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mi.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_wlan_util.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_vht.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_pwrctrl.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_rf.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_recv.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_sta_mgt.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ap.o
/home/username/dev/rtl8188eus/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/home/username/dev/rtl8188eus/core/rtw_ap.c:193:9: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  193 |   ielen += 2;
      |   ~~~~~~^~~~
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_p2p.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_tdls.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_br_ext.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_iol.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_sreset.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_btcoex_wifionly.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_btcoex.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_beamforming.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_odm.o
  CC [M]  /home/username/dev/rtl8188eus/core/efuse/rtw_efuse.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/osdep_service.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/os_intfs.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/usb_intf.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/xmit_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/mlme_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/recv_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/wifi_regd.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_android.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_proc.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_mp.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_intf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_com.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_com_phycfg.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_phy.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_dm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_btcoex_wifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_btcoex.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_mp.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_mcc.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_hci/hal_usb.o
  CC [M]  /home/username/dev/rtl8188eus/hal/led/hal_usb_led.o
  CC [M]  /home/username/dev/rtl8188eus/hal/HalPwrSeqCmd.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/Hal8188EPwrSeq.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_sreset.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_hal_init.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_phycfg.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_rf6052.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_dm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_rxdesc.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_cmd.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/hal8188e_s_fw.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/hal8188e_t_fw.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/usb_halinit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_led.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_recv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/usb_ops_linux.o
  CC [M]  /home/username/dev/rtl8188eus/hal/efuse/rtl8188e/HalEfuseMask8188E_USB.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_debug.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_antdiv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_antdect.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_interface.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_hwconfig.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/halphyrf_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_edcaturbocheck.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dig.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_pathdiv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_rainfo.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dynamicbbpowersaving.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_powertracking_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_adaptivity.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_cfotracking.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_noisemonitor.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_acs.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_beamforming.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dfs.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_adc_sampling.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_kfree.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_ccx.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8723bwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8822bwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8821cwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_mac.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_bb.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_rf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halphyrf_8188e_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/phydm_regconfig8188e.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/hal8188erateadaptive.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/phydm_rtl8188e.o
  CC [M]  /home/username/dev/rtl8188eus/platform/platform_ops.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mp.o
  LD [M]  /home/username/dev/rtl8188eus/8188eu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/username/dev/rtl8188eus/8188eu.mod.o
  LD [M]  /home/username/dev/rtl8188eus/8188eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'

Installing and reboot

:~$ sudo make install
install -p -m 644 8188eu.ko  /lib/modules/4.19.118-Re4son-v7+/kernel/drivers/net/wireless/
/sbin/depmod -a 4.19.118-Re4son-v7+
:~$ sudo reboot

After reboot check if module is loaded

:~$ lsmod 
Module                  Size  Used by
fuse                  110592  3
binfmt_misc            20480  1
arc4                   16384  2
ath9k_htc              90112  0
ath9k_common           28672  1 ath9k_htc
ath9k_hw              512000  2 ath9k_htc,ath9k_common
ath                    32768  3 ath9k_htc,ath9k_hw,ath9k_common
mac80211              790528  1 ath9k_htc
lib80211               16384  0
cfg80211              643072  4 ath9k_htc,mac80211,ath,ath9k_common
8188eu                823296  0
rfkill                 28672  2 cfg80211
bcm2835_codec          36864  0
bcm2835_v4l2           45056  0
v4l2_mem2mem           24576  1 bcm2835_codec
bcm2835_mmal_vchiq     32768  2 bcm2835_codec,bcm2835_v4l2
v4l2_common            16384  1 bcm2835_v4l2
videobuf2_dma_contig    20480  1 bcm2835_codec
videobuf2_vmalloc      16384  1 bcm2835_v4l2
snd_bcm2835            28672  2
videobuf2_memops       16384  2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2         24576  3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common       45056  4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
snd_pcm                98304  1 snd_bcm2835
snd_timer              32768  1 snd_pcm
raspberrypi_hwmon      16384  0
snd                    73728  7 snd_timer,snd_bcm2835,snd_pcm
hwmon                  16384  1 raspberrypi_hwmon
videodev              200704  6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
media                  36864  3 bcm2835_codec,videodev,v4l2_mem2mem
vc_sm_cma              36864  1 bcm2835_mmal_vchiq
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
fixed                  16384  0
drm                   442368  0
drm_panel_orientation_quirks    16384  1 drm
ip_tables              24576  0
x_tables               32768  1 ip_tables
ipv6                  458752  34

...but monitor mode is not working! :(

:~$ sudo ifconfig wlan0 down
:~$ sudo airmon-ng check kill
Killing these processes:

  PID Name
  368 dhclient
  509 wpa_supplicant

:~$ sudo iw dev wlan0 set type managed
command failed: No such device (-19)

Any suggestion?

TheBallOfAeolus commented 4 years ago

Additional info

:~$ sudo lsusb | grep TL-WN722N
Bus 001 Device 005: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]
:~$  grep v2357p010C /lib/modules/`uname -r`/modules.alias
alias usb:v2357p010Cd*dc*dsc*dp*ic*isc*ip*in* 8188eu
alias usb:v2357p010Cd*dc*dsc*dp*ic*isc*ip*in* r8188eu
:~$  cat /etc/modprobe.d/realtek.conf
blacklist r8188eu
SisyphusIsntHappy commented 3 years ago

Builtin kernel driver for this chip-set is not equipped for monitor mode, you need separate driver by the aircrack-ng.

GetRektBoy724 commented 3 years ago

Hi everybody I have a Raspberry Pi 2 Model B Rev 1.1 and a TP-LINK TL-WN722N (EU) Ver.:3.20 (150 Mbps High Gain Wireless USB Adapter - White)

Installed: OS: Kali Linux Kernel: armv7l Linux 4.19.118-Re4son-v7+ CPU: ARMv7 rev 5 (v7l) @ 4x 900MHz

USB:

:~$ sudo lshw -C network
  *-network:0
       description: Wireless interface
       physical id: 2
       bus info: usb@1:1.5
       logical name: wlan0
       serial: d0:37:45:0e:6b:1a
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated

Compiling:

:~$ git clone https://github.com/quickreflex/rtl8188eus.git
Cloning into 'rtl8188eus'...
remote: Enumerating objects: 1312, done.
remote: Total 1312 (delta 0), reused 0 (delta 0), pack-reused 1312
Receiving objects: 100% (1312/1312), 4.64 MiB | 2.78 MiB/s, done.
Resolving deltas: 100% (777/777), done.
Updating files: 100% (588/588), done.

:~$ cd rtl8188eus/

:~$ make all
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.19.118-Re4son-v7+/build M=/home/username/dev/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
Makefile:614: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
make: *** [Makefile:1911: modules] Error 2

becuase of the Makefile:614: arch/armv7l/Makefile: No such file or directory I tried instead:

:~$ make all ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.118-Re4son-v7+/build M=/home/username/dev/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_cmd.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_security.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_debug.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_io.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ioctl_query.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ioctl_set.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ieee80211.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mlme.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mlme_ext.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mi.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_wlan_util.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_vht.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_pwrctrl.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_rf.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_recv.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_sta_mgt.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_ap.o
/home/username/dev/rtl8188eus/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/home/username/dev/rtl8188eus/core/rtw_ap.c:193:9: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  193 |   ielen += 2;
      |   ~~~~~~^~~~
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_p2p.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_tdls.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_br_ext.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_iol.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_sreset.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_btcoex_wifionly.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_btcoex.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_beamforming.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_odm.o
  CC [M]  /home/username/dev/rtl8188eus/core/efuse/rtw_efuse.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/osdep_service.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/os_intfs.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/usb_intf.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/xmit_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/mlme_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/recv_linux.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/wifi_regd.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_android.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/rtw_proc.o
  CC [M]  /home/username/dev/rtl8188eus/os_dep/linux/ioctl_mp.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_intf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_com.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_com_phycfg.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_phy.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_dm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_btcoex_wifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_btcoex.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_mp.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_mcc.o
  CC [M]  /home/username/dev/rtl8188eus/hal/hal_hci/hal_usb.o
  CC [M]  /home/username/dev/rtl8188eus/hal/led/hal_usb_led.o
  CC [M]  /home/username/dev/rtl8188eus/hal/HalPwrSeqCmd.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/Hal8188EPwrSeq.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_sreset.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_hal_init.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_phycfg.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_rf6052.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_dm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_rxdesc.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/rtl8188e_cmd.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/hal8188e_s_fw.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/hal8188e_t_fw.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/usb_halinit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_led.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_xmit.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/rtl8188eu_recv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/rtl8188e/usb/usb_ops_linux.o
  CC [M]  /home/username/dev/rtl8188eus/hal/efuse/rtl8188e/HalEfuseMask8188E_USB.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_debug.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_antdiv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_antdect.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_interface.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_hwconfig.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/halphyrf_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_edcaturbocheck.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dig.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_pathdiv.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_rainfo.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dynamicbbpowersaving.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_powertracking_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_adaptivity.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_cfotracking.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_noisemonitor.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_acs.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_beamforming.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_dfs.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_adc_sampling.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_kfree.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/phydm_ccx.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8723bwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8822bwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/btc/halbtc8821cwifionly.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_mac.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_bb.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halhwimg8188e_rf.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/halphyrf_8188e_ce.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/phydm_regconfig8188e.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/hal8188erateadaptive.o
  CC [M]  /home/username/dev/rtl8188eus/hal/phydm/rtl8188e/phydm_rtl8188e.o
  CC [M]  /home/username/dev/rtl8188eus/platform/platform_ops.o
  CC [M]  /home/username/dev/rtl8188eus/core/rtw_mp.o
  LD [M]  /home/username/dev/rtl8188eus/8188eu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/username/dev/rtl8188eus/8188eu.mod.o
  LD [M]  /home/username/dev/rtl8188eus/8188eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.118-Re4son-v7+'

Installing and reboot

:~$ sudo make install
install -p -m 644 8188eu.ko  /lib/modules/4.19.118-Re4son-v7+/kernel/drivers/net/wireless/
/sbin/depmod -a 4.19.118-Re4son-v7+
:~$ sudo reboot

After reboot check if module is loaded

:~$ lsmod 
Module                  Size  Used by
fuse                  110592  3
binfmt_misc            20480  1
arc4                   16384  2
ath9k_htc              90112  0
ath9k_common           28672  1 ath9k_htc
ath9k_hw              512000  2 ath9k_htc,ath9k_common
ath                    32768  3 ath9k_htc,ath9k_hw,ath9k_common
mac80211              790528  1 ath9k_htc
lib80211               16384  0
cfg80211              643072  4 ath9k_htc,mac80211,ath,ath9k_common
8188eu                823296  0
rfkill                 28672  2 cfg80211
bcm2835_codec          36864  0
bcm2835_v4l2           45056  0
v4l2_mem2mem           24576  1 bcm2835_codec
bcm2835_mmal_vchiq     32768  2 bcm2835_codec,bcm2835_v4l2
v4l2_common            16384  1 bcm2835_v4l2
videobuf2_dma_contig    20480  1 bcm2835_codec
videobuf2_vmalloc      16384  1 bcm2835_v4l2
snd_bcm2835            28672  2
videobuf2_memops       16384  2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2         24576  3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common       45056  4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
snd_pcm                98304  1 snd_bcm2835
snd_timer              32768  1 snd_pcm
raspberrypi_hwmon      16384  0
snd                    73728  7 snd_timer,snd_bcm2835,snd_pcm
hwmon                  16384  1 raspberrypi_hwmon
videodev              200704  6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
media                  36864  3 bcm2835_codec,videodev,v4l2_mem2mem
vc_sm_cma              36864  1 bcm2835_mmal_vchiq
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
fixed                  16384  0
drm                   442368  0
drm_panel_orientation_quirks    16384  1 drm
ip_tables              24576  0
x_tables               32768  1 ip_tables
ipv6                  458752  34

...but monitor mode is not working! :(

:~$ sudo ifconfig wlan0 down
:~$ sudo airmon-ng check kill
Killing these processes:

  PID Name
  368 dhclient
  509 wpa_supplicant

:~$ sudo iw dev wlan0 set type managed
command failed: No such device (-19)

Any suggestion?

no, you don't need to manually compile this driver, if you're in Kali Linux, you can do

apt-get update
apt-get install realtek-rtl8188eus-dkms
SisyphusIsntHappy commented 3 years ago

Hi,

I can't increase tx power for this chipset using. I'm getting a

Error for wireless request "Set Tx Power" (8B26) : SET failed on device wlp0s20u2 ; Operation not permitted.

Would you know anything about that?