update TP-Link wifi drivers after rpi-update

Il y des update réguliers sur le firmware du Pi, et à chaque fois les drivers wifi sautent.
Voici ce qu’il faut faire pour que ça se fasse sans douleur

root@raspberrypi:~# rpi-update

*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom

*** Performing self-update

*** Relaunching after update

*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom

#############################################################

This update bumps to rpi-4.1.y linux tree

Be aware there could be compatibility issues with some drivers

Discussion here:

https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=113753

##############################################################

*** Downloading specific firmware revision (this will take a few minutes)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   168    0   168    0     0    364      0 –:–:– –:–:– –:–:–   481

100 49.2M  100 49.2M    0     0   247k      0  0:03:23  0:03:23 –:–:–  362k

*** Updating firmware

*** Updating kernel modules

*** depmod 4.1.17-v7+

*** depmod 4.1.17+

*** Updating VideoCore libraries

*** Using HardFP libraries

*** Updating SDK

*** Running ldconfig

*** Storing current firmware revision

*** Deleting downloaded files

*** Syncing changes to disk

*** If no errors appeared, your firmware was successfully updated to 2ea8550c0fc6f4b916b3698fad857138d8a2da64

*** A reboot is needed to activate the new firmware

root@raspberrypi:~# uname -a

Linux raspberrypi 4.1.15+ #830 Tue Dec 15 16:58:28 GMT 2015 armv6l GNU/Linux

 

On vient donc de passer du 4.1.15 #830 au 4.1.17 qui est le #834

Se rendre sur

https://www.raspberrypi.org/forums/viewtopic.php?p=462982#p462982

Pour récupérer le lien vers l’installeur du dongle wifi (à lancer après le reboot ost update)

Copier le nom du fichier et le coller dans une barre d’adresse après le début suivant :

https://dl.dropboxusercontent.com/u/80256631/

et donc 8188eu-20160201.tar.gz

Soit dans notre exemple https://dl.dropboxusercontent.com/u/80256631/8188eu-20160201.tar.gz

root@raspberrypi:~/wifi/834# wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20160201.tar.gz

–2016-02-18 21:13:03–  https://dl.dropboxusercontent.com/u/80256631/8188eu-20160201.tar.gz

Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 108.160.173.5

Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|108.160.173.5|:443… connected.

HTTP request sent, awaiting response… 200 OK

Length: 415459 (406K) [application/octet-stream]

Saving to: `8188eu-20160201.tar.gz’

100%[========================================================================================================================================================================>] 415,459     1021K/s   in 0.4s    

2016-02-18 21:13:10 (1021 KB/s) – `8188eu-20160201.tar.gz’ saved [415459/415459]

 Lancer l’installation

root@raspberrypi:~/wifi/834# tar -xzvf 8188eu-20160201.tar.gz

8188eu.ko

8188eu.conf

install.sh

root@raspberrypi:~/wifi/834# ./install.sh

sudo cp 8188eu.conf /etc/modprobe.d/.

sudo install -p -m 644 8188eu.ko /lib/modules/4.1.17+/kernel/drivers/net/wireless

sudo depmod 4.1.17+

Reboot to run the driver.

If you have already configured your wifi it should start up and connect to your

wireless network.

If you have not configured your wifi you will need to do that to enable the wifi.

et dernier reboot

En principe le wifi refonctionne correctement, sinon attendre quelques jours voir s’il n’y a pas une mise à jour du driver (ça m’est déjà arriver, j’ai fait l’update juste après la publication)

Mise à jour suite au passage du kernel en 4.4.X, un installeur automatique à été développé.

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz

tar xzf install-wifi.tar.gz

Puis simplement:

./install-wifi

Par contre sur le mien ça ne fonctionne pas vraiment, le driver 8188eu.ko ne veut pas s’inserer dans le kernel (erreur de symbole).
Il faut donc dans ce cas la télécharger et installer wget https://dl.dropboxusercontent.com/u/80256631/8188eu-‘kernel-version’-v7-‘#number’.tar.gz

(ex: wget https://dl.dropboxusercontent.com/u/80256631/8188eu-4.4.7-v7-876.tar.gz)