deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

[SOLVED] Code to execute wi-fi dongle doesnt work

Thu May 23, 2019 9:31 am

Hello,
In order to install a new wi-fi dongle , I want to execute following command but I get error. The command with error is

Code: Select all

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
      

E: Couldn't find any package by glob 'linux-headers-4.14.98'
E: Couldn't find any package by regex 'linux-headers-4.14.98'
I will have to install the kernel headers 4.14.98
Can someone help please?
Last edited by deepakdeshp on Mon Jun 03, 2019 5:42 pm, edited 1 time in total.

User avatar
rpdom
Posts: 22373
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Code to execute wi-fi dongle doesnt work

Thu May 23, 2019 10:46 am

Firstly, if you are using Raspbian Stretch you should be running a 4.19 kernel, not a 4.14 one. If you do a "sudo apt-get update && sudo apt-get -y upgrade", then reboot you will be running the 4.19 kernel.

After upgrading you may find that your wifi dongle drivers are already present. What make and model is it?

If you still need to build the driver from source (which I presume is why you wanted the kernel headers), you can install the headers file with "sudo apt-get install raspberrypi-kernel-headers".

(You can use apt or apt-get. The syntax is the same, just the information displayed is slightly more "user friendly" with apt and it deletes the downloaded file automatically)
Unreadable squiggle

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Thu May 23, 2019 11:23 am

rpdom wrote:
Thu May 23, 2019 10:46 am
Firstly, if you are using Raspbian Stretch you should be running a 4.19 kernel, not a 4.14 one. If you do a "sudo apt-get update && sudo apt-get -y upgrade", then reboot you will be running the 4.19 kernel.

After upgrading you may find that your wifi dongle drivers are already present. What make and model is it?

If you still need to build the driver from source (which I presume is why you wanted the kernel headers), you can install the headers file with "sudo apt-get install raspberrypi-kernel-headers".

(You can use apt or apt-get. The syntax is the same, just the information displayed is slightly more "user friendly" with apt and it deletes the downloaded file automatically)
Thank you. I have 4.19 installed now but the wi-fi does not work. I am running the pi as headless with a Linux Mint 19.1 as the connecting host.

Code: Select all

iwconfig
enxb827ebf6aff6  no wireless extensions.

lo        no wireless extensions.

pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0bda:f179 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ lspci
-bash: lspci: command not found
pi@raspberrypi:~ $ uname -r
4.19.42+
I am trying to find the make and model of my dongle.

User avatar
rpdom
Posts: 22373
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Code to execute wi-fi dongle doesnt work

Thu May 23, 2019 11:35 am

deepakdeshp wrote:
Thu May 23, 2019 11:23 am

Code: Select all

Bus 001 Device 004: ID 0bda:f179 Realtek Semiconductor Corp. 
This bit tells me that you have a Realtek RTL8189FTV device. There might be a driver available for it.

It may be covered by the drivers that MrEngman has generated. Read this post carefully (it covers lots of devices) viewtopic.php?f=28&t=62371

Code: Select all

pi@raspberrypi:~ $ lspci
-bash: lspci: command not found
lspci won't work on a Pi. It doesn't have a PCI bus.
Unreadable squiggle

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Thu May 23, 2019 11:58 am

deepakdeshp wrote:
Thu May 23, 2019 11:23 am
rpdom wrote:
Thu May 23, 2019 10:46 am
Firstly, if you are using Raspbian Stretch you should be running a 4.19 kernel, not a 4.14 one. If you do a "sudo apt-get update && sudo apt-get -y upgrade", then reboot you will be running the 4.19 kernel.

After upgrading you may find that your wifi dongle drivers are already present. What make and model is it?

If you still need to build the driver from source (which I presume is why you wanted the kernel headers), you can install the headers file with "sudo apt-get install raspberrypi-kernel-headers".

(You can use apt or apt-get. The syntax is the same, just the information displayed is slightly more "user friendly" with apt and it deletes the downloaded file automatically)
Thank you. I have 4.19 installed now but the wi-fi does not work. I am running the pi as headless with a Linux Mint 19.1 as the connecting host.

Code: Select all

iwconfig
enxb827ebf6aff6  no wireless extensions.

lo        no wireless extensions.

pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0bda:f179 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ lspci
-bash: lspci: command not found
pi@raspberrypi:~ $ uname -r
4.19.42+
I am trying to find the make and model of my dongle.
This is your wifi module "Bus 001 Device 004: ID 0bda:f179 Realtek Semiconductor Corp." but what the Realtek wifi module is called I don't know.

I compile a variety of drivers for Raspbian OS and I believe one of them, rtl8188fu, will support your wifi.

I have a script that can be used to determine the wifi driver your wifi module uses and if found will install it for the Raspbian kernel version you are using.

You can install the script using commands

Code: Select all

sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
Running command

Code: Select all

sudo install-wifi -h
will give details on how to use it.

To install the driver on your current kernel, provided it is Raspbian, you just need to use command

Code: Select all

sudo install-wifi


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 11:23 am

The install script could not locate my wi-fi

Code: Select all

sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.19.42+
Your current kernel build    = #1219

Checking for a wifi module to determine the driver to install.

Your wifi module is unrecognised.

**** Unable to identify your wifi module ****

The script only works for wifi modules using the rtl8188eu, rtl8188fu, rtl8192eu, rtl8812au, 8822bu, mt7610 and mt7612 drivers.

Looking for your wifi module the script detected the following USB devices:-

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you are certain your module uses one of the drivers the script installs check the output of command
'lsusb' shows your wifi module. If lsusb shows your wifi module try running the script again. If the
script fails to detect your wifi module again the driver may need updating to add your module USB id.

If lsusb does not show your wifi module you will need to resolve that issue before the script can be
used to install the driver you need.

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 11:42 am

deepakdeshp wrote:
Fri May 24, 2019 11:23 am
The install script could not locate my wi-fi

Code: Select all

sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.19.42+
Your current kernel build    = #1219

Checking for a wifi module to determine the driver to install.

Your wifi module is unrecognised.

**** Unable to identify your wifi module ****

The script only works for wifi modules using the rtl8188eu, rtl8188fu, rtl8192eu, rtl8812au, 8822bu, mt7610 and mt7612 drivers.

Looking for your wifi module the script detected the following USB devices:-

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you are certain your module uses one of the drivers the script installs check the output of command
'lsusb' shows your wifi module. If lsusb shows your wifi module try running the script again. If the
script fails to detect your wifi module again the driver may need updating to add your module USB id.

If lsusb does not show your wifi module you will need to resolve that issue before the script can be
used to install the driver you need.
The script uses the lsusb command to find any wifi dongles connected to your Pi.

The output from command lsusb that the script used to determine your wifi module does not show your wifi dongle is connected/recognised.

Code: Select all

Looking for your wifi module the script detected the following USB devices:-

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Was the wifi dongle connected to your Pi? It has to be connected to the Pi and show in the lsusb command for the script to work.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 11:58 am

MrEngman wrote:
Fri May 24, 2019 11:42 am
deepakdeshp wrote:
Fri May 24, 2019 11:23 am
The install script could not locate my wi-fi

Code: Select all

sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.19.42+
Your current kernel build    = #1219

Checking for a wifi module to determine the driver to install.

Your wifi module is unrecognised.

**** Unable to identify your wifi module ****

The script only works for wifi modules using the rtl8188eu, rtl8188fu, rtl8192eu, rtl8812au, 8822bu, mt7610 and mt7612 drivers.

Looking for your wifi module the script detected the following USB devices:-

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you are certain your module uses one of the drivers the script installs check the output of command
'lsusb' shows your wifi module. If lsusb shows your wifi module try running the script again. If the
script fails to detect your wifi module again the driver may need updating to add your module USB id.

If lsusb does not show your wifi module you will need to resolve that issue before the script can be
used to install the driver you need.
The script uses the lsusb command to find any wifi dongles connected to your Pi.

The output from command lsusb that the script used to determine your wifi module does not show your wifi dongle is connected/recognised.

Code: Select all

Looking for your wifi module the script detected the following USB devices:-

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Was the wifi dongle connected to your Pi? It has to be connected to the Pi and show in the lsusb command for the script to work.
Thank you. The dongle did not seat properly , I changed the port and lsusb detects it now. Install script gave error.

Code: Select all

sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.19.42+
Your current kernel build    = #1219

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 004: ID 0bda:f179 Realtek Semiconductor Corp. 

And it uses the 8188fu driver.

Checking for a 8188fu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8188fu driver.
Installing the 8188fu driver.

Installing driver module 8188fu.ko.
install -p -m 644 8188fu.ko /lib/modules/4.19.42+/kernel/drivers/net/wireless
Loading and running the 8188fu driver, 8188fu.ko.

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.299417] Internal error: Oops - BUG: 0 [#1] ARM

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.404250] Process modprobe (pid: 725, stack limit = 0xee3b721b)

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.410349] Stack: (0xc9529b38 to 0xc952a000)

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.414712] 9b20:                                                       00000000 cd1353a0

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.422901] 9b40: cd18f800 5b2bb002 c9529b64 cd135470 cd134000 00000001 00000000 cd1353a0

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.431087] 9b60: cd18f800 c9773668 c9529b9c c9529b78 bf353544 c0075964 cd134000 00000001

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.439273] 9b80: caab4a00 caaad070 000000a8 ca971c78 c9529bb4 c9529ba0 bf36f6a0 bf353434

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.447460] 9ba0: cd134000 c9773000 c9529bdc c9529bb8 bf37100c bf36f5d0 c9529bdc c9529bc8

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.455646] 9bc0: c04b23e4 bf41a784 c9773000 caab4a00 c9529c1c c9529be0 bf371658 bf370f50

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.463832] 9be0: ca971c78 caaab388 ca971c00 00000003 c0462bf4 bf41a784 ffffffed caab4a00

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.472018] 9c00: caab4a20 ca971c78 ca971c00 00000000 c9529c54 c9529c20 c04c3554 bf371190

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.480205] 9c20: c01f3b58 bf41a730 c9529c54 c0b14900 caab4a20 00000000 c0b14904 bf41a730

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.488391] 9c40: 00000013 00000000 c9529c84 c9529c58 c0456dd0 c04c33fc 00000000 caab4a20

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.496577] 9c60: bf41a730 caab4a54 c09d9028 bf3f9b98 bf42bce0 c81d9ee4 c9529cbc c9529c88

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.504763] 9c80: c0457044 c0456ba4 c9529cbc c9529c98 c04c2be8 c06c8660 caab4a20 bf41a730

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.512951] 9ca0: caab4a54 c09d9028 bf3f9b98 bf42bce0 c9529cdc c9529cc0 c0457248 c0456fe4

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.521137] 9cc0: 00000000 00000000 bf41a730 c0457168 c9529d0c c9529ce0 c0454ce4 c0457174

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.529323] 9ce0: c9529d18 cb187c4c ca954f30 5b2bb002 bf41a730 c80b8f00 c0a4430c 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.537509] 9d00: c9529d1c c9529d10 c04566b0 c0454c7c c9529d44 c9529d20 c04560c8 c0456694

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.545695] 9d20: bf3f9bfc c9529d30 bf41a730 00000000 bf41a730 c0a4430c c9529d5c c9529d48

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.553881] 9d40: c0457a04 c0455f40 bf41a700 00000000 c9529d84 c9529d60 c04c1fb8 c0457984

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.562067] 9d60: bf41a700 bf461000 c09d9028 00000000 c81d9ec0 00000001 c9529d9c c9529d88

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.570254] 9d80: bf46107c c04c1f54 5b2bb002 bf42bce0 c9529e14 c9529da0 c000adc0 bf46100c

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.578440] 9da0: 00080007 c09d9028 c81d9ec0 00000001 0080007f 0000046c c801b800 c012baa4

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.586628] 9dc0: c09d9028 0000b001 c80f31c0 c014d7dc c09d9028 c015e090 c9529e14 c9529de8

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.594815] 9de0: c015e090 c0134e1c c015f3e0 5b2bb002 bf42bce0 bf42bce0 bf42bce0 c1b900e0

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.603001] 9e00: c09d9028 c81d9ec0 c9529e3c c9529e18 c00920dc c000ad80 c9529f30 bf42bce0

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.611188] 9e20: c9529e3c c9529f30 bf42bce0 00000001 c9529f0c c9529e40 c00910f0 c009207c

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.619373] 9e40: bf42bcec 00007fff bf42bce0 c008e894 00000000 cd50c000 bf42bdd4 bf42beb4

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.627559] 9e60: bf48eefc bf431a44 bf42bce0 bf42bd28 c9529e94 c08a74f8 c0173288 c01730f4

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.635745] 9e80: 00194d7c 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.643930] 9ea0: 6e72656b 00006c65 00000000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.652116] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 5b2bb002

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.660302] 9ee0: 7fffffff c09d9028 00000000 00000003 00f40108 7fffffff 00000000 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.668489] 9f00: c9529fa4 c9529f10 c009192c c008f614 7fffffff 00000000 00000003 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.676675] 9f20: 00000000 cd50c000 00194d7c 00000000 cd5fcd92 cd616240 cd50c000 00194d7c

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.684862] 9f40: cd6a073c cd6a05b8 cd639f3c 00113a44 0012e574 00000000 00000000 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.693047] 9f60: 0002defc 00000025 00000026 00000019 0000001d 0000000d 00000000 5b2bb002

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.701235] 9f80: 00000000 00000000 00000000 0000017b c00091a4 c9528000 00000000 c9529fa8

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.709421] 9fa0: c0009000 c0091880 00000000 00000000 00000003 00f40108 00000000 0003f078

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.717607] 9fc0: 00000000 00000000 00000000 0000017b 00040000 0000001f 00f40108 00f3fff0

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.725794] 9fe0: beee2340 beee2330 0002212c b6f11960 60000010 00000003 00000000 00000000

Message from syslogd@raspberrypi at May 24 17:08:05 ...
 kernel:[  271.939938] Code: b50b3038 a5852004 a50b2038 eaffff99 (e7f001f2) 
/usr/bin/install-wifi: line 285:   725 Segmentation fault      modprobe $driver1



Nevertheless I rebooted and ran iwconfig

Code: Select all

[quote] iwconfig
enxb827ebf6aff6  no wireless extensions.

lo        no wireless extensions.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 12:27 pm

It may be a charger problem, I changed the charger and ran the script again. This time there was no error but iwconfig does not report anything.

PS
I am fortunate to communicate with the writer of the script. Its a neat user friendly script

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 1:48 pm

deepakdeshp wrote:
Fri May 24, 2019 12:27 pm
It may be a charger problem, I changed the charger and ran the script again. This time there was no error but iwconfig does not report anything.

PS
I am fortunate to communicate with the writer of the script. Its a neat user friendly script
Hi deepakdeshp,

Unfortunately there appears to be a problem with the wifi driver. I do not have a wifi module using that driver so I have not been able to test it myself otherwise I could possibly have fixed it.

I will look to see if the code has been updated and get back later.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 2:12 pm

Thank you for the update. I also have a cd which has the drivers but the install.sh script to install the driver fails.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 3:47 pm

I was able to install the wi-fi dongle on my Mint machine using the following code

Code: Select all

cd
sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms add ./rtl8188fu
sudo dkms install rtl8188fu/1.0
But on the pi the error is

Code: Select all

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)     
E: पॅकेज linux-headers-4.19.42 शोधण्यास असमर्थ आहे
E: Couldn't find any package by glob 'linux-headers-4.19.42'
E: Couldn't find any package by regex 'linux-headers-4.19.42'
apt-install has following header candidates to install

Code: Select all

linux-headers-3.10-3-all              linux-headers-3.18.0-trunk-all        linux-headers-3.6-trunk-rpi           linux-headers-4.9.0-6-common
linux-headers-3.10-3-all-armhf        linux-headers-3.18.0-trunk-all-armhf  linux-headers-4.4.0-1-all             linux-headers-4.9.0-6-common-rt
linux-headers-3.10-3-common           linux-headers-3.18.0-trunk-common     linux-headers-4.4.0-1-all-armhf       linux-headers-4.9.0-6-rpi
linux-headers-3.10-3-rpi              linux-headers-3.18.0-trunk-rpi        linux-headers-4.4.0-1-common          linux-headers-4.9.0-6-rpi2
linux-headers-3.16.0-4-all            linux-headers-3.18.0-trunk-rpi2       linux-headers-4.4.0-1-rpi             linux-headers-rpi
linux-headers-3.16.0-4-all-armhf      linux-headers-3.6-trunk-all           linux-headers-4.4.0-1-rpi2            linux-headers-rpi2
linux-headers-3.16.0-4-common         linux-headers-3.6-trunk-all-armhf     linux-headers-4.9.0-6-all             linux-headers-rpi2-rpfv
linux-headers-3.16.0-4-rpi            linux-headers-3.6-trunk-common        linux-headers-4.9.0-6-all-armhf       linux-headers-rpi-rpfv
I feel the script above may work if I am able to install kernel -4.9.0-6. I am searching on how to do it.

Andyroo

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 7:23 pm

There is a set of old Raspbian images at http://downloads.raspberrypi.org/raspbian/images/ BUT how you tell the kernel versions I have no idea.

The other place to look is https://github.com/raspberrypi/linux and see if the files you want are in a branch e.g. https://github.com/raspberrypi/linux/tr ... 9.y-stable

Way beyond me to help any further though...

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Fri May 24, 2019 10:21 pm

deepakdeshp wrote:
Fri May 24, 2019 3:47 pm
I was able to install the wi-fi dongle on my Mint machine using the following code

Code: Select all

cd
sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms add ./rtl8188fu
sudo dkms install rtl8188fu/1.0
But on the pi the error is

Code: Select all

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)     
E: पॅकेज linux-headers-4.19.42 शोधण्यास असमर्थ आहे
E: Couldn't find any package by glob 'linux-headers-4.19.42'
E: Couldn't find any package by regex 'linux-headers-4.19.42'
apt-install has following header candidates to install

Code: Select all

linux-headers-3.10-3-all              linux-headers-3.18.0-trunk-all        linux-headers-3.6-trunk-rpi           linux-headers-4.9.0-6-common
linux-headers-3.10-3-all-armhf        linux-headers-3.18.0-trunk-all-armhf  linux-headers-4.4.0-1-all             linux-headers-4.9.0-6-common-rt
linux-headers-3.10-3-common           linux-headers-3.18.0-trunk-common     linux-headers-4.4.0-1-all-armhf       linux-headers-4.9.0-6-rpi
linux-headers-3.10-3-rpi              linux-headers-3.18.0-trunk-rpi        linux-headers-4.4.0-1-common          linux-headers-4.9.0-6-rpi2
linux-headers-3.16.0-4-all            linux-headers-3.18.0-trunk-rpi2       linux-headers-4.4.0-1-rpi             linux-headers-rpi
linux-headers-3.16.0-4-all-armhf      linux-headers-3.6-trunk-all           linux-headers-4.4.0-1-rpi2            linux-headers-rpi2
linux-headers-3.16.0-4-common         linux-headers-3.6-trunk-all-armhf     linux-headers-4.9.0-6-all             linux-headers-rpi2-rpfv
linux-headers-3.16.0-4-rpi            linux-headers-3.6-trunk-common        linux-headers-4.9.0-6-all-armhf       linux-headers-rpi-rpfv
I feel the script above may work if I am able to install kernel -4.9.0-6. I am searching on how to do it.
Hi deepakdeshp,

I found the source at https://github.com/kelebek333/rtl8188fu today. I can compile the code without any problems for kernel 4.19.42-v7+ and I can install the driver and it appears to load without problems but whether it will work with a wifi module connected I don't know as I don't have one to test it with.

Must try and find a wifi dongle somewhere so I can get one and test the driver properly.

I have abandoned the other 8188fu code I was using and I'm in the process of updating the scripts I use for compiling my drivers and the install-wifi script as well.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 12:06 am

Hi deepakdeshp,

I've updated the wifi drivers using the code from https://github.com/kelebek333/rtl8188fu and it compiles fine without any problems.

I've also updated the install-wifi script so it can install the new driver as the new driver uses a slightly different name and a separate firmware file.

I can load the new driver without any errors but unfortunately as I do not have a wifi dongle using that driver I cannot test it completely.

If you want to try it you can just use the command install-wifi as the script updates itself when it starts so will load the updated version and then install the new wifi driver.

I really hope if you do try it that it now works as I know how annoying things get when they do not work.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Zanderama
Posts: 3
Joined: Sat May 25, 2019 6:10 am

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 6:24 am

Hi,

I recently bought a similar, cheap USB Wifi device, no brand bit of a mystery but lsusb showing 0bda:f179 Realtek Semiconductor Corp. Apparently a Realtek RTL8188FTV Wireless 802.11n USB 2.0 - in case anyone's Googling.

I almost gave up installing after finding various Github driver patches, then finding MrEngman's mega-thread about installing various drivers. I've actually already ordered another cheap USB device through the post in case :)

I tried several ways to try and get MrEngman's drivers downloaded - from Dropbox, http://downloads.fars-robotics.net/ and http://fars-robotics.net/ - but seemed to mostly get 'file or page not found'. However, your reply and commands on this post seem to have worked thanks! Still got to actually setup the wifi, but at least its recognised. Also thanks for the previous tip on upgrading the Pi to latest Linux. I only recently installed Raspbian Lite from an image.

sudo wget http://downloads.fars-robotics.net/wifi ... stall-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi

MrEngman - might I suggest you streamline your web page to not mention DropBox etc if that's out of date, and just link to your helpful install script? You also might like to embed HTML links to your driver images rather than the instructions to add each driver image to the end.

Thanks again,

Alex

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 11:33 am

MrEngman thank you so much. Just as I tried in many ways to resolve the problem, you would have worked on the script to remove the error.

I ran the install script once again but it got stuck at Loading and running the 8188fu driver, rtl8188fu.ko.
This may be because of viewtopic.php?f=28&t=241302
I was able to install the driver successfully on my Linux Mint machine following the code

Code: Select all

cd
sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms add ./rtl8188fu
sudo dkms install rtl8188fu/1.0

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 12:24 pm

deepakdeshp wrote:
Sat May 25, 2019 11:33 am
MrEngman thank you so much. Just as I tried in many ways to resolve the problem, you would have worked on the script to remove the error.

I ran the install script once again but it got stuck at Loading and running the 8188fu driver, rtl8188fu.ko.
This may be because of viewtopic.php?f=28&t=241302
I was able to install the driver successfully on my Linux Mint machine following the code

Code: Select all

cd
sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms add ./rtl8188fu
sudo dkms install rtl8188fu/1.0
Not sure why you would have problems although it could be an issue with the driver. As I've previously stated I don't have a wifi module using that driver so am unable to test it completely. I can install the driver OK but as I don't have a wifi module using that driver I can't check it runs OK. I really need to find a wifi module so I can check the driver properly.

I've tried installing the driver on several different versions of the Pi and generally I receive the following

Code: Select all

pi@Pi-3B-plus:~ $ sudo install-wifi 8188fu

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.19.42-v7+
Your current kernel build    = #1219

Checking for a 8188fu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8188fu driver.
Installing the 8188fu driver.

Installing driver module rtl8188fu.ko.
install -p -m 644 rtl8188fu.ko /lib/modules/4.19.42-v7+/kernel/drivers/net/wireless
Loading and running the 8188fu driver, rtl8188fu.ko.
pi@Pi-3B-plus:~ $ dmesg | tail
[267896.430175] RTW: send eapol packet

[268816.545375] =======================================================
[268816.545377] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[268816.545379] =======================================================
[268816.545382] Realtek 8188FU USB WiFi driver (Powered by Rockchip) init.
[268816.545384] RTL871X: module init start
[268816.545387] RTL871X: 8188fu v4.3.23.6_20964.20170110
[268816.545492] usbcore: registered new interface driver 8188fu
[268816.545495] RTL871X: module init ret=0
pi@Pi-3B-plus:~ $
If your Pi gets stuck when outputting the text "Loading and running the 8188fu driver, rtl8188fu.ko." it could be there is a problem with this driver that is cause your pi to hang as the wifi module will then be trying to run the driver code.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 3:09 pm

Hi guys,

Can someone point me to where I can purchase a wifi adapter using the 8188fu driver?

I've spent ages searching for a supplier but haven't been able to find anywhere.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
rpdom
Posts: 22373
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 3:58 pm

I did a quick search on ebay and this one came up https://www.ebay.co.uk/itm/293040946706

In the description it says "Supports Linux (requires install of rtl8188fu driver from Github )". I hope it does what you want.
Unreadable squiggle

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 4:05 pm

rpdom wrote:
Sat May 25, 2019 3:58 pm
I did a quick search on ebay and this one came up https://www.ebay.co.uk/itm/293040946706

In the description it says "Supports Linux (requires install of rtl8188fu driver from Github )". I hope it does what you want.
Looks OK. Thanks rpdom.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 5:46 pm

Hello
I got the dongle from Amazon. I will share the link.

Meanwhile I suspect my pi is 32 bit and your code may be for 64 bit. I will confirm if mine is 32 bit when I am in front of the pi.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 6:34 pm

MrEengman,
I wonder if you are active on Mint forums as MrEen.

My Pi is 32 bit and all the pi whether pip 1 or 3b+ seem to be 32 bit OS.

Code: Select all

inxi -Fxz |grep 32
System:    Host: raspberrypi Kernel: 4.19.42+ armv6l (32 bit gcc: 4.9.3)
The Amazon link from where I got the dongle is
Wi-Fi Receiver 300Mbps, 2.4GHz, 802.11b/g/n USB 2.0 Wireless Mini Wi-Fi Network Adapter https://www.amazon.in/dp/B0141EZMAI/ref ... YyGTgz9tbr. The store is in India

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 7:30 pm

deepakdeshp wrote:
Sat May 25, 2019 6:34 pm
MrEengman,
I wonder if you are active on Mint forums as MrEen.

My Pi is 32 bit

Code: Select all

inxi -Fxz |grep 32
System:    Host: raspberrypi Kernel: 4.19.42+ armv6l (32 bit gcc: 4.9.3)
The Amazon link from where I got the dongle is
Wi-Fi Receiver 300Mbps, 2.4GHz, 802.11b/g/n USB 2.0 Wireless Mini Wi-Fi Network Adapter https://www.amazon.in/dp/B0141EZMAI/ref ... YyGTgz9tbr. The store is in India
Hi deepakdeshp,

No, I'm not MrEen.

All my Pi's run 32 bit code, Raspbian Jessie on a Pi 1B+ and a Pi 2B, and my remaining Pi's run Raspbian Stretch, 3B+, 3B, 3A+, 2B, 1B, Pi0.

Thanks for the link, however, @rpdom gave me a link to a UK site so I now have a wifi adapter on order and should get it sometime next week.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

deepakdeshp
Posts: 165
Joined: Thu Oct 26, 2017 7:23 pm

Re: Code to execute wi-fi dongle doesnt work

Sat May 25, 2019 8:02 pm

Hello,
Good news!! The driver has been installed. Just finding how to connect to the wi fi network now.

Code: Select all

iwconfig
enx00e0262e17fc  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
There is something funny with my pi. It wasnt rebooting with

Code: Select all

sudo reboot
. When I was typing in the terminal response was sluggish, your install script didnt run , I was having problems in installing packages. Now none of the problems exist. I havent done anything like re-installing the os or even changing the memory card.

Return to “Troubleshooting”