To make the Raspberry pi 3 Wifi to work…we need to get or have atleast 2 files. But first we must create a
folder inside the /lib/firmware/
and name it brcm
. And in that folder we’ll put
brcmfmac43430-sdio.bin
and brcmfmac43430-sdio.txt
.
1
2
3
//make sure these are installed:
wpa-supplicant
wireless-tools
brcmfmac43430-sdio.bin file_download brcmfmac43430-sdio.txt file_download
Download and place the brcmfmac43430-sdio.bin
and brcmfmac43430-sdio.txt
inside the /lib/firmware/brcm
folder.
If the file above doesn’t make your wifi to work get it directly from the Mainline linux
Generate a configuration file for wpa_supplicant
.
1
2
3
4
5
6
7
8
9
// This commands must be run as root and sudo alone won't work
sudo su
wpa_passphrase MyWifi >> /etc/wpa_supplicant/wpa_supplicant.conf
// a blinking underline cursor after pressing enter
...type in your wifi password and hit enter again...
// Then exit
exit
Now edit /etc/wpa_supplicant/wpa_supplicant.conf
.
1
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
You’ll see similar to this and modify accordingly.
1
2
3
4
5
6
7
8
9
10
11
# reading passphrase from stdin
network={
ssid="MyWifi"
#psk="testtest" // You may now remove this line as the password are now hashed for security
psk=4dfe1c985520d26a13e932bf0acb1d4580461dd854ed79ad1a88ec221a802061
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
scan_ssid=1
- only needed if your access point uses a hidden ssid
Then run wpa_cli -i wlan0 reconfigure
and verify with ifconfig wlan0
.
Edit /etc/dhcpcd.conf
and add these lines at the very bottom.
1
2
3
4
interface wlan0
static ip_address=192.168.10.13
static routers=192.168.10.1
static domain_name_servers=8.8.8.8
There are several ways for configuration and i decided to stick with this one for now.
To Do using Netplan instead or iwd
Reboot and verify that wifi is now working and connected to your network.
https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm80211/brcm
https://help.ubuntu.com/community/WifiDocs/WPAHowTo
https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf
SETTING WIFI UP VIA THE COMMAND LINE