[SOLVED]How to build a Mageia 5 driver for Realtek rtl8192eu

[SOLVED]How to build a Mageia 5 driver for Realtek rtl8192eu

Postby datcha » Feb 14th, '16, 17:14

I have a USB WIFI adapter using a rtl8192eu chip (according to info found on https://sites.google.com/site/easylinux ... /reserve-7)

I found code to build a driver on the same page dating mostly from 2014, and I have another (apparently similar) version on a CD given with the adapter, dating 2013 and apparently a beta.
But neither works correctly when I try building my driver.

In viewtopic.php?f=8&t=676 jkerr82508 suggests to install the package kernel-desktop586-devel-latest, which did help another user. Since I am on a x86_64 architecture, I installed rather the package kernel-desktop-devel-latest .

This improved the driver building considerably (for both sources of driver code), but not enough.

Then I also modified the Makefile as suggested by MauRice in viewtopic.php?f=25&t=9071#p55089, for GCC version 4.9.2 of Mageia 5. I added the line

EXTRA_CFLAGS += -Wno-date-time

This does improve things a bit more. But the building still fails, and I am lost.

I also tried the package dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.rpm pointed to by MauRice in viewtopic.php?f=25&t=9071#p55089 but without success.

Can someone provide help, some additional magic to work the spell through. Preferably with details on how to do it.

I know there is a package with that driver available for Cauldron, but would that run or help for Mageia 5?

Thanks
Last edited by datcha on Feb 18th, '16, 02:06, edited 2 times in total.
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby doktor5000 » Feb 14th, '16, 19:29

datcha wrote:I also tried the package dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.rpm pointed to by MauRice in viewtopic.php?f=25&t=9071#p55089 but without success.

What was the error message or result?

And please at the very least provide the output of the following commands:

Code: Select all
lspcidrake -v


and, as root:
Code: Select all
ifconfig -a
rfkill list all
systemctl status network.service -a
journalctl -ab | grep -iE "fw|firmware|iwl|wifi|wire|80211"
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: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby datcha » Feb 14th, '16, 20:53

Thanks for replying, and sorry for being rather incompetent as to what info I should provide, and very probably incompetent on using RPM.

Here is the result of: lspcidrake -v with the deviced plugged in. I assumed you wanted only the Realtek part of it:
Code: Select all
$ lspcidrake -v | grep -i realtek
Unable to read modalias from /sys/bus/usb/devices/1-1/1-1.1/modalias
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:1849 subd:8168) (rev: 06)
usbcore         : Realtek|802.11n NIC (vendor:0bda device:818b)

I understand that the second answer is the USB WIFI adapter I want a driver for. The device 818b corresponds to the chipset RTL8192EU

Code: Select all
# ifconfig -a
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 70:71:bc:ed:c3:d5  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Boucle locale)
        RX packets 1295  bytes 118002 (115.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1295  bytes 118002 (115.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.32  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::1e4b:d6ff:fedc:9e7c  prefixlen 64  scopeid 0x20<link>
        ether 1c:4b:d6:dc:9e:7c  txqueuelen 1000  (Ethernet)
        RX packets 1005518  bytes 590293554 (562.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 714887  bytes 139028820 (132.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Code: Select all
# rfkill list all
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no


Code: Select all
# systemctl status network.service -a
* network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since mar. 2016-02-09 19:05:02 CET; 4 days ago
  Process: 856 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
   CGroup: /system.slice/network.service
           |- 1097 /sbin/ifplugd -I -b -i enp1s0
           |- 1152 /usr/sbin/wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplica...
           |- 1154 /sbin/ifplugd -I -b -i wlp3s0
           `-11769 dhclient -1 -q -lf /var/lib/dhclient/dhclient--wlp3s0.leas...

févr. 13 23:29:18 datcha.net ifplugd(wlp3s0)[1154]: Link beat detected.
févr. 13 23:29:29 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 13 23:29:30 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 13 23:29:30 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 28 seconds.
févr. 13 23:29:58 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 13 23:29:59 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 13 23:29:59 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 34657 seconds.
févr. 14 09:07:36 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 14 09:07:37 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 14 09:07:38 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 36016 seconds.


The script I took as I tried to (mis-)use the RPM package. I first had to delete some files from a previous attempt.
I used the flag -v. I have another with -vv, but it is very long.
Code: Select all
Le script a débuté sur dim. 14 févr. 2016 14:07:05 CET
>]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# date
dim. févr. 14 14:07:08 CET 2016
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# pwd
/home/lang/doc/wifi/usb-adapter-802.11N/maurice
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# rpm --install -v dkms-rtl8192eu-4.3.1.1-11320.20140505.no
arch.rpm
Préparation des paquets...
   paquet dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch déjà installé
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# rpm --erase dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.
rpm
erreur : le paquet dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.rpm n'est pas installé
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# rpm --erase dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.r
rpm




------------------------------
Deleting module version: 4.3.1.1-11320.20140505
completely from the DKMS tree.
------------------------------
Done.
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]# rpm --install -v dkms-rtl8192eu-4.3.1.1-11320.20140505.no
arch.rpm
Préparation des paquets...
dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch

Creating symlink /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/source ->
                 /usr/src/rtl8192eu-4.3.1.1-11320.20140505

DKMS: add Completed.

Preparing kernel 4.1.15-desktop-2.mga5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....
'make' KVER=4.1.15-desktop-2.mga5.....(bad exit status: 2)

Error! Bad return status for module build on kernel: 4.1.15-desktop-2.mga5 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/ for more information.

Error! Could not locate 8192eu.ko.xz for module rtl8192eu in the DKMS tree.
You must run a dkms build for kernel 4.1.15-desktop-2.mga5 (x86_64) first.
attention : %post(dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch) scriptlet échoué, état de sortie 4
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/maurice[root@datcha maurice]#
]0;lang@datcha:/home/lang/doc/wifi/usb-adapter-802.11N/mauriceVous avez du nouveau courrier dans /var/spool/mail/lang
[root@datcha maurice]# exit

Script terminé sur dim. 14 févr. 2016 14:45:45 CET

The script gives the date and time at the beginning: 14 févr. 2016 14:07:05 CET (I forgot to terminate the script immediately).

I give a longer period for the journal, as there is almost nothing for today, when I tried the package (after other attempts yesterday).

But as I am writing this, I realize that your grep selection on the journal gives no answer for the concerned time period.
Code: Select all
# journalctl -ab | grep -iE "fw|firmware|iwl|wifi|wire|80211"
.......
.......
févr. 13 23:28:15 datcha.net kernel: cfg80211: Calling CRDA for country: FR
févr. 13 23:28:15 datcha.net kernel: cfg80211: Regulatory domain changed to country: FR
févr. 13 23:28:15 datcha.net kernel: cfg80211:  DFS Master region: ETSI
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
févr. 13 23:28:15 datcha.net kernel: cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211: Calling CRDA to update world regulatory domain
févr. 13 23:29:12 datcha.net kernel: cfg80211: World regulatory domain updated:
févr. 13 23:29:12 datcha.net kernel: cfg80211:  DFS Master region: unset
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211: Calling CRDA for country: FR
févr. 13 23:29:12 datcha.net kernel: cfg80211: Regulatory domain changed to country: FR
févr. 13 23:29:12 datcha.net kernel: cfg80211:  DFS Master region: ETSI
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
févr. 13 23:29:12 datcha.net kernel: cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 13 23:29:13 datcha.net mandi[2858]: handling method call 'GetMode' on interface 'org.mageia.monitoring.ifw'
févr. 14 13:59:29 datcha.net drakhardware[21869]: id2edd: 0x00000000=>/sys/firmware/edd/int13_dev80
                                                   wireless-regdb aoss crda iw wireless-tools alsa-utils rfkill wpa_supplicant lib64alsa-plugins
févr. 14 14:01:01 datcha.net drakhardware[22049]: id2edd: 0x00000000=>/sys/firmware/edd/int13_dev80
                                                   wpa_supplicant iw aoss rfkill alsa-utils wireless-regdb wireless-tools crda lib64alsa-plugins
févr. 14 14:04:23 datcha.net drakhardware[25580]: id2edd: 0x00000000=>/sys/firmware/edd/int13_dev80
                                                   iw wpa_supplicant wireless-regdb alsa-utils aoss rfkill lib64alsa-plugins wireless-tools crda
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby doktor5000 » Feb 14th, '16, 22:09

datcha wrote:wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.32 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::1e4b:d6ff:fedc:9e7c prefixlen 64 scopeid 0x20<link>
ether 1c:4b:d6:dc:9e:7c txqueuelen 1000 (Ethernet)
RX packets 1005518 bytes 590293554 (562.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 714887 bytes 139028820 (132.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


févr. 13 23:29:18 datcha.net ifplugd(wlp3s0)[1154]: Link beat detected.
févr. 13 23:29:29 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 13 23:29:30 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 13 23:29:30 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 28 seconds.
févr. 13 23:29:58 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 13 23:29:59 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 13 23:29:59 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 34657 seconds.
févr. 14 09:07:36 datcha.net dhclient[11769]: DHCPREQUEST on wlp3s0 to 192.168.0.1 port 67
févr. 14 09:07:37 datcha.net dhclient[11769]: DHCPACK from 192.168.0.1
févr. 14 09:07:38 datcha.net dhclient[11769]: bound to 192.168.0.32 -- renewal in 36016 seconds.


Well, there is already a wireless interface which has an IP adress. Do you have another wireless adapter already configured?
That's why I've asked for the complete output of
Code: Select all
lspcidrake -v



Also please show the content of the mentioned log file via running and posting the output of
Code: Select all
cat /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/make.log
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: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby datcha » Feb 15th, '16, 00:27

I guess I should not assume anything.

Actually I have another wireless adapter already configured. But it is apparently not very good and is forcing me to move the computer in an inconvenient place. That is why I am trying to configure a new adapter, hopefully with better performance.

Code: Select all
$ lspcidrake -v
unknown         : Intel Corporation|1st Generation Core i3/5/7 Processor Reserved [BRIDGE_HOST] (vendor:8086 device:2d13 subv:1849 subd:2c62) (rev: 05)
unknown         : Intel Corporation|1st Generation Core i3/5/7 Processor Reserved [BRIDGE_HOST] (vendor:8086 device:2d12 subv:1849 subd:2c62) (rev: 05)
unknown         : Intel Corporation|1st Generation Core i3/5/7 Processor QPI Physical 0 [BRIDGE_HOST] (vendor:8086 device:2d11 subv:1849 subd:2c62) (rev: 05)
unknown         : Intel Corporation|Core Processor QPI Link 0 [BRIDGE_HOST] (vendor:8086 device:2d10 subv:1849 subd:2c62) (rev: 05)
unknown         : Intel Corporation|Core Processor QuickPath Architecture System Address Decoder [BRIDGE_HOST] (vendor:8086 device:2d01 subv:1849 subd:2c62) (rev: 05)
unknown         : Intel Corporation|Core Processor QuickPath Architecture Generic Non-core Registers [BRIDGE_HOST] (vendor:8086 device:2c62 subv:1849 subd:2c62) (rev: 05)
ath9k           : Qualcomm Atheros|AR9287 Wireless Network Adapter (PCI-Express) [NETWORK_OTHER] (vendor:168c device:002e subv:1a3b subd:1121) (rev: 01)
xhci_pci        : NEC Corporation|uPD720200 USB 3.0 Host Controller [SERIAL_USB] (vendor:1033 device:0194 subv:1849 subd:0194) (rev: 03)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:1849 subd:8168) (rev: 06)
intel_ips       : Intel Corporation|5 Series/3400 Series Chipset Thermal Subsystem [SIGNAL_OTHER] (vendor:8086 device:3b32 subv:1849 subd:3b32) (rev: 06)
ata_piix        : Intel Corporation|5 Series/3400 Series Chipset 2 port SATA IDE Controller [STORAGE_IDE] (vendor:8086 device:3b2d subv:1849 subd:3b2d) (rev: 06)
i2c_i801        : Intel Corporation|5 Series/3400 Series Chipset SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:3b30 subv:1849 subd:3b30) (rev: 06)
ata_piix        : Intel Corporation|5 Series/3400 Series Chipset 4 port SATA IDE Controller [STORAGE_IDE] (vendor:8086 device:3b28 subv:1849 subd:3b28) (rev: 06)
lpc_ich         : Intel Corporation|HM55 Chipset LPC Interface Controller [BRIDGE_ISA] (vendor:8086 device:3b09 subv:1849 subd:3b09) (rev: 06)
unknown         : Intel Corporation|82801 Mobile PCI Bridge [BRIDGE_PCI] (vendor:8086 device:2448) (rev: a6)
ehci_pci        : Intel Corporation|5 Series/3400 Series Chipset USB2 Enhanced Host Controller [SERIAL_USB] (vendor:8086 device:3b34 subv:1849 subd:3b34) (rev: 06)
shpchp          : Intel Corporation|5 Series/3400 Series Chipset PCI Express Root Port 3 [BRIDGE_PCI] (vendor:8086 device:3b46) (rev: 06)
shpchp          : Intel Corporation|5 Series/3400 Series Chipset PCI Express Root Port 2 [BRIDGE_PCI] (vendor:8086 device:3b44) (rev: 06)
shpchp          : Intel Corporation|5 Series/3400 Series Chipset PCI Express Root Port 1 [BRIDGE_PCI] (vendor:8086 device:3b42) (rev: 06)
snd_hda_intel   : Intel Corporation|5 Series/3400 Series Chipset High Definition Audio [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:3b56 subv:1849 subd:2920) (rev: 06)
ehci_pci        : Intel Corporation|5 Series/3400 Series Chipset USB2 Enhanced Host Controller [SERIAL_USB] (vendor:8086 device:3b3c subv:1849 subd:3b3c) (rev: 06)
mei_me          : Intel Corporation|5 Series/3400 Series Chipset HECI Controller [COMMUNICATION_OTHER] (vendor:8086 device:3b64 subv:1849 subd:3b64) (rev: 06)
unknown         : Intel Corporation|Core Processor Thermal Management Controller [SIGNAL_OTHER] (vendor:8086 device:0050 subv:1849 subd:0050) (rev: 18)
Card:Intel 810 and later: Intel Corporation|Core Processor Integrated Graphics Controller [DISPLAY_VGA] (vendor:8086 device:0046 subv:1849 subd:0046) (rev: 18)
unknown         : Intel Corporation|Core Processor DRAM Controller [BRIDGE_HOST] (vendor:8086 device:0044 subv:1849 subd:0044) (rev: 18)
hub             : Linux 4.1.15-desktop-2.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:0020)
usbhid          : Dell|Dell USB Keyboard [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:413c device:2003)
Mouse:USB|Wheel : Logitech|N48/M-BB48 [FirstMouse Plus] [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:046d device:c001)
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 4.1.15-desktop-2.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Linux 4.1.15-desktop-2.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:0020)
unknown         : Realtek|802.11n WLAN Adapter (vendor:0bda device:818b)
hid_generic     : Logitech
hid_generic     : Dell Dell USB Keyboard

The other wireless adapter is (sorry for the use of French):
Code: Select all
IDENTIFICATION
Fabricant: ‎Qualcomm Atheros
Description: ‎AR9287 Wireless Network Adapter (PCI-Express)
Classe de média: ‎Network controller

CONNEXION
Bus: ‎PCI Express
Domaine PCI: ‎0
Bus PCI n°: ‎3
Périphérique PCI n°: ‎0
Fonction PCI n°: ‎0
Révision PCI: ‎0x01
Identifiant du fabricant: ‎0x168c
Identifiant du périphérique: ‎0x002e
Identifiant du sous-vendeur: ‎0x1a3b
Identifiant du sous-périphérique: ‎0x1121

DIVERS
Module: ‎ath9k

and there is also a Realtek ethernet controller: ‎RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

The log file is
Code: Select all
$ cat /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/make.log
DKMS make.log for rtl8192eu-4.3.1.1-11320.20140505 for kernel 4.1.15-desktop-2.mga5 (x86_64)
dim. févr. 14 14:09:27 CET 2016
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.1.15-desktop-2.mga5/build M=/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build  modules
make[1]: Entering directory '/usr/src/kernel-4.1.15-desktop-2.mga5'
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c: In function âdump_drv_versionâ:
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:64: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o' failed
make[2]: *** [/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o] Error 1
Makefile:1377: recipe for target '_module_/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build] Error 2
make[1]: Leaving directory '/usr/src/kernel-4.1.15-desktop-2.mga5'
Makefile:1323: recipe for target 'modules' failed
make: *** [modules] Error 2

Looking at that log file, I notice that the package probably has a problem with the GCC version of Mageia 5, and the makefile should get the extra line
Code: Select all
EXTRA_CFLAGS += -Wno-date-time

However, I do not know how to make the modification inside the package.
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby jiml8 » Feb 15th, '16, 07:25

I grepped the kernel source and found references to the rtl8192eu device in /usr/src/kernel-4.1.15-2.mga5/3rdparty/rtl8723bs.

As root, I cd'ed to that directory and issued the make command. The driver was built. I then issued a "make install", and the driver was installed to /lib/modules/4.1.15-desktop-2.mga5/kernel/drivers/net/wireless/

I then tried to load the driver with the insmod command, and it failed, complaining about an unknown symbol in the module. So I tried to load it with modprobe, and it loaded.

Code: Select all
modprobe r8723bs
root@dadsbox:rtl8723bs> lsmod | grep 8723
r8723bs               696320  0
cfg80211              548864  1 r8723bs
mmc_core              131072  1 r8723bs
root@dadsbox:rtl8723bs> pwd
/usr/src/kernel-4.1.15-2.mga5/3rdparty/rtl8723bs


I don't know if it works because I don't have that device. But, to the best of my ability to tell, this is your driver and it will compile and load on the latest 64 bit kernel. All you need to do is install the kernel sources that match your running kernel.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby jiml8 » Feb 15th, '16, 07:38

Your system is trying to use the r8169 driver for your realtek device. You might need to blacklist that driver to get the r8723bs driver to load; not sure.

I suggest you compile and install the driver, then rmmod the r8169 driver and modprobe the r8723 driver. Then try to start the realtek device.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby jiml8 » Feb 15th, '16, 07:47

vendor:10ec device:8168

This vendor and device ID does not match any of the choices in that google link. Hence, the directions in the google link are not applicable.

I will note that the driver I compiled does not seem to have USB dependencies, so perhaps it is not the right driver. Worth a try though.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby doktor5000 » Feb 15th, '16, 19:58

@jim: This is the Realtek adapter he wants to get working:
Code: Select all
usbcore         : Realtek|802.11n NIC (vendor:0bda device:818b)

which was already discussed at viewtopic.php?f=25&t=9071 where one of our fellow packagers provided driver packages rebuilt from cauldron.

datcha wrote:The log file is
Code: Select all
$ cat /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/make.log
DKMS make.log for rtl8192eu-4.3.1.1-11320.20140505 for kernel 4.1.15-desktop-2.mga5 (x86_64)
dim. févr. 14 14:09:27 CET 2016
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.1.15-desktop-2.mga5/build M=/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build  modules
make[1]: Entering directory '/usr/src/kernel-4.1.15-desktop-2.mga5'
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c: In function âdump_drv_versionâ:
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:64: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
 ^
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.c:66:1: erreur: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o' failed
make[2]: *** [/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build/core/rtw_debug.o] Error 1
Makefile:1377: recipe for target '_module_/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build] Error 2
make[1]: Leaving directory '/usr/src/kernel-4.1.15-desktop-2.mga5'
Makefile:1323: recipe for target 'modules' failed
make: *** [modules] Error 2

Looking at that log file, I notice that the package probably has a problem with the GCC version of Mageia 5, and the makefile should get the extra line
Code: Select all
EXTRA_CFLAGS += -Wno-date-time

However, I do not know how to make the modification inside the package.


Pretty good observation, seems you're pretty good with compiler internals :D
And actually it's not the gcc version it has problems with, but our default compiler and linker flags which are pretty strict.

Although there's already a newer version of the package which contains this already, check https://www.espelida.com/files/dkms-rtl ... noarch.rpm
In case you're still interested I can still explain how to modify the source package, just ask.
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby MauRice » Feb 15th, '16, 21:49

Datcha,

With help from Bob (Fedora) you can rebuild these srpms:
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151017.src.rpm
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.f23.bob.src.rpm
The last one should work with kernel 4.3.x and 4.4.x (tested on Unbuntu 16.04)

From kernel 4.4.x there will be a single kernel-module for lots of realtek chipsets rtl8xxxu
I hope that from kernel 4.5.x the kernel-module rtl8xxxu it will also support the rtl8192eu chipset
MauRice
MauRice
 
Posts: 22
Joined: Mar 25th, '11, 20:52

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby datcha » Feb 16th, '16, 16:21

Looking at that log file, I notice that the package probably has a problem with the GCC version of Mageia 5, and the makefile should get the extra line
EXTRA_CFLAGS += -Wno-date-time
However, I do not know how to make the modification inside the package.

[doktor5000]> Pretty good observation, seems you're pretty good with compiler internals

Unfortunately, I am mostly incompetent. Though I worked as computer scientist, this kind of stuff was never my area of expertise, and I did very limited C programming. I am just gathering observations from the web, as I am trying to solve my problem.

Now, I tried installing the package suggested by doktor5000: https://www.espelida.com/files/dkms-rtl ... noarch.rpm , but I run again into this EXTRA_CFLAGS problem, and I do not know how to modify the Makefile in the package.

I had the same problem with the package http://www.laptopke.be/files/%28S%29RPM ... noarch.rpm suggested by MauRice in viewtopic.php?f=25&t=9071#p55089 .

Regarding the srpms suggested just above by MauRice:
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151017.src.rpm
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.f23.bob.src.rpm
I do not know how to build an rpm from them.

Sorry for taking your time, and thanks.
Last edited by doktor5000 on Feb 16th, '16, 21:59, edited 1 time in total.
Reason: fixed link
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby MauRice » Feb 16th, '16, 20:10

Datcha,

For rebuilding a SRPMS you have to install rpm-build .....
Than the command is:
Code: Select all
rpmbuild --rebuild <srpm>


If you trouble with rebuilding, try one of these noarch.rpm:
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151017.noarch.rpm
http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch.rpm

If you have still a problem connecting the internet...
Walk through the FireWall wizard in MCC, that did the trick with me.
MauRice
MauRice
 
Posts: 22
Joined: Mar 25th, '11, 20:52

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby datcha » Feb 17th, '16, 23:25

Seems to be working. I am saying seems to be because I have not used it extensively yet, and I do not know if anyone else has.
I am repeating here all I did, so as to make it easy for any other user as illiterate as I am, with hopefully all the possible keywords that may help finding it. Note that my GUI is in French, and the labels I use are sometimes translated back from French and may differ from those used in the English GUI.

One thing I did, before all that follows, was to install the package dkms, as while looking for documentation in my early attempts, I had read that the package dkms must be installed. This was done with the Mageia Control Center (MCC) in the usual way. I mention that because I did it. But I do not know whether it was actually necessary. It may have been.

I am currently connected to the Internet through my new WiFi-USB Adapter (802.11n) using the Realtek rtl8192eu chip. It is running with the last driver package for the Realtek rtl8192eu proposed by MauRice.

I used the package http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch.rpm:
Code: Select all
wget http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch.rpm
rpm --install -v dkms-rtl8192eu-4.3.1.1-11320.20151212.mg5.noarch.rpm

and that is it . . . for the driver.

One problem has been that the hardware detection in the MCC did not show my adapter device (when you click the first item on the Harware control page). Normally, the Ethernet connection hardware shows by clicking on the line "Ethernet card". But my device remained invisible, and I thought it might be because the driver was not working. Though I am not certain about it, I suppose the adapter should show even if there is no driver for it (would be nice if someone could confirm this). I was looking there for my adapter as some page on the Internet says that is where you see it appear when it works.
Then I had the idea to click the last line, "Unknown/Others". And there it was, in the company of chips used for thermal control. Well, that is not exactly as it should be (should that be checked on Cauldron ?), and may cause some worry, as it did me. But it does not seem to otherwise hurt the system. (I would insert a picture if I knew how, from my computer).

Then I went to the MCC page on Network & Internet, and clicked to configure a new connexion. My new USB-WiFi Adapter was one of the solution proposed, and I just configured the connexion as usual (same parameter as for my WiFi card). And it works. It works apparently significantly better than with my original WiFi card, which was the whole purpose for me.

Thanks so much to all who contributed to this discussion. All contributions are useful as they explore the issue and help ultimately focussing on what will work.

PS: the chipset ‎rtl8192eu corresponds to the device identifier 0x818b or 0bda:818b (do not ask me whether there is a difference). You can see that on the device description from the hardware detection page of the MCC. This device identifier is what appears for example with command lsmod.
Last edited by datcha on Feb 18th, '16, 13:39, edited 3 times in total.
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: How to build a Mageia 5 driver for Realtek rtl8192eu

Postby doktor5000 » Feb 17th, '16, 23:30

datcha wrote:
Code: Select all
wget http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch.rpm
rpm --install -v dkms-rtl8192eu-4.3.1.1-11320.20151212.mg5.noarch.rpm



You can shorten that to
Code: Select all
urpmi http://laptopke.be/files/(S)RPMs/dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch.rpm

which will also automatically pull in dkms.

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
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: [SOLVED]How to build a Mageia 5 driver for Realtek rtl81

Postby datcha » Jul 25th, '16, 15:01

Post-scriptum
Added after 5 months


When the driver stopped working ...

Everything worked fine. Then I moved the computer to another location for 7 weeks, where I was using a wire internet connection. But when I returned to my previous location, the driver was no longer working, and was not visible when I used the MCC to check the hardware configuration.

I had no idea what could have changed in the system to explain that. But the problem was solved by uninstalling the driver, and then installing it anew. There are probably better ways of doing that, but the following worked for me, and that was all I asked:

To uninstall the driver I used:
Code: Select all
 rpm --erase dkms-rtl8192eu-4.3.1.1-11320.20151212.mga5.noarch

Then installing anew was done as indicated in previous posts.
datcha
 
Posts: 7
Joined: Feb 13th, '16, 17:39

Re: [SOLVED]How to build a Mageia 5 driver for Realtek rtl81

Postby MauRice » Jul 26th, '16, 16:35

Possible a kernel update??
Have patience, from kernel 4.7.x it will be supported by the rtl8xxxu kernel-module.
MauRice
MauRice
 
Posts: 22
Joined: Mar 25th, '11, 20:52


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest