I have laptop :
System Information
Manufacturer: LENOVO
Product Name: 81EM
Version: Lenovo ideapad FLEX 6-14IKB
The wifi work on kernel 5.3 but on kernel 5.4 display
device not ready
when I was on win 10 pro everything work good
Hi, bynd.
Could you go to your terminal (ctrl+alt+t) and then input sudo lshw -c network
and paste the results here?
Thank you for your replay
Iβm using a wifi usb to connect to internet
I did sudo lshw -c network
I get
*-generic DISABLED
description: Wireless interface
product: Illegal Vendor ID
vendor: Illegal Vendor ID
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0f0
version: ff
serial: 9c:30:5b:25:0c:f3
width: 32 bits
clock: 66MHz
capabilities: bus_master vga_palette cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw_pci driverversion=5.4.0-48-generic firmware=N/A latency=255 link=no maxlatency=255 mingnt=255 multicast=yes wireless=IEEE 802.11
resources: irq:138 ioport:3000(size=256) memory:a1100000-a110ffff
*-network:0
description: Ethernet interface
physical id: 3
logical name: br-cd1671f0804a
serial: 02:42:9d:53:67:d6
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.20.0.1 link=no multicast=yes
*-network:1
description: Ethernet interface
physical id: 4
logical name: br-3fb11dc8cf28
serial: 02:42:17:c3:ab:a9
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.19.0.1 link=no multicast=yes
*-network:2
description: Ethernet interface
physical id: 5
logical name: docker0
serial: 02:42:3d:bf:89:bf
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
*-network:3
description: Ethernet interface
physical id: 6
logical name: br-5aec900db893
serial: 02:42:b6:b3:74:0b
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.18.0.1 link=no multicast=yes
Can you tell me the make and model of the USB Wifi adapter?
Also, please try, in terminal, sudo apt update && sudo apt dist-upgrade
the wifi adapter is :
Ralink RT5370 wireless usb wifi adapter stick for Raspberry PI, Mag250/254/420/322
the sudo apt update && sudo apt dist-upgrade
return
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Ign:5 http://repo.vivaldi.com/stable/deb stable InRelease
Hit:6 http://repo.vivaldi.com/stable/deb stable Release
Hit:7 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:8 http://ppa.launchpad.net/zorinos/apps/ubuntu bionic InRelease
Hit:9 https://deb.opera.com/opera-stable stable InRelease
Hit:11 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:12 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:13 http://ppa.launchpad.net/zorinos/drivers/ubuntu bionic InRelease
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [49.0 kB]
Hit:15 https://packages.zorinos.com/stable bionic InRelease
Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [57.1 kB]
Hit:17 http://ppa.launchpad.net/zorinos/patches/ubuntu bionic InRelease
Hit:18 https://packages.zorinos.com/patches bionic InRelease
Get:19 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Hit:20 https://packages.zorinos.com/apps bionic InRelease
Hit:21 https://packages.zorinos.com/drivers bionic InRelease
Hit:22 http://ppa.launchpad.net/zorinos/stable/ubuntu bionic InRelease
Get:23 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:24 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:25 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [286 kB]
Get:26 http://ca.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:27 http://ca.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9,288 B]
Fetched 953 kB in 22s (43.4 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Thanks.
Please go to to: https://www.mediatek.com/products/broadbandWifi/rt5370 and download the linux driver (little penguin icon, 3rd one).
Next, use the instructions under βRalink driverβ posted at: https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M (ignore step #1)
Once youβre done, reboot and see if it works.
when I use make
I get error
make -C tools
make[1]: Entering directory '/home/lotfi/sta/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/lotfi/sta/tools'
/home/lotfi/sta/tools/bin2h
cp -f os/linux/Makefile.6 /home/lotfi/sta/os/linux/Makefile
make -C /lib/modules/5.4.0-48-generic/build SUBDIRS=/home/lotfi/sta/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-48-generic'
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[3]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:594: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 2
Makefile:700: recipe for target 'include/config/auto.conf.cmd' failed
make[1]: *** [include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-48-generic'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
make install too get error
make -C /home/lotfi/sta/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/lotfi/sta/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/lotfi/sta/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/5.4.0-48-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5572sta.ko /lib/modules/5.4.0-48-generic/kernel/drivers/net/wireless/
install: cannot stat 'rt5572sta.ko': No such file or directory
Makefile.6:532: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/lotfi/sta/os/linux'
Makefile:481: recipe for target 'install' failed
make: *** [install] Error 2
Bynd, in terminal, can you please paste in the following:
sudo nano /etc/udev/rules.d/95-RT5370.rules
This will open a new document in the terminal. Into that, paste in
SUBSYSTEM=="usb", ATTR{idVendor}=="148f", ATTR{idProduct}=="5370", RUN="/etc/RT5370.sh"
Hit ctrl+x to exit, then hit 'y' to 'yes' at the prompt, hit enter ensuring that you are saving the file as '95-RT5370.rules'.
Just as above, we are creating a new document file:
sudo nano /etc/RT5370.sh
Paste in and exit and save as 'RT5370.sh' just as you did above
#!/bin/sh
modprobe rt2800usb
echo 148F 5370 > /sys/bus/usb/drivers/rt2800usb/new_id
Change the permissions of the file
sudo chmod +x /etc/RT5370.sh
Now to build:
sudo apt-get install build-essential
sudo apt-get install git
git clone https://github.com/xiangzhai/rt5370.git
cd rt5370/
make
sudo make install
sudo echo rt5370sta >> /etc/modules
Once complete, unplug the USB wifi device and reboot the computer. Plug in the USB wifi device and please report back the results.
Thank you very much for your time and explanation
but still the same problem. I fallowed exactly you explanation step by step
when I do make
I get errors and also sudo make install
I was afraid of that. Can you please show the errors? Are they the same as above?
EDIT:
Assuming same errors, please try the following (Check that your Software & Updates app source is set to Main Server)- then repeat the above process to install the wifi USB device
sudo apt-get install linux-headers-5.4.0-48-generic
sudo apt-get install flex
Try installing the wifi USB again but this time use
make clean
make
sudo make install
Yes the same error
make
make -C tools
make[1]: Entering directory '/home/lotfi/rt5370/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/lotfi/rt5370/tools'
/home/lotfi/rt5370/tools/bin2h
cp -f os/linux/Makefile.6 /home/lotfi/rt5370/os/linux/Makefile
make -C /lib/modules/5.4.0-48-generic/build SUBDIRS=/home/lotfi/rt5370/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-48-generic'
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[3]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:594: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 2
Makefile:700: recipe for target 'include/config/auto.conf.cmd' failed
make[1]: *** [include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-48-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
sudo make install
make -C /home/lotfi/rt5370/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/lotfi/rt5370/os/linux'
mkdir: cannot create directory β/etc/Wirelessβ: File exists
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/lotfi/rt5370/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/5.4.0-48-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5370sta.ko /lib/modules/5.4.0-48-generic/kernel/drivers/net/wireless/
install: cannot stat 'rt5370sta.ko': No such file or directory
Makefile.6:359: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/lotfi/rt5370/os/linux'
Makefile:449: recipe for target 'install' failed
make: *** [install] Error 2
I tried again nothing change
lotfi@Lenovo:~$ git clone https://github.com/xiangzhai/rt5370.git
fatal: destination path 'rt5370' already exists and is not an empty directory.
lotfi@Lenovo:~$ cd rt5370/
lotfi@Lenovo:~/rt5370$ make clean
cp -f os/linux/Makefile.clean os/linux/Makefile
make -C os/linux clean
make[1]: Entering directory '/home/lotfi/rt5370/os/linux'
rm -f ../../common/*.o
rm -f ../../common/.*.{cmd,flags,d}
rm -f ../../os/linux/*.{o,ko,mod.{o,c}}
rm -f ../../os/linux/.*.{cmd,flags,d}
rm -fr ../../os/linux/.tmp_versions
rm -f ../../os/linux/Module.symvers
rm -f ../../os/linux/Modules.symvers
rm -f ../../os/linux/Module.markers
rm -f ../../os/linux/modules.order
rm -f ../../chips/*.o
rm -f ../../chips/.*.{cmd,flags,d}
rm -f ../../sta/*.o
rm -f ../../sta/.*.{cmd,flags,d}
make[1]: Leaving directory '/home/lotfi/rt5370/os/linux'
rm -rf os/linux/Makefile
lotfi@Lenovo:~/rt5370$ make
make -C tools
make[1]: Entering directory '/home/lotfi/rt5370/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/lotfi/rt5370/tools'
/home/lotfi/rt5370/tools/bin2h
cp -f os/linux/Makefile.6 /home/lotfi/rt5370/os/linux/Makefile
make -C /lib/modules/5.4.0-48-generic/build SUBDIRS=/home/lotfi/rt5370/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-48-generic'
mkdir: cannot create directory β.tmp_14800β: Permission denied
mkdir: cannot create directory β.tmp_14802β: Permission denied
mkdir: cannot create directory β.tmp_14804β: Permission denied
mkdir: cannot create directory β.tmp_14806β: Permission denied
mkdir: cannot create directory β.tmp_14808β: Permission denied
mkdir: cannot create directory β.tmp_14810β: Permission denied
mkdir: cannot create directory β.tmp_14813β: Permission denied
mkdir: cannot create directory β.tmp_14815β: Permission denied
mkdir: cannot create directory β.tmp_14817β: Permission denied
mkdir: cannot create directory β.tmp_14819β: Permission denied
mkdir: cannot create directory β.tmp_14821β: Permission denied
mkdir: cannot create directory β.tmp_14823β: Permission denied
mkdir: cannot create directory β.tmp_14825β: Permission denied
mkdir: cannot create directory β.tmp_14827β: Permission denied
mkdir: cannot create directory β.tmp_14829β: Permission denied
mkdir: cannot create directory β.tmp_14831β: Permission denied
mkdir: cannot create directory β.tmp_14833β: Permission denied
mkdir: cannot create directory β.tmp_14835β: Permission denied
mkdir: cannot create directory β.tmp_14837β: Permission denied
mkdir: cannot create directory β.tmp_14839β: Permission denied
mkdir: cannot create directory β.tmp_14841β: Permission denied
mkdir: cannot create directory β.tmp_14843β: Permission denied
arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support
mkdir: cannot create directory β.tmp_14845β: Permission denied
mkdir: cannot create directory β.tmp_14847β: Permission denied
mkdir: cannot create directory β.tmp_14849β: Permission denied
mkdir: cannot create directory β.tmp_14851β: Permission denied
mkdir: cannot create directory β.tmp_14853β: Permission denied
mkdir: cannot create directory β.tmp_14855β: Permission denied
mkdir: cannot create directory β.tmp_14857β: Permission denied
mkdir: cannot create directory β.tmp_14859β: Permission denied
mkdir: cannot create directory β.tmp_14861β: Permission denied
mkdir: cannot create directory β.tmp_14863β: Permission denied
mkdir: cannot create directory β.tmp_14865β: Permission denied
mkdir: cannot create directory β.tmp_14867β: Permission denied
mkdir: cannot create directory β.tmp_14869β: Permission denied
mkdir: cannot create directory β.tmp_14874β: Permission denied
mkdir: cannot create directory β.tmp_14876β: Permission denied
mkdir: cannot create directory β.tmp_14878β: Permission denied
mkdir: cannot create directory β.tmp_14880β: Permission denied
mkdir: cannot create directory β.tmp_14882β: Permission denied
mkdir: cannot create directory β.tmp_14884β: Permission denied
mkdir: cannot create directory β.tmp_14886β: Permission denied
mkdir: cannot create directory β.tmp_14888β: Permission denied
mkdir: cannot create directory β.tmp_14890β: Permission denied
mkdir: cannot create directory β.tmp_14892β: Permission denied
mkdir: cannot create directory β.tmp_14894β: Permission denied
mkdir: cannot create directory β.tmp_14896β: Permission denied
mkdir: cannot create directory β.tmp_14898β: Permission denied
mkdir: cannot create directory β.tmp_14900β: Permission denied
mkdir: cannot create directory β.tmp_14903β: Permission denied
mkdir: cannot create directory β.tmp_14905β: Permission denied
mkdir: cannot create directory β.tmp_14907β: Permission denied
mkdir: cannot create directory β.tmp_14909β: Permission denied
mkdir: cannot create directory β.tmp_14911β: Permission denied
mkdir: cannot create directory β.tmp_14913β: Permission denied
mkdir: cannot create directory β.tmp_14915β: Permission denied
mkdir: cannot create directory β.tmp_14917β: Permission denied
mkdir: cannot create directory β.tmp_14919β: Permission denied
mkdir: cannot create directory β.tmp_14921β: Permission denied
mkdir: cannot create directory β.tmp_14923β: Permission denied
mkdir: cannot create directory β.tmp_14925β: Permission denied
mkdir: cannot create directory β.tmp_14927β: Permission denied
mkdir: cannot create directory β.tmp_14929β: Permission denied
mkdir: cannot create directory β.tmp_14931β: Permission denied
mkdir: cannot create directory β.tmp_14933β: Permission denied
mkdir: cannot create directory β.tmp_14935β: Permission denied
mkdir: cannot create directory β.tmp_14939β: Permission denied
mkdir: cannot create directory β.tmp_14962β: Permission denied
mkdir: cannot create directory β.tmp_14964β: Permission denied
mkdir: cannot create directory β.tmp_14966β: Permission denied
mkdir: cannot create directory β.tmp_14968β: Permission denied
mkdir: cannot create directory β.tmp_14970β: Permission denied
mkdir: cannot create directory β.tmp_14972β: Permission denied
mkdir: cannot create directory β.tmp_14974β: Permission denied
mkdir: cannot create directory β.tmp_14976β: Permission denied
mkdir: cannot create directory β.tmp_14978β: Permission denied
mkdir: cannot create directory β.tmp_14980β: Permission denied
mkdir: cannot create directory β.tmp_14982β: Permission denied
mkdir: cannot create directory β.tmp_14984β: Permission denied
mkdir: cannot create directory β.tmp_14986β: Permission denied
mkdir: cannot create directory β.tmp_14988β: Permission denied
mkdir: cannot create directory β.tmp_14990β: Permission denied
mkdir: cannot create directory β.tmp_14992β: Permission denied
mkdir: cannot create directory β.tmp_14994β: Permission denied
mkdir: cannot create directory β.tmp_14996β: Permission denied
mkdir: cannot create directory β.tmp_14998β: Permission denied
mkdir: cannot create directory β.tmp_15000β: Permission denied
mkdir: cannot create directory β.tmp_15002β: Permission denied
mkdir: cannot create directory β.tmp_15004β: Permission denied
mkdir: cannot create directory β.tmp_15006β: Permission denied
mkdir: cannot create directory β.tmp_15008β: Permission denied
LEX scripts/kconfig/lexer.lex.c
flex: could not create scripts/kconfig/lexer.lex.c
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[3]: *** [scripts/kconfig/lexer.lex.c] Error 1
Makefile:594: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 2
Makefile:700: recipe for target 'include/config/auto.conf.cmd' failed
make[1]: *** [include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-48-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
lotfi@Lenovo:~/rt5370$
Well... try
sudo mount -o remount,exec /tmp
make
reurn
mount: /tmp: mount point not mounted or bad option.
Ok, can you run
sudo nano /etc/fstab
and check if you see "noexec" in the file? IF you do, please remove it. Exit and save the file. Then log out, log in and try your installation again.
first of all I can't thank you enough for your help I really do appreciate it thank you very much
I didn't find noexec
this is all what i get
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=7d62b4f5-8fde-4c21-bef8-64880acea622 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
You can double check with
cat /etc/fstab
If you see noexec
As a workaround maybe try changing the permissions of the makefile itself
chmod 777 -R /home/lotfi/rt5370/os/linux/Makefile
no noexec exist
lotfi@Lenovo:~/rt5370$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=7d62b4f5-8fde-4c21-bef8-64880acea622 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
I did chmod 777 -R /home/lotfi/rt5370/os/linux/Makefile
I get the same
LEX scripts/kconfig/lexer.lex.c
flex: could not create scripts/kconfig/lexer.lex.c
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[3]: *** [scripts/kconfig/lexer.lex.c] Error 1
Makefile:594: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 2
Makefile:700: recipe for target 'include/config/auto.conf.cmd' failed
make[1]: *** [include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-48-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
I wonder if you are running on a user account instead of as the admin account on your copy of Zorin. We seem to be getting cut off at each step.
I suspect that the reason the WiFi stopped working when the kernel upgraded is that the Wifi USB device had to be configured. This means that it must be reconfigured (or reinstalled) each and every time the kernel upgrades.
Normally, this is not difficultβ¦ After the kernel upgrade, the user just runs the βmakeβ and βsudo make installβ from the makefile directory and all is well again.
Perhaps we should step back and examine why you needed to use the USB wifi device in the first place and try to figure out where to go from there.
I just buy the WiFi adapter
Well my computer was on windows so I want to start working on Linux so I choose Zorin as Linux, my computer work fine on kernel 5.3 but ask me to update Zorin OS I checked yes and now if iβm on 5.3 it work fine but if I work with 5.4 the WiFi device not work, I have to every time when I start my computer press Esc
key to choose advanced to choose 5.3 otherwise will go to 5.4 directly so i did buy a WiFi adapter to connect to internet if iβm on 5.4 like now