Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recent sources for rtl8192?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Tue Sep 22, 2015 2:28 pm    Post subject: recent sources for rtl8192? Reply with quote

Hi,

I ordered some usb-wifi sticks. however I got send the wrong ones and iam now stuck with 2 rtl8192eu devices that I cannot get to work.

Does anyone have a working source for them that compiles against a recent kernel? I really dont want to go back to 2.6 ;-)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 24, 2015 8:59 pm    Post subject: Reply with quote

Try a rebuild of a kernel-4.2 with menuconfig including:
Quote:
Networking support --->
-*- Wireless --->
--- Wireless
-M- cfg80211 - wireless configuration API
[*] cfg80211 wireless extensions compatibility
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Realtek rtlwifi family of devices --->
[*] Staging drivers --->
<M> Support for rtllib wireless devices
<M> Support for rtllib CCMP crypto
<M> Support for rtllib TKIP crypto
<M> Support for rtllib WEP crypto
<M> Realtek RTL8188EU Wireless LAN NIC driver
nl80211 driver may work; if not use wext
_________________
Defund the FCC.
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Sat Sep 26, 2015 2:20 pm    Post subject: Reply with quote

stupid question maybe....

wext and staging are not available in my 4.2 config

do they depend on something?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sun Sep 27, 2015 1:20 am    Post subject: Reply with quote

unfortunately I tracked off from rtl8192eu to rtl8188eu, vagaries of the aging mind, and gave a bad answer.
Answer to location and dependency information is below; extracted from menuconfig by typing / and then entering wext or staging in the dialog box that appears. This action searches menuconfig and prints the help for matching entries.
Quote:
Symbol: STAGING [=y]
Type : boolean
Prompt: Staging drivers
Location:
(1) -> Device Drivers
Defined at drivers/staging/Kconfig:1

Symbol: CFG80211_WEXT [=n]
Type : boolean
Prompt: cfg80211 wireless extensions compatibility
Location:
-> Networking support (NET [=y])
-> Wireless (WIRELESS [=y])
(1) -> cfg80211 - wireless configuration API (CFG80211 [=m])
Defined at net/wireless/Kconfig:177
Depends on: NET [=y] && WIRELESS [=y] && CFG80211 [=m]
Selects: WEXT_CORE [=y]


Symbol: CFG80211_WEXT_EXPORT [=n]
Type : boolean
Defined at net/wireless/Kconfig:186
Depends on: NET [=y] && WIRELESS [=y] && CFG80211 [=m]
Selected by: IPW2200 [=n] && NETDEVICES [=y] && WLAN [=y] && PCI [=y] && CFG80211 [=m] HERMES [=n] && NETDEVICES [=y] && WLAN [=y] && (PPC_PMAC PCI [=y] PCMCIA [=n]) && C


Symbol: WEXT_CORE [=y]
Type : boolean
Defined at net/wireless/Kconfig:4
Depends on: NET [=y] && WIRELESS [=y] && (CFG80211_WEXT [=n] WIRELESS_EXT [=y])
Selected by: CFG80211_WEXT [=n] && NET [=y] && WIRELESS [=y] && CFG80211 [=m]


Symbol: WEXT_PRIV [=y]
Type : boolean
Defined at net/wireless/Kconfig:16
Depends on: NET [=y] && WIRELESS [=y]
Selected by: PCMCIA_RAYCS [=n] && NETDEVICES [=y] && WLAN [=y] && PCMCIA [=n] AIRO [=n] && NETDEVICES [=y] && WLAN [=y] && CFG80211 [=m] && ISA_DMA_API [=y] && (PCI [=y] BRO


Symbol: WEXT_PROC [=y]
Type : boolean
Defined at net/wireless/Kconfig:8
Depends on: NET [=y] && WIRELESS [=y] && PROC_FS [=y] && WEXT_CORE [=y]

_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sun Sep 27, 2015 8:05 am    Post subject: Reply with quote

https://github.com/Mange/rtl8192eu-linux-driver compiles against kernel-3.18.16 but not kernel-4 and up. Whether it works I don't know no rtl8192eu chips here.
https://github.com/donahue95/rtl8192eu-linux-driver compiles against kernel-4 and up. whether it works I don't know no rtl8192eu chips here. I am not a kernel c coder but got the errors to go away.
I adapted a script I use for rtl8812au chips. You can login as root and create /root/rtl8192eu-script.sh containing
Quote:
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Please login as root, then try again" 1>&2
exit 1
fi

# Check for firmware
#if [ ! -e /lib/firmware/rtlwifi/rtl8192eufw.bin ]; then
# echo "/lib/firmware/rtlwifi/rtl8192eufw.bin is required; emerge linux-firmware and try again." 1>&2
# exit 1
#fi

# Difference between selected kernel and running kernel may be a problem.
eselected=$(eselect kernel list | awk '/\*/ {print $2}' | awk 'gsub("linux-", "")')
running=$(uname -r)
echo "Eselected kernel is: " $eselected
echo "Running kernel is: " $running
if [ "$running" != "$eselected" ]; then
echo "Please ensure the eselected kernel source and running kernel are the same version, then try again." 1>&2;
exit 1
fi

# If connected, get source code zip file.
WGET="/usr/bin/wget"
$WGET -q --tries=1 --timeout=1 http://www.google.com -O /tmp/google.idx &> /dev/null
if [ -s /tmp/google.idx ]; then
version=${eselected:0:1}
required_version="4"
wget -N -O rtl8192eu-linux-driver-master.zip https://github.com/donahue95/rtl8192eu-linux-driver/archive/master.zip
fi

# If a source code zip exists delete and replace the source code directory.
if [ -s /root/rtl8192eu-linux-driver-master.zip ]; then
if [[ -d "rtl8192eu-linux-driver-master" ]]; then
rm -rf rtl8192eu-linux-driver-master
fi
unzip rtl8192eu-linux-driver-master.zip
fi

# If source code directory exists, clean it, edit the makefile, make and install the module.
if [ -d "rtl8192eu-linux-driver-master" ]; then
cd rtl8192eu-linux-driver-master
make clean
make
insmod 8192eu.ko
if [ ! -d "/lib64/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192eu" ]; then
mkdir -p /lib64/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192eu
echo "rtl8192eu directory created."; 1>&2;
else
echo "rtl8192eu directory existed." 1>&2;
fi
cp -f 8192eu.ko /lib64/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192eu
depmod -a
echo "Connect the wireless usb device and reboot";
else
echo "Unable to find or create /root/rtl8192eu-linux-driver-master -> no internet connection, no rtl8192eu-linux-driver-master.zip file, no rtl8192eu-linux-driver-master directory.";
exit 1
fi
then chmod 0755 /root/rtl8192eu-script.sh then cd /root then run ./rtl8192eu-script.sh then install the dongle and reboot
_________________
Defund the FCC.


Last edited by DONAHUE on Fri May 05, 2017 1:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 568

PostPosted: Mon Oct 05, 2015 6:37 am    Post subject: Reply with quote

Thanks, I didnt find these before
They seem to work. However the module has low features. Hostapd, airmon etc dont work - so I'll use these usb sticks for client mode only.
Back to top
View user's profile Send private message
nondog
n00b
n00b


Joined: 05 May 2017
Posts: 3

PostPosted: Fri May 05, 2017 5:51 am    Post subject: Reply with quote

Does anyone know if the drivers specified by DONAHUE works with the 4.9 kernel under Gentoo? I'm fairly sure I tried this version and got compile errors. My last working kernel was 4.4 and the driver I was using with that compiled ok against the new kernel but I get no 'WiFi' button in Plasma-nm. Also iwconfig finds no wireless extensions. The interface shows up in ifconfig and I get messages (CTRL Alt F12) about the driver. The manufacturer is TP-Link and they are on my sh*t list now for their pathetic attempt at providing a Linux driver.

I would love to get the dongle working with my new kernel. Any help or guidance would be most appreciated.

Thanks.
Back to top
View user's profile Send private message
nondog
n00b
n00b


Joined: 05 May 2017
Posts: 3

PostPosted: Fri May 05, 2017 5:58 am    Post subject: Reply with quote

PS DONAHUE Are you suggesting WEXT can be used as an alternative for a working 8192eu? Please explain. Thanks.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri May 05, 2017 1:12 pm    Post subject: Reply with quote

I routinely enable
Quote:
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_WEXT_SPY=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211_WEXT=y
in the kernel. I then try to use the nl80211 driver as my first choice but am not surprised if I have to revert to wext. I don't own a 8192eu so I can't answer "does it work" questions.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri May 05, 2017 1:49 pm    Post subject: Reply with quote

I just reran the script I posted above and found I needed a change to get a successful run.
This machine lacked the rtlwifi directory needed to execute the line mkdir /lib64/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192eu.
I have edited the script above to mkdir -p /lib64/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192eu to correct that problem.
The script now builds and installs the module for me without error. Does it work? I don't know.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
nondog
n00b
n00b


Joined: 05 May 2017
Posts: 3

PostPosted: Mon May 08, 2017 10:51 am    Post subject: Thanks Reply with quote

Thanks DONAHUE. I'll give it a try sometime and post the results here.
Back to top
View user's profile Send private message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 102
Location: Berlin, Old Europe

PostPosted: Tue Oct 03, 2017 12:54 pm    Post subject: Reply with quote

Have exactly that problem; bought a recent TP-Link WN-WL821N USB thumbsized wifi stick which is rev. 5 and has 2357:0107 ids according to lsusb. TL;DR that TP-Link wifi stick sells for years now, and while the old (2013, 2014) models "just work" the 2017 revision 5 does not.

Problem: rtl8192eu is not in the kernel; I tried 4.4.75 and 4.9.34 and can check related drivers rtl8192cu but no direct match.

This is dmesg output

Code:
[  107.855541] usb 3-1: new high-speed USB device number 3 using ehci-pci
[  107.971153] usb 3-1: New USB device found, idVendor=2357, idProduct=0107
[  107.971168] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  107.971195] usb 3-1: Product: 802.11n NIC
[  107.971202] usb 3-1: Manufacturer: Realtek
[  107.971208] usb 3-1: SerialNumber: 00e04c000001


So after running DONAHUE's script I get this

Code:
[  898.764312] RTL871X: module init start
[  898.764318] RTL871X: rtl8192eu v4.3.1.1_11320.20140505
[  898.764367] usbcore: registered new interface driver rtl8192eu
[  898.764369] RTL871X: module init ret=0


I inserted 8192eu into /etc/modules-load.d/rtl8192eu.conf, and it loads (verified by looking at lsmod output). But still no new interface appears, not after reboot and not without.

Feel I'm stuck here. What can I try next? Other kernels?
_________________
--
Gentoo from 2004.3

Oh, took a new home in the fediverse: find me in the stream on pluspora.com: https://pluspora.com/tags/gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Tue Oct 03, 2017 2:28 pm    Post subject: Reply with quote

raddaqii,

Is the firmware loading?
Its in linux-firmware.

-- edit --

The section of the script that checks for the firmware is commented out.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum