LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2023, 07:23 PM   #1
AstroProgrammer
LQ Newbie
 
Registered: May 2020
Posts: 10

Rep: Reputation: Disabled
Issue with getting wlan0 interface to work


I am trying to get WIFI access on my DE10 nano board which is running debian buster. The kernel version is 5.10.50-lts. The wifi device i am using is the RT5370 chipset. The issue is that the wlan0 device is not visible with 'ifconfig -a'. The output is shown below:

Code:
ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::4043:34ff:fe2e:f5bb  prefixlen 64  scopeid 0x20<link>
        ether 42:43:34:2e:f5:bb  txqueuelen 1000  (Ethernet)
        RX packets 168  bytes 22755 (22.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 247  bytes 64167 (62.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 39  base 0xa000

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 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

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 1000  (IPv6-in-IPv4)
        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

The kernel module that is of interest is rt2800usb and is loaded in. the command 'lsmod' is shown below:

Code:
Module                  Size  Used by
rt2800usb              28672  0
rt2800lib             110592  1 rt2800usb
crc_ccitt              16384  1 rt2800lib
rt2x00usb              20480  1 rt2800usb
rt2x00lib              49152  3 rt2800lib,rt2800usb,rt2x00usb
rtl8188ee             106496  0
rtl_pci                32768  1 rtl8188ee
rtlwifi                94208  2 rtl_pci,rtl8188ee
mac80211              626688  6 rt2800lib,rtl_pci,rt2x00lib,rt2x00usb,rtl8188ee,rtlwifi
libarc4                16384  1 mac80211
cfg80211              602112  3 rt2x00lib,mac80211,rtlwifi

I can see that my usb wifi device is indeed plugged in with the command 'lsusb', the output is shown below:
Code:
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
In the directory /lib/firmware i have installed various iwlwifi firmware.

The command 'lshw -c network' results in:
Code:
  *-network
       description: Ethernet interface
       physical id: 2
       logical name: eth0
       serial: 42:43:34:2e:f5:bb
       size: 100Mbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=Jan_2016 duplex=full link=yes multicast=yes port=twisted pair speed=100Mbit/s
The command 'lspci' does not return any result.

The command 'rfkill list' returns:
Code:
rfkill: cannot open /dev/rfkill: No such file or directory
rfkill: cannot read /dev/rfkill: Bad file descriptor

The command 'iwconfig' returns:
Code:
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.
The command 'ifconfig wlan0 up' returns:
Code:
wlan0: ERROR while getting interface flags: No such device
From 'dmesg' i found a section that might be of interest:
Code:
[  262.173356] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  262.204790] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  262.330974] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[  309.244598] usbcore: registered new interface driver rt2800usb
Can anyone help me resolve this issue? If any other info is needed let me know. Thanks
 
Old 08-20-2023, 01:20 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 804

Rep: Reputation: 257Reputation: 257Reputation: 257
cfg80211 is loading fine. Seems like there's nothing to drive your specific wifi USB chipset. Looks like there's a number of modules that might support it, if you look through the kernel configuration for rtl devices. I'd also try this one: https://github.com/aircrack-ng/rtl8188eus
 
Old 08-21-2023, 03:04 AM   #3
AstroProgrammer
LQ Newbie
 
Registered: May 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
I downloaded the driver called rtl8188eu from the link below:
https://github.com/lwfinger/rtl8188eu/tree/master

I followed there instruction with a 'make all' on my host machine and cross-compiled, brought the generated 8188eu.ko file to my dev-machine and installed it with:
Code:
install -p -m 644 8188eu.ko /lib/modules/5.10.50zImage/kernel/drivers/staging/r8188eu/
Then i ran the command:
Code:
depmod -a 5.10.50zImage
Then i used the following command:
Code:
modprobe 8188eu
After that ifconfig returned my wlan0 device, and i can ping google.com so everything is working fine now.

Note: you may have to edit there Makefile and reconfigure the cross compiler and variable that points to the kernel source like i did.
 
Old 08-21-2023, 08:35 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
Thanks for telling us the rest of the story. Your post may well help someone else down the road.
 
  


Reply

Tags
debian 10 buster, networking, wifi problem



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0: ERROR while getting interface flags: No such device Cryptic.Dip Linux - Newbie 8 10-08-2022 04:23 AM
wlan0: ERROR while getting interface flags: No such device rahulnyk Linux - Wireless Networking 3 03-09-2020 04:52 AM
wlan0: ERROR while getting interface flag: No such device suranga1976 Linux - Newbie 1 04-12-2012 11:49 PM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration