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

v5.2.7 is found #8

Open
masterzorag opened this issue Dec 14, 2017 · 23 comments
Open

v5.2.7 is found #8

masterzorag opened this issue Dec 14, 2017 · 23 comments

Comments

@masterzorag
Copy link
Owner

Pushed initial unpack
https://github.com/masterzorag/RTL8192EU-linux/tree/v5.2.7?files=1
As seen here

@masterzorag
Copy link
Owner Author

We can cherry-pick our patches from already tested work for Realtek v4.4.1 driver so just start clean in a dedicated branch

@masterzorag
Copy link
Owner Author

masterzorag commented Dec 17, 2017

Managed to build with linux-4.13.15 and 4.14.7, pushed commits
@gilcu3 @nomadmzl Testing needed
@CGarces patches were ported since they does not apply cleanly: Realtek renamed some debug functions, or reordered defines; review is advised

@CGarces
Copy link
Contributor

CGarces commented Dec 17, 2017

Consider activate Travis on your repository, it's very usefully to test the current kernel compatibility.
See https://github.com/marketplace

@gilcu3
Copy link

gilcu3 commented Dec 18, 2017

Right now giving me this compilation error:

$ make
...
RTL8192EU-linux/os_dep/linux/ioctl_linux.c:13384:6: error: implicit declaration of function ‘is_compat_task’; did you mean ‘is_idle_task’? [-Werror=implicit-function-declaration]
  if (is_compat_task())
      ^~~~~~~~~~~~~~
      is_idle_task
cc1: some warnings being treated as errors
# uname -a
Linux pc 4.13.12-1-zen #1 ZEN SMP PREEMPT Wed Nov 8 21:53:04 UTC 2017 x86_64 GNU/Linux

@CGarces
Copy link
Contributor

CGarces commented Dec 18, 2017

@gilcu3 use this fix
CGarces/rtl8189ES_linux@ffcd753

@gilcu3
Copy link

gilcu3 commented Dec 19, 2017

Now I have tested monitor, station and ap modes, all working ok on kernel 4.14.
On the other side, any of you have tested concurrent mode (described in the docs)? I had tested it with 4.4.1 driver and it worked ok. With this one I get kernel errors and few minutes later computer dies.

@masterzorag
Copy link
Owner Author

@gilcu3 can you paste which kernel errors you get?
I don't have tested it yet, and not looked at concurrent mode at all...

@gilcu3
Copy link

gilcu3 commented Dec 19, 2017

I will post logs in a few minutes (after freezing my pc and restarting it). In order to compile it in that mode just add EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE in the corresponding block in Makefile

@gilcu3
Copy link

gilcu3 commented Dec 19, 2017

(today in different pc the OS didn't freeze but got the same kernel error)
EDIT: had to force reboot after some minutes (mysteriously right after clicking NetworkManager applet to check it was unresponsive)
https://pastebin.com/qhhcSKNi
you can find it from line 1823. it occurs right after using one interface in station mode and the other in ap mode.

@masterzorag
Copy link
Owner Author

hi, @gilcu3 a look at log points me to cfg80211_scan_done, NULL dereference
we have done a change there;

@gilcu3
Copy link

gilcu3 commented Dec 20, 2017

@masterzorag don't really know if that's the reason, nor how to fix it, nor test it :(, do you have any clue?

@masterzorag
Copy link
Owner Author

masterzorag commented Dec 20, 2017

Yes, we just patch to get the kernel interface compile fine, but since realtek driver supports just 4.6, we are not dealing with the (now) needed arguments (now we pass &info, but does we have any?)
Or better, there is something other to do with that?

@gilcu3
Copy link

gilcu3 commented Dec 21, 2017

well, I tested Mange's current branch, that had the same commit, and it worked ok. So, don't think that commit is the issue, unless it's an indirect consequence of it.

@masterzorag
Copy link
Owner Author

@gilcu3 I am getting issues with linux-4.14.y, I'm stick with 4.13.15
Can you check if does it matters in your test?

@masterzorag
Copy link
Owner Author

@CYIYO
Copy link

CYIYO commented Dec 26, 2017

The patch about cfg80211_scan_done issue is no problem, it doesn't need any other arguments.
8192eu newest formal release is 5.2.19.1.

@gilcu3
Copy link

gilcu3 commented Dec 26, 2017

@CYIYO where could we get it?
@masterzorag I will install and test with kernel 4.13 and report back... Did you have issues with concurrent mode or with the normal ones?
EDIT: got the same results with 4.13, after activating both interfaces, kernel error and a few minutes later computer frozen...

@Mjasnik
Copy link

Mjasnik commented Dec 27, 2017

I'm trying to use this driver for TP Link tl-wn822n v4 on my atom nas, which is AP as well.
For me everything compiles fine w/ kernel 4.4, had to add tp link ids and disable debug. I tried 4.14 as well, for that I used more patches some manually, but now they are referenced in this thread as well.
But with those 2 kernels and multiple driver versions, AP does not work for long. It silently dies, it works for some time, max was one day, usually 15-30 mins.
I suspect this is a power issue.

@masterzorag
Copy link
Owner Author

@gilcu3 I've moved testing to linux-4.14.7, normal use is working;
The issues I was referring was due compilation but fixed by last commit.
@Mjasnik look at Makefile and try disabling PowerSaving feature, also double check if your chip is 8192eu or another one
Also, is your nas so open to build and run linux-4.14? What does it run, OpenWRT?

@Mjasnik
Copy link

Mjasnik commented Dec 31, 2017

@masterzorag It's custom built a-lot-of-all-in-one box with 6 network interfaces :)
Driver says:
[279678.156856] RTL871X: CHIP TYPE: RTL8192E
[279678.159157] RTL871X: ReadChipVersion192e 0xF0 = 0xc441935
[279678.159168] RTL871X: Chip Version Info: CHIP_8192E_Normal_Chip_SMIC_B_CUT_2T2R_RomVer(0)

On tp link web site there is very similar driver to this, except it's for kernel 3.10. But as I said this driver works as well. Soon I'll get self powered usb hub to test it out.
I'm interested in @CYIYO comment about even newer version.

@masterzorag
Copy link
Owner Author

@Mjasnic, I had used connect dongle to an usb hub, selfpowered or not... if just another device I connect makes problem, usb gets resetted and wireless interface stopped working... so, I had moved dongle connected directly to pc;
And yes, there is a legendary newer version?

1 similar comment
@masterzorag
Copy link
Owner Author

@Mjasnic, I had used connect dongle to an usb hub, selfpowered or not... if just another device I connect makes problem, usb gets resetted and wireless interface stopped working... so, I had moved dongle connected directly to pc;
And yes, there is a legendary newer version?

@Mjasnik
Copy link

Mjasnik commented Jan 26, 2018

@masterzorag and others, I have somewhat success with my tplink 822 v4. Actually it did not matter wheter dongle is connected directly to pc or via self powered hub, it might get reset anyway.
So currently I run mac8... drivers, it's stable and running for weeks w/o issues. BUT, as son as I connect my dell laptop running linux to it, it crashes immediately. Android phones - no problems at all. I suspect it's due to ht features. I tried runing realtek drivers rtl871..., with these I can bring up AP but can not connect to it at all.
So it's sorta weird.
How do You run these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants