Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

Troubleshooting • Not connected to Wi-Fi with wlan0.

$
0
0
Hi,
I use Raspberry Pi 4 and installed the OS. I tried using the wireless module on the board to connect to a Wi-Fi network.
I use Raspberry Pi 4 and installed the OS. I tried connecting to a Wi-Fi network using the Quectel EC25 modem, a wireless module mounted on the board.
However, the connection failed. I tried reinstalling the OS, but it didn't solve the problem.

Now on to the problem.
Raspberry Pi 4 can't connect to wifi and says wlan0 doesn't even exist.

When I do '$ping 8.8.8.8' the only result is 'Destination Net Unreachable'.

Code:

$ ping 8.8.8.8PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.From 192.168.225.1 icmp_seq=1 Destination Net UnreachableFrom 192.168.225.1 icmp_seq=2 Destination Net UnreachableFrom 192.168.225.1 icmp_seq=3 Destination Net UnreachableFrom 192.168.225.1 icmp_seq=4 Destination Net Unreachable^C--- 8.8.8.8 ping statistics ---6 packets transmitted, 0 received, +4 errors, 100% packet loss, time 179ms
When I do '$ ifconfig' it returns:

Code:

$ ifconfigeth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether e4:5f:01:e7:dc:41  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 0lo: 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 0usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet 192.168.225.36  netmask 255.255.255.0  broadcast 192.168.225.255        inet6 fe80::1936:bc8e:3b64:611d  prefixlen 64  scopeid 0x20<link>        ether 02:90:79:52:16:0c  txqueuelen 1000  (Ethernet)        RX packets 12335  bytes 765386 (747.4 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 12352  bytes 940549 (918.5 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
When I do '$ sudo iwlist wlan0 scan' it returns:

Code:

$ sudo iwlist wlan0 scanwlan0     Interface doesn't support scanning.
When I do '$ sudo ifconfig wlan0 up' it returns:

Code:

$ sudo ifconfig wlan0 upwlan0: ERROR while getting interface flags: No such device
When I do '$ journalctl -b | grep -E "NetworkManager|eth0|wlan0"' it returns:

Code:

$ journalctl -b | grep -E "NetworkManager|eth0|wlan0"Dec 10 22:06:46 raspberrypi dhcpcd[449]: eth0: waiting for carrierDec 10 22:06:46 raspberrypi kernel: bcmgenet fd580000.ethernet eth0: Link is DownDec 10 22:06:47 raspberrypi wpa_supplicant[535]: Could not read interface wlan0 flags: No such deviceDec 10 22:06:47 raspberrypi wpa_supplicant[535]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0Dec 10 22:06:47 raspberrypi wpa_supplicant[535]: Could not read interface wlan0 flags: No such deviceDec 10 22:06:47 raspberrypi wpa_supplicant[535]: Could not read interface wlan0 flags: No such deviceDec 10 22:06:47 raspberrypi wpa_supplicant[535]: WEXT: Could not set interface 'wlan0' UPDec 10 22:06:47 raspberrypi wpa_supplicant[535]: wlan0: Failed to initialize driver interfaceDec 10 22:06:47 raspberrypi ifup[448]: ifup: failed to bring up wlan0Dec 10 22:10:49 raspberrypi sudo[19810]:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/iwlist wlan0 scan
When I do '$ sudo systemctl start wpa_supplicant' it returns:

Code:

$ sudo systemctl start wpa_supplicant
When I do '$ iwconfig' it returns:

Code:

$ iwconfiglo        no wireless extensions.eth0      no wireless extensions.usb0      no wireless extensions.
When I do '$ lsmod | grep brcmfmac' it returns:

Code:

$ lsmod | grep brcmfmac
Setting my '/etc/nerwork/interfaces':

Code:

# interfaces(5) file used by ifup(8) and ifdown(8)# Please note that this file is written to be used with dhcpcd# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'# Include files from /etc/network/interfaces.d:source-directory /etc/network/interfaces.dauto wlan0iface wlan0 inet manualwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Setting my '/etc/wpa_supplicant/wpa_supplicant.conf':

Code:

country=GBctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ssid="my ssid"psk="my wifi password"key_mgmt=WPA-PSK}
Setting my '/boot/config.txt':

Code:

# For more options and information see# http://rpf.io/configtxt# Some settings may impact device functionality. See link above for details# uncomment if you get no picture on HDMI for a default "safe" mode#hdmi_safe=1# uncomment this if your display has a black border of unused pixels visible# and your display can output without overscan#disable_overscan=1# uncomment the following to adjust overscan. Use positive numbers if console# goes off screen, and negative if there is too much border#overscan_left=16#overscan_right=16#overscan_top=16#overscan_bottom=16# uncomment to force a console size. By default it will be display's size minus# overscan.#framebuffer_width=1280#framebuffer_height=720# uncomment if hdmi display is not detected and composite is being output#hdmi_force_hotplug=1# uncomment to force a specific HDMI mode (this will force VGA)#hdmi_group=1#hdmi_mode=31# uncomment to force a HDMI mode rather than DVI. This can make audio work in# DMT (computer monitor) modes#hdmi_drive=2# uncomment to increase signal to HDMI, if you have interference, blanking, or# no display#config_hdmi_boost=4# uncomment for composite PAL#sdtv_mode=2#uncomment to overclock the arm. 700 MHz is the default.#arm_freq=800# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=on# Uncomment this to enable infrared communication.#dtoverlay=gpio-ir,gpio_pin=17#dtoverlay=gpio-ir-tx,gpio_pin=18# Additional overlays and parameters are documented /boot/overlays/README# Enable audio (loads snd_bcm2835)dtparam=audio=on[pi4]# Enable DRM VC4 V3D driver on top of the dispmanx display stackdtoverlay=vc4-fkms-v3dmax_framebuffers=2[all]dtoverlay=vc4-fkms-v3ddtoverlay=dwc2,dr_mode=hoststart_x=1gpu_mem=128dtparam=i2c_vc=onenable_uart=1dtoverlay=uartxdtoverlay=uart0dtoverlay=uart1dtoverlay=uart2dtoverlay=uart3dtoverlay=uart4dtoverlay=uart5dtoverlay=spi1-1csdtoverlay=disable-ct
I don't know where to start to solve the problem. Please help me how to connect wifi to wlan0.
Thanks in advance.

Statistics: Posted by wkh8913 — Wed Feb 21, 2024 2:56 pm



Viewing all articles
Browse latest Browse all 3923

Trending Articles