Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with tl-wn822n v4 #6

Closed
yoavst opened this Issue Jun 29, 2016 · 37 comments

Comments

Projects
None yet
@yoavst
Copy link

yoavst commented Jun 29, 2016

Ubuntu 16.04:

git clone https://github.com/Mange/rtl8192eu-linux-driver/
cd rtl8192eu-linux-driver
make # added an ignore to date error on makefile
sudo make install
reboot

lsusb:

bus 001: Device 003: ID 2357:0108

Have I missed a step?

Answer

@jeremyb31's repo does work.

git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
make
sudo make install
reboot

Then it will be shown on iwconfig, although on lsusb it will show as before.

If doesn't work try rfkill list all; lshw -c net

@Mange

This comment has been minimized.

Copy link
Owner

Mange commented Jun 29, 2016

I think that's all. Let me know if you figure it out so I can integrate
your patch.

I am not a kernel developer. This is just a mirror for the official driver
with some patches that I've found laying around the Web that made it
compile on my Raspberry Pi 2.

Den ons 29 juni 2016 13:31Yoav Sternberg notifications@github.com skrev:

Ubuntu 16.04:

git clone https://github.com/Mange/rtl8192eu-linux-driver/
cd rtl8192eu-linux-driver
make # added an ignore to date error on makefile
sudo make install
reboot

lsusb:

bus 001: Device 003: ID 2357:0108

Have I missed a step?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the
thread
https://github.com/notifications/unsubscribe/AAAGP-FQIeEOdaEok_NriQ25qL105uM9ks5qQlejgaJpZM4JBCTl
.

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jun 29, 2016

Well, I'm Java developer, not C developer :(

I've contacted TP-Link and asked them for help. If there is something useful to this repo, I'll reopen the issue.

@yoavst yoavst closed this Jun 29, 2016

@Mange

This comment has been minimized.

Copy link
Owner

Mange commented Jun 29, 2016

Thank you. Good luck!

Den ons 29 juni 2016 19:10Yoav Sternberg notifications@github.com skrev:

Well, I'm Java developer, not C developer :(

I've contacted TP-Link and asked them for help. If there is something
useful to this repo, I'll reopen the issue.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAAGPzaJ6gm2mVPbUgY6k-nfwd2CwA_Oks5qQqcDgaJpZM4JBCTl
.

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jun 30, 2016

They've pointed that the driver should only work with Linux (kernel 2.6.18 ~ 3.10.10). So I've checked their driver on Ubuntu 12.04 and it does work. I'll ask them to work on an update.

@Mange

This comment has been minimized.

Copy link
Owner

Mange commented Jun 30, 2016

Thanks!

Den tor 30 juni 2016 20:30Yoav Sternberg notifications@github.com skrev:

They've pointed that the driver should only work with Linux (kernel
2.6.18 ~ 3.10.10). So I've checked their driver on Ubuntu 12.04 and it
does work. I'll ask them to work on an update.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAAGPz9KSdgv2_xzuRLNPQ6BAlUKY-iPks5qRAtCgaJpZM4JBCTl
.

@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Jul 11, 2016

Hello Mange this commit should work for yoavst
jeremyb31@56ccb6b

It was pulled from http://www.tp-link.com/res/down/soft/TL-WN821N(EU)_V5_160315_Linux.zip for a poster on ubuntuforums

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jul 12, 2016

I've installed your driver @jeremyb31 ,
+ {USB_DEVICE(0x2357, 0x0108),.driver_info = RTL8192E}, /* TP-Link - Cameo */

Bus 001 Device 003: ID 2357:0108
...

So it still doesn't recognize it as a wireless adapter.

Maybe it is because I've tried to install other drivers before?

@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Jul 16, 2016

Check
dkms status

There might be another version installed using dkms and causing issues. You can also check
modinfo 8192eu | grep 0108

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jul 16, 2016

root@ubuntu:~# dkms status
root@ubuntu:~# lsusb
Bus 001 Device 002: ID 2357:0108  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@ubuntu:~# modinfo 8192eu | grep 0108
alias:          usb:v2357p0108d*dc*dsc*dp*ic*isc*ip*in*
root@ubuntu:~# lsmod 
Module                  Size  Used by
cfg80211              565248  0
8192eu                929792  0
vmw_vsock_vmci_transport    28672  1
vsock                  36864  2 vmw_vsock_vmci_transport
snd_ens1371            28672  2
snd_ac97_codec        131072  1 snd_ens1371
gameport               16384  1 snd_ens1371
ac97_bus               16384  1 snd_ac97_codec
coretemp               16384  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
aesni_intel           167936  0
snd_pcm               106496  2 snd_ac97_codec,snd_ens1371
aes_x86_64             20480  1 aesni_intel
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  2 snd_ens1371,snd_seq_midi
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
lrw                    16384  1 aesni_intel
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
gf128mul               16384  1 lrw
snd                    81920  11 snd_ac97_codec,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_ens1371,snd_seq_device
glue_helper            16384  1 aesni_intel
vmw_balloon            20480  0
ablk_helper            16384  1 aesni_intel
joydev                 20480  0
input_leds             16384  0
soundcore              16384  1 snd
cryptd                 20480  2 aesni_intel,ablk_helper
serio_raw              16384  0
nfit                   32768  0
shpchp                 36864  0
vmw_vmci               65536  2 vmw_vsock_vmci_transport,vmw_balloon
8250_fintek            16384  0
i2c_piix4              24576  0
mac_hid                16384  0
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  2 hid_generic,usbhid
vmwgfx                237568  3
ttm                    98304  1 vmwgfx
drm_kms_helper        139264  1 vmwgfx
syscopyarea            16384  1 drm_kms_helper
psmouse               126976  0
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   360448  6 ttm,drm_kms_helper,vmwgfx
mptspi                 24576  2
mptscsih               40960  1 mptspi
ahci                   36864  0
libahci                32768  1 ahci
e1000                 135168  0
mptbase               102400  2 mptspi,mptscsih
scsi_transport_spi     32768  1 mptspi
pata_acpi              16384  0
fjes                   28672  0
@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Jul 16, 2016

rfkill list all; lshw -c net

It should work as the module has the correct alias line

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jul 16, 2016

Oh, well. It does work! Just not shown on lsusb as recognized. Thank you very much!

@Mange I think it worth merging ;)

@Mange

This comment has been minimized.

Copy link
Owner

Mange commented Jul 16, 2016

Do you have a link to the source code for it? I could check it out then.

Den lör 16 juli 2016 17:22Yoav Sternberg notifications@github.com skrev:

Oh, well. It does work! Just not shown on lsusb as recognized. Thank you
very much!

@Mange https://github.com/Mange I think it worth merging ;)


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAGP874nXAEPydldyz6_3pOxXPHxtQfks5qWPdGgaJpZM4JBCTl
.

@yoavst

This comment has been minimized.

@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Jul 17, 2016

@Mange you just need to add jeremyb31@56ccb6b

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Jul 17, 2016

Sent a pull request from jermy's repo.

@Mange

This comment has been minimized.

Copy link
Owner

Mange commented Jul 17, 2016

Thanks. I'll get to it the next time I'm at my PC.

Den sön 17 juli 2016 15:55Yoav Sternberg notifications@github.com skrev:

Sent a pull request from jermy's repo.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAGP_pBdYSTH-CJ93UH6CYrsJCAEUanks5qWjRUgaJpZM4JBCTl
.

@RattusSolarus

This comment has been minimized.

Copy link

RattusSolarus commented Jul 23, 2016

Thanks jeremyb31. Works perfectly with TP-Link WN822 V4 on MX-15 with Debian kernel 4.6.0-0.bpo.1-amd64 .
I was tearing my hair out trying to compile the download from TP-Link site.

@dexter1989

This comment has been minimized.

Copy link

dexter1989 commented Sep 5, 2016

i have this tp link tl wn822n V4 iam using kali linux 2016.1 but wlan0 not showing up could any one give me any information to help me install this wn822n v4 i appreciate it

i used this drivers but nothing happend
http://www.tp-link.com/en/download/TL-WN822N.html#Driver
https://github.com/jeremyb31/rtl8192eu-linux-driver
https://github.com/Mange/rtl8192eu-linux-driver/

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Sep 5, 2016

git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
sudo make
sudo make install
@dexter1989

This comment has been minimized.

Copy link

dexter1989 commented Sep 6, 2016

@yoavst i installed this driver git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
but the wireless is working so slow, any help about that please .

@yoavst

This comment has been minimized.

Copy link
Author

yoavst commented Sep 8, 2016

I used this driver only for vm and for kali Linux, so idk.

@rbuzio

This comment has been minimized.

Copy link

rbuzio commented Nov 29, 2016

Thank you guys! This driver worked perfectly with my TL-WN822N EU/4.0 on Mint 17.3 with kernel 3.19.
A life saver ;)

@codefreeze8

This comment has been minimized.

Copy link

codefreeze8 commented Nov 29, 2016

Works great iwth TL-WN822N on Ubuntu 16.04! Thanks guys!

@MatthieuCotton

This comment has been minimized.

Copy link

MatthieuCotton commented Dec 15, 2016

Thank you all !
It works great with :

git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
sudo make
sudo make install

Thank you again. Just a small problem, when I reboot my PC I have to unplug/replug my dongle to have the wifi ? Someone has an issue ? Thank you again

@frankipl

This comment has been minimized.

Copy link

frankipl commented May 23, 2017

Hi
I have just compiled this driver for TL-WN822N Ver. 4.0 and it works.
However, I cannot start hostapd with this card as it says that it cant set the device into AP mode.
Also iw list does not shows any data (I was looking for Supported interface modes: AP)
Can this card work as AP ?

Best Regards
Marek

@CGarces

This comment has been minimized.

Copy link
Collaborator

CGarces commented May 23, 2017

Hi @frankipl, can you please test this?

@gilcu3

This comment has been minimized.

Copy link

gilcu3 commented May 23, 2017

@frankipl I have exactly the same device, and the driver posted by @CGarces works like a charm for me in AP mode.

@frankipl

This comment has been minimized.

Copy link

frankipl commented May 23, 2017

Hi
With this module it works as an AP.
However, I need to connect 80 devices to my AP, and it seems that this card is only able to connect 19, after connecting 19 devices it does not connect any more, hostapd freezes, even command strace does not show any data, I need to kill -9 hostapd - no... command doesn't work, reboot is needed.

With this config I have tested 6 different usb based wifi cards, so.... it is not easy ;)

Best Regards
Marek

@Gourlae

This comment has been minimized.

Copy link

Gourlae commented Jul 25, 2017

Hello,
I tried to install it, but when I enter the make command, this error is showing up:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-kali4-amd64/build M=/root/rtl8192eu-linux-driver modules make[1]: *** /lib/modules/4.9.0-kali4-amd64/build: No such file or directory. Stop. Makefile:1335: recipe for target 'modules' failed make: *** [modules] Error 2
Anyone knows what to do?
Thank you

@FFY00

This comment has been minimized.

Copy link

FFY00 commented Jul 28, 2017

@frankipl you can use multiple APs with the same ESSID. Don't know what it's your goal but maybe this would acheive it.

@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Jul 30, 2017

@Gourlae You need the linux-header files to compile. https://unix.stackexchange.com/a/328663/102332
Might be enough help

@mdsadiqueinam

This comment has been minimized.

Copy link

mdsadiqueinam commented Oct 8, 2017

@jeremyb31
I have kali linux 2017.2
I want use my Tp-link tl-wn822n v 4.0
rtl8192EU firmware I tried to install the driver using this
git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
sudo make
sudo make install
But when I use make it shows some error
Like
Make:***[modules] Error 2
Please help

@mdsadiqueinam

This comment has been minimized.

Copy link

mdsadiqueinam commented Oct 8, 2017

root@kali:~# cd rtl8192eu-linux-driver
root@kali:~/rtl8192eu-linux-driver# make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.12.0-kali2-686-pae/build M=/root/rtl8192eu-linux-driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.12.0-kali2-686-pae'
  CC [M]  /root/rtl8192eu-linux-driver/core/rtw_cmd.o
In file included from /root/rtl8192eu-linux-driver/include/drv_types.h:32:0,
                 from /root/rtl8192eu-linux-driver/core/rtw_cmd.c:22:
/root/rtl8192eu-linux-driver/include/osdep_service.h: In function ‘thread_enter’:
/root/rtl8192eu-linux-driver/include/osdep_service.h:342:2: error: implicit declaration of function ‘allow_signal’ [-Werror=implicit-function-declaration]
  allow_signal(SIGTERM);
  ^~~~~~~~~~~~
/root/rtl8192eu-linux-driver/include/osdep_service.h: In function ‘flush_signals_thread’:
/root/rtl8192eu-linux-driver/include/osdep_service.h:352:6: error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration]
  if (signal_pending (current))
      ^~~~~~~~~~~~~~
/root/rtl8192eu-linux-driver/include/osdep_service.h:354:3: error: implicit declaration of function ‘flush_signals’ [-Werror=implicit-function-declaration]
   flush_signals(current);
   ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.12.0-kali2-common/scripts/Makefile.build:307: recipe for target '/root/rtl8192eu-linux-driver/core/rtw_cmd.o' failed
make[4]: *** [/root/rtl8192eu-linux-driver/core/rtw_cmd.o] Error 1
/usr/src/linux-headers-4.12.0-kali2-common/Makefile:1532: recipe for target '_module_/root/rtl8192eu-linux-driver' failed
make[3]: *** [_module_/root/rtl8192eu-linux-driver] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.12.0-kali2-686-pae'
Makefile:1335: recipe for target 'modules' failed
make: *** [modules] Error 2

please help

@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Oct 10, 2017

Delete the current rtl8192eu-linux-driver directory and use Mange's version as it appears to have the patches to fix those errors

@mdsadiqueinam

This comment has been minimized.

Copy link

mdsadiqueinam commented Oct 10, 2017

I want to know something about that Tp-link tl-wn822n which is rtl8192EU chipset does this device support moniter mode or packet injection

@mdsadiqueinam

This comment has been minimized.

Copy link

mdsadiqueinam commented Oct 10, 2017

A new issue arrived while installing mange's driver

root@kali:~/rtl8192eu-linux-driver# make install
install -p -m 644 8192eu.ko  /lib/modules/4.12.0-kali2-686-pae/kernel/drivers/net/wireless/
/sbin/depmod -a 4.12.0-kali2-686-pae
depmod: ERROR: fstatat(3, buil): No such file or directory
@jeremyb31

This comment has been minimized.

Copy link

jeremyb31 commented Oct 10, 2017

I would try
sudo depmod -a
See if any errors show or you can just add 8192eu to /etc/modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.