Page 1 of 1

TPLink wireless router with Rasabian & kernel 4.1.8+

Posted: Sat Oct 03, 2015 1:43 pm
by TimLuther
Hi,
I managed to get this working on a previous kernel by downloading the driver using the following commands:

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20150406.tar.gz
tar -zxvf 8188eu-20150406.tar.gz
sudo install -p -m 644 8188eu.ko /lib/modules/3.18.11+/kernel/drivers/net/wireless
sudo insmod /lib/modules/3.18.11+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a
sudo reboot
However, since updating the kernel to 4.1.8+, I can't seem to get the thing to work using the same procedure.
I'm now trying to use this driver:

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20150929.tar.gz
but can't get it to work
my network config files remain the same

I found that this file:

Code: Select all

'/etc/modprobe.d/8188eu.conf'
contained the line:

Code: Select all

blacklist r8188eu
Commenting that line out had no effect.

lsusb returns the following:

Code: Select all

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp.
('Realtek Semiconductor Corp' is the device in question)
And lsmod shows the system is aware of the driver:

Code: Select all

8188eu                933436  0
But attempting to restart the network with

Code: Select all

sudo /etc/init.d/networking restart
Returns

Code: Select all

 Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: interface eth0 already configured
I tried downloading what I think is the source for this driver:

Code: Select all

 https://github.com/Red54/linux-shumeipai2.git
But couldn't figure out how to build it - 'build.sh' gives the following message:

Code: Select all

                                                                    
build.sh - Top level build scritps                                  
Valid Options:                                                      
  -h  Show help message                                             
  -p <platform> platform, e.g. sun4i, sun4i-lite, sun4i_crane       
  -m <module> module                                                
(goodling 'sun4i' reveals it's something to do with a system-on-a-chip thing - is that the guts of the TPLink chip? I'm not sure which one to build.


Obviously this is all a bit of a pain and I'd appreciate it if anybody could help. Also, can anybody tell me why my particular brand of wifi dongle doesn't 'just work'? Should I avoid this brand in the future if I want to have better compatibility on pi (ubuntu mate works out of the box, not sure why rasabian does not)

Re: TPLink wireless router with Rasabian & kernel 4.1.8+

Posted: Sat Oct 03, 2015 5:15 pm
by MrEngman
Hi,

I compiled the driver you are trying to use. I currently have 8188eu-20150929.tar.gz running on a Pi B+ with raspbian 4.1.8+ #818 and don't see any problems.

I normally use the drivers I compile but now there is an 8188eu driver included in the kernel image, however, to get it working you may need to install the firmware file it needs as the firmware has not been included in previous versions of raspbian. The firmware file needed is rtl8188eufw.bin and is installed in directory /lib/firmware/rtlwifi.

The file you edited, /etc/modprobe.d/8818eu.conf, includes the line "blacklist r8188eu" to stop the built in driver loading when using my driver otherwise loading both drivers could cause issues. If the built in driver is enabled and the firmware is not installed then it can cause the wifi dongle to shutdown, and if it does command lsusb will not show the wifi adapter when it is connected to the Pi. If both drivers are enabled command lsmod may show both 8188eu and r8188eu loaded, where r8188eu is the built in driver.

I have just checked and it appears the firmware will now be loaded if you run commands

Code: Select all

sudo apt-get update
sudo apt-get install firmware-realtek
I expect this is an update for Jessie.

If you want to enable the built in driver you should remove my driver. You can do that with commands

Code: Select all

sudo rm /lib/firmware/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
sudo depmod $(uname -r)
sudo rm /etc/modprobe.d/8188eu.conf
The post title appears to indicate you are using your Pi as a wireless router. I've never tried that and don't have much idea how to do it. Would be interested to see your wifi configuration to see how you do it if that's ok with you.


MrEngman

Re: TPLink wireless router with Rasabian & kernel 4.1.8+

Posted: Sun Oct 04, 2015 9:54 pm
by TimLuther
Thank you for taking the time to write that explanation. I've managed to get the new driver running (lsmod reports that the internal driver (r8188eu) is in use and only that one). However, I still can't get it to connect to the wireless network - restarting the network gives the same error as before:

Code: Select all

Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: interface eth0 already configured
As for the wireless router, I've tried to follow this webpage:
http://jacobsalmela.com/raspberry-pi-an ... -a-router/
But until I get the dongle working again, I can't try it out.

The files /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf are the same as they were when I had it working with the previous kernel - do these require any changes?

Thanks again for your help (and for providing those driver images)