soheilsabz
Posts: 17
Joined: Mon May 20, 2019 1:56 pm

USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Thu Jun 13, 2019 4:46 pm

i need to install the USB wife `EDUP` :
http://www.dx.com/p/edup-ep-n8508gs-min ... ack-172021
into my raspberry zero,
Image


so i try installing the CD container driver which is similar to main GitHub container https://github.com/CalielOfSeptem/RTL81 ... 0.20130911 **_RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911_** with this command:

Code: Select all

`sudo make`
and i get this error:

Code: Select all

```

pi@raspberrypi:~/Desktop/driver/linux_kernel2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911 $ sudo make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.14.98+/build M=/home/pi/Desktop/driver/linux_kernel2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911  modules
make[1]: *** /lib/modules/4.14.98+/build: No such file or directory.  Stop.
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2

```

In my /lib/modules/ folder i have these folders:

Code: Select all

4.14.98+  4.14.98-v7+  4.19.42+  4.19.42-v7+
so with uname -r i get :

Code: Select all

pi@raspberrypi:/lib/modules $ uname -r
4.14.98+
but in /lib/modules/4.14.98+ i dont have build folder!! `ls you can see here:

Code: Select all

$ ls /lib/modules/4.14.98+
kernel         modules.alias.bin  modules.builtin.bin  modules.dep.bin  modules.order    modules.symbols
modules.alias  modules.builtin    modules.dep          modules.devname  modules.softdep  modules.symbols.bin
but i have this build folder in my /lib/modules/:

Code: Select all

pi@raspberrypi:/lib/modules $ find -name build
./4.19.42-v7+/build
./4.19.42+/build
my question in raspberry stack-exchange:

https://raspberrypi.stackexchange.com/q ... ch-file-or

So what can i do to solve this problem.
Last edited by soheilsabz on Thu Jun 13, 2019 4:59 pm, edited 1 time in total.

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

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Thu Jun 13, 2019 4:59 pm

/lib/modules/4.14.98+/build is a symlnk to the linux source/headers directory needed to compile your wifi module.

You can create the link using the command

Code: Select all

sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
with directory /home/pi/src/linux set to where you Linux source is saved.

Also when compiling the driver you don't need to use sudo.


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

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

soheilsabz
Posts: 17
Joined: Mon May 20, 2019 1:56 pm

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Thu Jun 13, 2019 5:18 pm

In my rasbian as you can see:,i have this:

Code: Select all

pi@raspberrypi:/ $ sudo find -name sound
find: ‘./proc/643/task/643/net’: Invalid argument
find: ‘./proc/643/net’: Invalid argument
find: ‘./run/user/1000/gvfs’: Permission denied
./sys/devices/platform/soc/soc:audio/bcm2835_alsa/sound
./sys/devices/virtual/sound
./sys/class/sound
./sys/firmware/devicetree/base/__symbols__/sound
./sys/firmware/devicetree/base/soc/sound
./sys/firmware/devicetree/base/aliases/sound
./usr/share/greenfoot/greenfoot/standalone/greenfoot/sound
./usr/include/alsa/sound
./usr/include/sound
./usr/src/linux-headers-4.19.42-v7+/drivers/staging/most/sound
./usr/src/linux-headers-4.19.42-v7+/sound
./usr/src/linux-headers-4.19.42-v7+/include/uapi/sound
./usr/src/linux-headers-4.19.42-v7+/include/sound
./usr/src/linux-headers-4.19.42-v7+/include/dt-bindings/sound
./usr/src/linux-headers-4.19.42+/drivers/staging/most/sound
./usr/src/linux-headers-4.19.42+/sound

Code: Select all

pi@raspberrypi:/lib/modules $ cd /usr/src/
pi@raspberrypi:/usr/src $ ls
linux-headers-4.19.42+  linux-headers-4.19.42-v7+  sense-hat
and

Code: Select all

pi@raspberrypi:/lib/modules $ ls
4.14.98+  4.14.98-v7+  4.19.42+  4.19.42-v7+

and with this:

Code: Select all

sudo ln -s /home/pi/src/linux         /lib/modules/$(uname -r)/build
which /home/pi/src/ is the usr/src/ , so what is the linux in this command:

Code: Select all

sudo ln -s /usr/src/linux          /lib/modules/$(uname -r)/build
is it right to use this:

Code: Select all

sudo ln -s /usr/src/linux-headers-4.19.42+                   /lib/modules/$(uname -r)/build
?

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

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Thu Jun 13, 2019 7:36 pm

Looks like

Code: Select all

sudo ln -s /usr/src/linux-headers-4.19.42+ /lib/modules/$(uname -r)/build
will be OK.

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

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

soheilsabz
Posts: 17
Joined: Mon May 20, 2019 1:56 pm

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Sat Jun 15, 2019 9:05 pm

I have done :

Code: Select all

sudo ln -s  /usr/src/linux-headers-4.19.42+ /lib/modules/$(uname -r)/build

 sudo ln -s /usr/src/linux-headers-4.19.42+/arch/arm /usr/src/linux-headers-4.19.42+/arch/armv6l
, So I do these commands:

Code: Select all

```
#based of https://github.com/lord2y/rtl8192eu-arm-linux-driver/issues/2
sudo apt-get update  --fix-missing
 sudo apt-get install git raspberrypi-kernel-headers build-essential dkms
```
then

Code: Select all

```
cd 
#For all distros:
git clone https://github.com/CalielOfSeptem/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.git
cd rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911 
make clean
make
```
but i get this outputs:

Code: Select all

```
pi@raspberrypi:~/linux_kernel2.6.18 $ sudo chmod a+x install.sh
pi@raspberrypi:~/linux_kernel2.6.18 $ sudo ./install.sh        
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
        rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/runwpa
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_xmit.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ioctl_query.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/efuse/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/efuse/rtw_efuse.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_recv.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_br_ext.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_eeprom.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_debug.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_tdls.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_p2p.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ieee80211.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_security.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_mlme.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_mp.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_sreset.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_sta_mgt.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_rf.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_pwrctrl.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_wlan_util.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_mlme_ext.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_io.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ap.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ioctl_rtl.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_mp_ioctl.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ioctl_set.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_iol.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/wlan0dhcp
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/osdep_service.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/ioctl_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/recv_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/pci_ops_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/usb_intf.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/mlme_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/pci_intf.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/rtw_android.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/xmit_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/usb_ops_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/ioctl_cfg80211.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/hal_com.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/wlan_bssdef.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/cmd_osdep.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_recv.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_mlme_ext.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/wifi.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_led.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_recv.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/HalPwrSeqCmd.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192CPhyReg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192DPhyCfg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_hal.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_dm.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_rf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_android.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_recv.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/nic_spec.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/usb_osintf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_dm.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_xmit.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_event.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_qos.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_pwrctrl.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_xmit.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_spec.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_ce_service.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/ieee80211.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/recv_osdep.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_types_linux.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_efuse.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192CUHWImg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/usb_ops.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ht.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/ioctl_cfg80211.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/ethernet.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/mp_custom_oid.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ioctl_rtl.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192DUHWImg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_spec.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_mlme.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_types.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192DEHWImg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_sreset.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/ieee80211_ext.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_types_ce.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192CPhyCfg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_led.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/swab.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/swabb.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/big_endian.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/little_endian.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/byteorder/generic.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_mp_ioctl.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/usb_ops_linux.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192CUHWImg_wowlan.h
rtl8188C_8192C_usb_linux_v
```
pi@raspberrypi:~/linux_kernel2.6.18 $ sudo chmod a+x install.sh
pi@raspberrypi:~/linux_kernel2.6.18 $ sudo ./install.sh        
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
        rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/runwpa
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_xmit.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ioctl_query.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/efuse/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/efuse/rtw_efuse.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_recv.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_br_ext.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_eeprom.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_debug.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_tdls.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_p2p.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_ieee80211.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_security.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_mlme.c
rtl8188C_8192C_us[code]4.0.2_9000.20130911/include/Hal8192CEHWImg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_p2p.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/pci_hal.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_conf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/usb_vendor_req.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/linux/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/linux/wireless.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_service.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192DUHWImg_wowlan.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ioctl_query.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_eeprom.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_types_xp.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_byteorder.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_xmit.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_version.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_cmd.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ioctl_set.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/h2clbk.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/pci_osintf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_cmd.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192d_rf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/pci_ops.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_tdls.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_cmd.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_event.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/mlme_osdep.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_debug.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ap.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_intf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/hal_intf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/sta_info.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_iol.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_mp_phy_regdef.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_rf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/usb_hal.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/autoconf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_security.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_io.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/Hal8192DPhyReg.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_br_ext.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/circ_buf.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/basic_types.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_hal.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/ip.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_led.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/if_ether.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/xmit_osdep.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtl8192c_sreset.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_mp.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/rtw_ioctl.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/drv_types_sdio.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/ifcfg-wlan0
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/Makefile
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/Kconfig
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/dm.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/hal_intf.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_cmd.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_phycfg.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_xmit.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_dm.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_mp.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_rxdesc.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_rf6052.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/rtl8192cu_led.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/usb_halinit.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/rtl8192cu_recv.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/Hal8192CUHWImg_wowlan.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/usb_ops_ce.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/Hal8192CUHWImg.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/usb_ops_linux.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/rtl8192cu_xmit.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/usb/usb_ops_xp.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_sreset.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/rtl8192c/rtl8192c_hal_init.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/hal_com.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/dm.h
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/hal/HalPwrSeqCmd.c
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/clean
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911
Authentication requested [root] for make clean:
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm .tmp_versions -fr ; rm Module.symvers -fr
rm -fr Module.markers ; rm -fr modules.order
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/rtl8192c/usb ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/rtl8192c ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
Authentication requested [root] for make driver:
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.14.98+/build M=/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.42+'
  CC [M]  /home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.o
In file included from /home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.c:23:0:
/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_service.h: In function ‘_init_timer’:
/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_service.h:958:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/include/osdep_service.h:959:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:303: recipe for target '/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.o' failed
make[2]: *** [/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/core/rtw_cmd.o] Error 1
Makefile:1524: recipe for target '_module_/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911' failed
make[1]: *** [_module_/home/pi/linux_kernel2.6.18/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.42+'
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
pi@raspberrypi:~/linux_kernel2.6.18 $ 


```
SO what can I do for solving this problem?

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

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Sun Jun 16, 2019 11:43 am

The module you are trying to compile does not appear to usable with kernel versions 4.19.xx as it is relatively old.

However, just noted that the driver is for wifi adapters of type 8188c/8192c.

Raspbian includes a driver for 8192cu devices so you probable don't need to compile a driver, but just set up the wifi configuration to get it working.

With the wifi adapter connected to your Pi what does the command lsusb show? This will show the USB details for your wifi adapter and will enable us to determine which driver it needs, and if the included 8192cu driver supports it.


MrEngman

EDIT: Also what do commands lsmod and ifconfig show?
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

soheilsabz
Posts: 17
Joined: Mon May 20, 2019 1:56 pm

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Mon Jul 15, 2019 4:10 pm

Hi:

Firstly thanks for your attentions & helps, i have tried to use wpa_gui application to connect via wifi to internet, by this site instructions:

http://blog.crazypi.com/setup-wi-fi-con ... berry-pi3/

but i have tried the commands outputs you requested (Mr Engman https://www.raspberrypi.org/forums/memb ... le&u=10221 in my raspberry connected to internet via WIFI EDUP Working:

Code: Select all

pi@raspberrypi:~ $ lsmod
Module                  Size  Used by
fuse                   99599  3
evdev                  13149  1
joydev                 11363  0
ads7846                13854  0
snd_bcm2835            16839  1
snd_pcm                92916  1 snd_bcm2835
bcm2835_codec          28300  0
bcm2835_v4l2           35910  0
v4l2_mem2mem           18877  1 bcm2835_codec
snd_timer              23433  1 snd_pcm
bcm2835_mmal_vchiq     20644  2 bcm2835_codec,bcm2835_v4l2
v4l2_common             7385  1 bcm2835_v4l2
videobuf2_dma_contig    10303  1 bcm2835_codec
videobuf2_vmalloc       6084  1 bcm2835_v4l2
videobuf2_memops        1973  2 videobuf2_dma_contig,videobuf2_vmalloc
raspberrypi_hwmon       2959  0
snd                    63223  5 snd_timer,snd_bcm2835,snd_pcm
videobuf2_v4l2         16373  3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
i2c_bcm2835             7690  0
hwmon                  11200  2 raspberrypi_hwmon,ads7846
videobuf2_common       37369  4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
spi_bcm2835             7915  0
videodev              182757  6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
media                  27597  2 videodev,v4l2_mem2mem
vc_sm_cma              25091  1 bcm2835_mmal_vchiq
8192cu                614218  0
fixed                   3336  0
uio_pdrv_genirq         3953  0
uio                    11360  1 uio_pdrv_genirq
sha256_generic         10778  0
cfg80211              596656  1 8192cu
rfkill                 22462  3 cfg80211
i2c_dev                 7171  0
usb_f_ecm               7932  1
g_ether                 5368  0
usb_f_rndis            18740  2 g_ether
u_ether                13468  3 usb_f_ecm,g_ether,usb_f_rndis
libcomposite           49673  3 usb_f_ecm,g_ether,usb_f_rndis
dwc2                  157283  0
udc_core               39545  5 usb_f_ecm,dwc2,u_ether,usb_f_rndis,libcomposite
ip_tables              13419  0
x_tables               24457  1 ip_tables
ipv6                  429149  18

Code: Select all

pi@raspberrypi:~ $ lsusb
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

pi@raspberrypi:~ $ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 156 (156.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 156 (156.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 02:7d:f2:86:21:2a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.123  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ea4e:6ff:fe64:fa65  prefixlen 64  scopeid 0x20<link>
        ether e8:4e:06:64:fa:65  txqueuelen 1000  (Ethernet)
        RX packets 2328  bytes 280560 (273.9 KiB)
        RX errors 0  dropped 7  overruns 0  frame 0
        TX packets 324  bytes 47123 (46.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Good luck

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

Re: USB Wifi driver installation Error: /lib/modules/4.14.98+/build: No such file or directory. Stop

Mon Jul 15, 2019 7:54 pm

The command lsmod shows the 8192cu driver is loaded and command ifconfig shows the wifi has a valid IP address so should be connected to your network and working.


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

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

Return to “Troubleshooting”