Wifi adapter

Jerry Snitselaar dev at snitselaar.org
Wed Apr 12 16:34:55 MST 2017


Jerry Snitselaar @ 2017-04-12 21:11 GMT:

> Stephen M @ 2017-04-09 00:35 GMT:
>
>> When I go into the zip file itself, the driver is 8188eu and that's what I
>> copied over to /lib/modules but still getting the same message.  I can do a
>> lsmod and it can see the module but it's not active.
>>
>
> What is the output of the following:
>
> uname -r
> find /lib/modules -type f -name 8188eu.ko
> grep 8188eu.ko /lib/modules/`uname -r`/modules.dep
> lsmod | grep 8188eu
>

also do you get any output with:

dmesg | grep -i -e 8188eu -e rtl


Is this the file you downloaded?

http://static.tp-link.com/TL-WN725N_V2_150911_1480321613225x.zip

The output below is from a vm running 14.04.3, I had to rebuild the ko
module provided because of symbol issues with the provided one.

jsnitsel at ubuntu14-32:~$ uname -r
3.19.0-25-generic
jsnitsel at ubuntu14-32:~$ find /lib/modules -type f -name 8188eu.ko
/lib/modules/3.19.0-25-generic/extra/8188eu.ko
jsnitsel at ubuntu14-32:~$ grep 8188eu.ko /lib/modules/`uname -r`/modules.dep
kernel/drivers/staging/rtl8188eu/r8188eu.ko:
extra/8188eu.ko: kernel/net/wireless/cfg80211.ko
jsnitsel at ubuntu14-32:~$ lsmod | grep 8188eu
8188eu                933888  0 
cfg80211              450560  1 8188eu

jsnitsel at ubuntu14-32:~$ dmesg | grep -i -e 8188eu -e rtl
[   38.109741] 8188eu: module verification failed: signature and/or  required key missing - tainting kernel
[   38.113643] RTL871X: module init start
[   38.113646] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[   38.113647] RTL871X: build time: Apr 12 2017 16:06:08
[   38.113682] usbcore: registered new interface driver rtl8188eu
[   38.113684] RTL871X: module init ret=0

I don't have the hw so can't figure it out beyond that.

I did see that the kernel for 14.04.3 does include the staging driver,
but it is slightly older than what tp-link has up there:

jsnitsel at ubuntu14-32:~$ modinfo 8188eu | grep ^version
version:        v4.3.0.8_13968.20150417
jsnitsel at ubuntu14-32:~$ modinfo r8188eu | grep ^version
version:        v4.1.4_6773.20130222

14.04.5 might be more recent.

>> On Sat, Apr 8, 2017 at 12:18 PM, Jerry Snitselaar <dev at snitselaar.org>
>> wrote:
>>
>>>
>>> Stephen M @ 2017-04-08 18:58 GMT:
>>>
>>> > I get this message when trying,
>>> >
>>> > stephend at stephend-desktop:~/Downloads/rtl8188eu$ sudo modprobe 8188eu.ko
>>> > [sudo] password for stephend:
>>> > modprobe: FATAL: Module 8188eu.ko not found.
>>> > stephend at stephend-desktop:~/Downloads/rtl8188eu$
>>> >
>>> > Now I'm assuming I need to move the driver but do a move the entire
>>> folder
>>> > or just the script itself to the usr/lib folder?
>>> >
>>> > On Sat, Apr 8, 2017 at 11:40 AM, Jerry Snitselaar <dev at snitselaar.org>
>>> > wrote:
>>> >
>>>
>>> When using modprobe drop the .ko off the name. Is it named 8188eu.ko or
>>> r8188eu.ko ? Whichever it is, copy it to /lib/modules/`uname -r`/extra
>>> and then run 'depmod -a'. once that is done you should be able to do
>>> 'modprobe r8188eu' or whatever the name is, and have it load.
>>>
>>> >>
>>> >> Stephen M @ 2017-04-08 15:56 GMT:
>>> >>
>>> >> > The driver is rtl8188eu for a TL-WN725N wifi adapter
>>> >> >
>>> >>
>>> >>  Ah, that has been sitting in drivers/staging for a long time.
>>> >>
>>> >>  Does your modprobe work now?
>>> >>
>>> >>  An example on Fedora 25 with a test module:
>>> >>
>>> >>  ~/mymod> sudo modprobe mymod
>>> >>  modprobe: FATAL: Module mymod not found in directory
>>> >> /lib/modules/4.10.5-200.fc25.x86_64
>>> >>  ~/mymod> make
>>> >>  make -C /lib/modules/4.10.5-200.fc25.x86_64/build
>>> M=/home/jsnitsel/mymod
>>> >> modules
>>> >>  make[1]: Entering directory '/usr/src/kernels/4.10.5-200.fc25.x86_64'
>>> >>    CC [M]  /home/jsnitsel/mymod/mymod.o
>>> >>    Building modules, stage 2.
>>> >>    MODPOST 1 modules
>>> >>    CC      /home/jsnitsel/mymod/mymod.mod.o
>>> >>    LD [M]  /home/jsnitsel/mymod/mymod.ko
>>> >>  make[1]: Leaving directory '/usr/src/kernels/4.10.5-200.fc25.x86_64'
>>> >>  xz --check=crc32 --lzma2=dict=512KiB mymod.ko
>>> >>  ~/mymod> ls
>>> >>  Makefile  modules.order  Module.symvers  mymod.c  mymod.ko.xz
>>> >> mymod.mod.c  mymod.mod.o  mymod.o
>>> >>  ~/mymod> sudo cp mymod.ko.xz /lib/modules/`uname -r`/extra/
>>> >>  ~/mymod> sudo depmod -a
>>> >>  ~/mymod> sudo modprobe mymod
>>> >>  ~/mymod> lsmod | grep mymod
>>> >>  mymod                  16384  0
>>> >>  ~/mymod> dmesg | tail -1
>>> >>  [344910.989060] loading mymod
>>> >>
>>> >>
>>> >> > On Fri, Apr 7, 2017 at 10:32 PM, Jerry Snitselaar <dev at snitselaar.org
>>> >
>>> >> > wrote:
>>> >> >
>>> >> >>
>>> >> >> Stephen M @ 2017-04-08 00:55 GMT:
>>> >> >>
>>> >> >> > Hi everyone,
>>> >> >> >
>>> >> >> > This seems really dumb but I have a wifi adapter from TP-Link on a
>>> >> Ubuntu
>>> >> >> > 14.04 machine that disconnects after reboot or a system update.  I
>>> >> keep
>>> >> >> > typing insmod to get it to turn back on.  I know I need to do
>>> modprobe
>>> >> >> but
>>> >> >> > it can't find the file.
>>> >> >> >
>>> >> >> > I downloaded the driver from their site, unzipped it in my download
>>> >> >> folder
>>> >> >> > though I think I need to move it.  Any help would be grateful.
>>> >> >>
>>> >> >> modprobe can't load it because it knows nothing about the driver.
>>> >> >>
>>> >> >> Try:
>>> >> >>
>>> >> >> sudo cp *downloaded-module* /lib/modules/`uname -r`/extra/
>>> >> >> sudo depmod -a
>>> >> >>
>>> >> >> You will still run into the issue each time a new kernel is
>>> installed,
>>> >> >> and since the driver isn't tied to the kernel you are running there
>>> can
>>> >> >> be incompatibilities that cause issues. if you do run into issues
>>> with
>>> >> >> it, you can blacklist it on the kernel parameters line when booting.
>>> >> >> 'module_blacklist=module_name' should work.
>>> >> >>
>>> >> >> What driver is it using?
>>> >> >> ---------------------------------------------------
>>> >> >> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>> >> >> To subscribe, unsubscribe, or to change your mail settings:
>>> >> >> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>> >>
>>> >> ---------------------------------------------------
>>> >> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>> >> To subscribe, unsubscribe, or to change your mail settings:
>>> >> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>> >>
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list