Notifications
Clear all

Wifi does not work / Solution  

  RSS
Daniel Kasprowicz
(@daniel-kasprowicz)
Member
Wifi does not work / Solution

The following file must be created before the .img.gz can be created

"/etc/wpa_supplicant/wpa_supplicant.conf"

with the following content:

"ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=GB"

 

The "country" option in this file is not relevant at this time.

 

If this file is not created before the card flashes, it is likely that Pi Imager will not be able to properly configure wifi.

 

If you already have an image uploaded to the card and wifi does not work for you, just run the following commands.

1. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

2. Enter the code, see above and save.

3. sudo reboot -h now

4. sudo raspi-config

5. Select Localization Options - Set the wifi area

6. sudo reboot -h now

7. sudo raspi-config

8. Select Network Options and set up wifi

9. sudo shutdown -h now

Posted : 19/02/2022 12:31 pm
Tojik liked
Tojik
(@tojik)
Member Moderator
RE: Wifi does not work / Solution

You can also put the wpa_supplicant.conf in the boot partition and the pi will copy the file on boot. But I think there has to be none already present in /etc/wpa_supplicant/ fot this to work.

Posted : 19/02/2022 1:15 pm
Share: