supershitcodemonkey wrote: ↑Mon Sep 24, 2018 7:13 pm
The driver itself works perfectly for me, but I have some issues with installing & updating.
Of course you won't be able to download this driver on the pi itself without it having the driver (unless you connect it via ethernet, which is not an option on the A+ or an embedded system). This isn't
that big of a deal, since I can just download it on my pc and put it on the boot partition of the sd card.
Doing this once isn't really a problem. But when the kernel is updated I have to do it all over again, which is somewhat of an issue for me since I can't easily shutdown my project and take out the sd card.
Is there some way that I can detect when the kernel is going to be updated and download the new driver is advance?
Also the site seems to be extremely slow since yesterday (<1 KB/s), downloading the 400KB driver takes literally forever
Hi supershitcodemonkey,
Sorry for not responding sooner.
If you want to update your kernel using rpi-update, although using rpi-update is not usually recommended, run command
sudo install-wifi -h for detailed help on using the install-wifi script.
If you are updating your code using apt update/apt upgrade it's a bit of a pain checking if a new kernel is going to be installed and determining the driver update you need to install.
So first run
sudo apt update and then
sudo apt upgrade. After running
sudo apt upgrade but before you select
Y to continue and download the updated files check the list of files to be installed and see if there is a file
raspberrypi-kernel. If that file is not in the list of files to install then you can continue and install the updates and you should not need to update your wifi driver.
If file
raspberrypi-kernel is in the list of files to install select
n to abort installing the files. The file
raspberrypi-kernel will install a new kernel version so you first need to find the driver version to download and install before upgrading the files.
To find the kernel version that will be installed so you will be able to select the right driver to install run command
apt search raspberrypi-kernel. This will return a result something like
Code: Select all
pi@Pi-3B-plus2:~ $ apt search raspberrypi-kernel
Sorting... Done
Full Text Search... Done
raspberrypi-kernel/stable 1.20180919-1 armhf [upgradable from: 1.20180328-1]
Raspberry Pi bootloader
raspberrypi-kernel-headers/stable 1.20180919-1 armhf
Header files for the Raspberry Pi Linux kernel
This shows the version of raspberrypi-kernel file that will be installed, in this case
stable 1.20180919.
To find the actual kernel version to select the wifi driver file you need you will need to view the web site
https://github.com/raspberrypi/firmware/. Then select the dialog box "Branch:
master" and select
tags and then select the tag that matches the one shown for the
raspberrypi-kernel file in the output from the
apt search command above, in this case
1.20180919.
Then select link
extra then either
uname_string7 if installing the wifi driver on a Pi 2B, 3B or 3B+, or
uname_string if installing the wifi driver on any other Pi.
Using the values for the kernel version and kernel build from uname_string(7) you can then determine the wifi driver file you need to download to install when you update to the new kernel version. The kernel version is 4.14.70+ or 4.14.70-v7+ depending on the Pi you are using and build is #1144.
So in this case the driver file will be either
8188eu-4.14.70-1144.tar.gz or
8188eu-4.14.70-v7-1144.tar.gz depending on the Pi you are installing it on if using the 8188eu wifi module or replace 8188eu with the driver you are using if using a different wifi module, 8192eu, 8821au, 8822bu, mt7610 or mt7612.
Then download the driver file you need using command
Code: Select all
wget http://downloads.fars-robotics.net/wifi-drivers/8188eu-drivers/8188eu-4.14.70-v7-1144.tar.gz
this is assumimg you are using the 8188eu driver on a Pi 2B, 3B or 3B+
For other versions of the Pi it would be
Code: Select all
wget http://downloads.fars-robotics.net/wifi-drivers/8188eu-drivers/8188eu-4.14.70-1144.tar.gz
So now you can update your kernel and install the new wifi driver. Run
apt update and
apt upgrade again and allow the upgrade to install the files. Then before rebooting unzip the wifi driver and install it using commands
Code: Select all
tar xzf 8188eu-4.14.70-v7-1144.tar.gz
./install.sh
for Pi 2B, 3B or 3B+ or
Code: Select all
tar xzf 8188eu-4.14.70-1144.tar.gz
./install.sh
for other versions of the Pi. Then reboot and you should have your Pi running with the new kernel and wifi driver.
Hope this make sense, any questions just ask. And again sorry for taking so long to respond to your question.