-
Notifications
You must be signed in to change notification settings - Fork 19
WiFi and ssh Configuration on RaspberryPi with Yocto Image
- This page describes how to setup Wifi on Yocto.
- A working example for Raspberry Pi can be found at this pull request
WiFi is region specific and therefore it is advisable to add the country to the build. This will enable your country specific specifications for WiFi. In your core-image.bb make sure to include the following:
-
The below code will add region specification database to your build
IMAGE_INSTALL:append = " wireless-regdb-static"
-
The below code will set United States as the build country. You can set the code to any country as you desired based on the ISO2A Country code
WIRELESS_REGDOM = "US"
-
Make the default configuration for Yocto image for raspberrypi3 .
-
Modify build.sh script to add wpa_supplicant and other required packages for Wifi and ssh. Make sure meta-python and meta-networking are added. Please Refer to this pull request for reference.
-
Build an image and flash it on SD card.
-
After booting RPi with new image, modify /etc/wpa_supplicant.conf as described here.
-
Reboot the RPi and login with root.
-
bring up wlan0.
ifup wlan0
Check with ifconfig if wlan0 got ip address.
Ping 8.8.8.8 or google.com.
login with putty from your laptop with ip address of wlan0. Ping to google from ssh window.