rtl8192eu module

rtl8192eu module

Postby hviaene » Jul 4th, '18, 10:37

I have a laptop wit an inbuilt Intel Pro wireless 2200 device. This works more or less OK, occasional dropouts.
But I wanted to test a Dlink USB Nano adapter. Until recently, the driver module rtl8192eu did not build at boot time, there was a known problem (kernel related if i remember well). I did not pay much attention to it anymore, until last week I realized the delay at boot time for building the driver did not occur anymore. That seems to be OK now.

So I'm back at testing this USB device. But still problems.
At boot, the Intel is by default initiated. I do not want that and after googling, I blacklisted the ipw2200 module. Still no joy. I then found out that the module used on the USB Nano adapter is still the rtl8xxxu module, not the newer rtl8192eu. Googling again, blacklisted the rtl8xxxu, rebooted, but now no module is loaded for the device. Googling to find how to enforce a module on a device did not make me anything wiser quickly, although I think it must be possible.

Can anyone put me on the right track??
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: rtl8192eu module

Postby jiml8 » Jul 5th, '18, 17:40

While I am sure there is a more modern way, the traditional way is to list the driver you want loaded in /etc/modules.

Put the name of the driver in, one driver per line.

As an example, here's mine:
Code: Select all
loop
asus_atk0110
vmci
8021q


Loop made it in there some years ago when there was a bug in mageia and the loop driver wasn't started at boot time. I'm sure that is fixed by now, but I never went back to remove it.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: rtl8192eu module

Postby doktor5000 » Jul 5th, '18, 18:09

While you can use that to load a module, you cannot use it to the best of my knowledge to influence the ordering if there are multiple drivers for a given device.
This is determined usually by /lib/modules/$(uname -r)/modules.alias which basically contains the PCI IDs - see e.g. https://wiki.archlinux.org/index.php/Modalias

It is pretty easy to add a module into a different path which is not /lib/modules/$(uname -r) and have that loaded with a higher priority, but I'd have to check on an actual mga system on how to influence this for the default modules that come with the distro kernel.
The man pages for depmod or maybe modprobe and the related man pages may provide some hints in the meantime, but that requires quite some reading, so if you're up to it, give it a go.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rtl8192eu module

Postby jiml8 » Jul 5th, '18, 19:18

The rtl9192EU is a very different beast than the rtl8192CU or any of the rtl8188 chips, so it has its own driver and the driver used for those other variants (rtl8xxxu) can safely be blacklisted. If that driver is blacklisted, then it should not be attached and there should be no trouble with order of attachment.

Actually, rtl8xxxu should refuse to attach to the 8192EU. If it will attach, this is a bug in the driver.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: rtl8192eu module

Postby hviaene » Jul 6th, '18, 17:13

The problem is that the device vendor 2001 part 3319 is not listed in modinfo rtl8192cu (rtl8192eu seems to be firmware). The website of DLink points to that driver, and has been provided in 2017. So I guess somehow this should work.
I downloaded the driver from the DLink site and tried to "make" , but that throws 3 errors "implicit function declaration".
Manually editing the module.alias is a brigde too far, isn't it??
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: rtl8192eu module

Postby doktor5000 » Jul 6th, '18, 18:21

This gets more and more confusing, from the description.

Can you please at the very least add the output of
Code: Select all
lspcidrake -v
lspci -vnn

and indicate which device it is that you're referring to?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rtl8192eu module

Postby jiml8 » Jul 6th, '18, 20:30

rtl8192cu and rtl8192eu are different chips. Neither are firmware, although both need to have firmware uploaded to them from the host.

I was just reading the driver source provided with the mageia kernel, and it appears that the rtl8192eu is supposed to be supported by the rtl8xxxu driver. I will note, though, that the Kconfig file does not list the 8192EU as a supported chip, and there are some comments in the driver code that make me think this is a bit experimental.

Now, I have a lot of experience with these particular chips, but almost exclusively in a FreeBSD environment. I do have an 8192eu sitting here, though, and I plugged it into my workstation to see what would happen. The kernel promptly loaded the rtl8xxxu driver for it. My networking setup on the workstation is not conducive to easily testing this type of device; I use my workstation for other things. Most particularly, I do not use network manager on my workstation, so when the device was identified, no interface appeared when I did ifconfig. I would have to manually set that up and I don't really know how to and don't want to take the time to figure it out.

So, I plugged it into my laptop which runs OpenSUSE Leap 15 and does use network manager. My laptop promptly identified the device and a new interface (wlan4) appeared when I did an ifconfig.

I attempted to connect using this wifi dongle to two different access points which are available to me, and the device would not connect, although all configuration looked correct. According to the journal, it was failing authentication, although all of that was defined correctly.

So, I can confirm that the rtl8xxxu driver is the correct one, but it does not appear to work.

Now, on FreeBSD, I found that the driver that worked for the 8192CU would not attach to the 8192EU, and I altered that driver so it would attach, and it then crashed the kernel when it attached. I did not pursue it further; we are now using 8188CU, 8188CUS, and 8192CU chips in our product and not using the 8192EU.

The 8192EU is a new chip and I don't think support is complete for Linux. I know it works in Windows and I think it works in OS-X but I am not certain of that.

I suggest you get a different dongle. The RTL8192CU does work with Linux.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: rtl8192eu module

Postby hviaene » Jul 7th, '18, 11:08

The device as stated in my OP is a DLink N Nano USB wifi adapter.
Code: Select all
# lspcidrake -v
Card:Intel 810 and later: Intel Corporation|82852/855GM Integrated Graphics Device [DISPLAY_OTHER] (vendor:8086 device:3582 subv:1014 subd:0562) (rev: 02)
uhci_hcd        : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 [SERIAL_USB] (vendor:8086 device:24c4 subv:1014 subd:052d) (rev: 01)
yenta_socket    : Texas Instruments|PCI1510 PC card Cardbus Controller [BRIDGE_CARDBUS] (vendor:104c device:ac56 subv:3000 subd:0000)
lpc_ich         : Intel Corporation|82801DBM (ICH4-M) LPC Interface Bridge [BRIDGE_ISA] (vendor:8086 device:24cc) (rev: 01)
unknown         : Intel Corporation|82852/82855 GM/GME/PM/GMV Processor to I/O Controller [SYSTEM_OTHER] (vendor:8086 device:3584 subv:1014 subd:055d) (rev: 02)
ehci_pci        : Intel Corporation|82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller [SERIAL_USB] (vendor:8086 device:24cd subv:1014 subd:052e) (rev: 01)
Card:Intel 810 and later: Intel Corporation|82852/855GM Integrated Graphics Device [DISPLAY_VGA] (vendor:8086 device:3582 subv:1014 subd:0562) (rev: 02)
unknown         : Intel Corporation|82852/82855 GM/GME/PM/GMV Processor to I/O Controller [SYSTEM_OTHER] (vendor:8086 device:3585 subv:1014 subd:055e) (rev: 02)
snd_intel8x0m   : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller [COMMUNICATION_MODEM] (vendor:8086 device:24c6 subv:1014 subd:0559) (rev: 01)
e100            : Intel Corporation|82801DB PRO/100 VE (MOB) Ethernet Controller [NETWORK_ETHERNET] (vendor:8086 device:103d subv:1014 subd:0522) (rev: 81)
uhci_hcd        : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 [SERIAL_USB] (vendor:8086 device:24c2 subv:1014 subd:052d) (rev: 01)
uhci_hcd        : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 [SERIAL_USB] (vendor:8086 device:24c7 subv:1014 subd:052d) (rev: 01)
ata_piix        : Intel Corporation|82801DBM (ICH4-M) IDE Controller [STORAGE_IDE] (vendor:8086 device:24ca subv:1014 subd:052d) (rev: 01)
unknown         : Intel Corporation|PRO/Wireless 2200BG [Calexico2] Network Connection [NETWORK_OTHER] (vendor:8086 device:4220 subv:8086 subd:2712) (rev: 05)
unknown         : Intel Corporation|82852/82855 GM/GME/PM/GMV Processor to I/O Controller [BRIDGE_HOST] (vendor:8086 device:3580 subv:1014 subd:055c) (rev: 02)
i2c_i801        : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:24c3 subv:1014 subd:052d) (rev: 01)
shpchp          : Intel Corporation|82801 Mobile PCI Bridge [BRIDGE_PCI] (vendor:8086 device:2448) (rev: 81)
snd_intel8x0    : Intel Corporation|82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:8086 device:24c5 subv:1014 subd:055f) (rev: 01)
hub             : Linux 4.14.50-desktop-2.mga6 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Terminus Technology Inc.|USB 2.0 Hub [Hub|Unused|Full speed (or root) hub] (vendor:1a40 device:0101)
usbhid          : Logitech|USB Optical Mouse [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:046d device:c05a)
rtl8xxxu        : Realtek|Wireless N Nano USB Adapter (vendor:2001 device:3319)
hub             : Linux 4.14.50-desktop-2.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub             : Linux 4.14.50-desktop-2.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub             : Linux 4.14.50-desktop-2.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
SMBIOS version fixup (2.33 -> 2.3).
hid_generic     : Logitech USB Optical Mouse

# lspci -vnn
does not show the device
and
Code: Select all
# journalctl -b | grep rtl81
jul 07 10:35:26 mach7.hviaene.thuis systemd-modules-load[471]: Inserted module 'rtl8192cu'
jul 07 10:35:26 mach7.hviaene.thuis kernel: usbcore: registered new interface driver rtl8192cu
jul 07 10:35:39 mach7.hviaene.thuis kernel: usb 1-4: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
jul 07 10:35:40 mach7.hviaene.thuis kernel: usb 1-4: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin

All this is when the rtl8xxxu is not blacklisted
and not understanding why:
Code: Select all
# modinfo rtl8192cu
filename:       /lib/modules/4.14.50-desktop-2.mga6/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/rtl8192cu.ko.xz
firmware:       rtlwifi/rtl8192cufw_TMSC.bin
firmware:       rtlwifi/rtl8192cufw_B.bin
firmware:       rtlwifi/rtl8192cufw_A.bin
firmware:       rtlwifi/rtl8192cufw.bin

.... but the device in question is not listed.
Code: Select all
# modinfo rtl8192eu
modinfo: ERROR: Module rtl8192eu not found.
?????
Last edited by isadora on Jul 7th, '18, 11:31, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: rtl8192eu module

Postby hviaene » Jul 7th, '18, 11:53

When I reboot with the rtl8xxxu blacklisted
Code: Select all
# lspcidrake -v
unknown         : Realtek|Wireless N Nano USB Adapter (vendor:2001 device:3319)

Code: Select all
# lspci -vnn

nothing there on the device
Code: Select all
# journalctl -b | grep rtl81
jul 07 11:11:25 mach7.hviaene.thuis systemd-modules-load[443]: Inserted module 'rtl8192cu'
jul 07 11:11:25 mach7.hviaene.thuis kernel: usbcore: registered new interface driver rtl8192cu

No wifi whatsoever (I blacklisted the Intel driver ipw2200)
Last edited by doktor5000 on Jul 7th, '18, 14:36, edited 1 time in total.
Reason: added code tags
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: rtl8192eu module

Postby hviaene » Jul 7th, '18, 13:41

Went to check in MCC which "rtl" packages were installed, and found dkms-rtl8192cu and dkms-rtl8192eu not installed. Installed both, rebooted.
Nothing changed on the lspcidrake and lspci commands, but
Code: Select all
# journalctl -b | grep rtl81
jul 07 11:59:54 mach7.hviaene.thuis systemd-modules-load[437]: Failed to insert 'rtl8192cu': Operation not permitted
jul 07 12:00:11 mach7.hviaene.thuis dkms-autorebuild.sh[640]: rtl8192cu-fixes (1.10-0.git20160619.1.mga6): Installing module.
jul 07 12:00:11 mach7.hviaene.thuis dkms-autorebuild.sh[640]: dkms build -m rtl8192cu-fixes -v 1.10-0.git20160619.1.mga6 -k 4.14.50-desktop-2.mga6 -a i586 -q --no-clean-kernel
jul 07 12:01:41 mach7.hviaene.thuis dkms-autorebuild.sh[640]: rtl8192eu (4.3.1.1_11320.20140505-3.mga6): Installing module.
jul 07 12:01:41 mach7.hviaene.thuis dkms-autorebuild.sh[640]: dkms build -m rtl8192eu -v 4.3.1.1_11320.20140505-3.mga6 -k 4.14.50-desktop-2.mga6 -a i586 --no-prepare-kernel --no-clean-kernel -q

and
Code: Select all
# journalctl -b -u network
jul 07 12:02:11 mach7.hviaene.thuis network[6155]: Bringing up interface wlp0s29f7u4:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] rtl8xxxu device wlp0s29f7u4 does not seem to be present, delaying initialization.
jul 07 12:02:11 mach7.hviaene.thuis /etc/sysconfig/network-scripts/ifup-eth[6653]: rtl8xxxu device wlp0s29f7u4 does not seem to be present, delaying initialization.
jul 07 12:02:11 mach7.hviaene.thuis network[6155]: [FAILED]

So, the system keeps going for the rtl8xxxu driver because this driver lists this device.
Last edited by doktor5000 on Jul 7th, '18, 14:37, edited 1 time in total.
Reason: added code tags
hviaene
 
Posts: 143
Joined: Oct 11th, '13, 10:41

Re: rtl8192eu module

Postby doktor5000 » Jul 7th, '18, 14:36

Please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest