Warp | Yocto Linux – Connect to WiFi Network

By October 19, 2016Tutorial

To get warp connected to the Internet quickly, the Yocto Linux release for warp conveniently has a shell script: /home/root/wifi_connect, which enables you to get connected to a nearby WiFi network.

You may have to set the execute bit on this file to be able to run it as some earlier releases of Yocto Linux for Warp did not have execute permissions on the file. You can run:

chmod 750 /home/root/wifi_connect

to ensure that this is set correctly.

The wifi_connect script takes two arguments as input.
Argument #1: WIFI-NET
Argument #2: PASSWORD

For example:

/home/root/wifi_connect Starbucks pass1234

If you’d like to watch a YouTube video on this topic, see here: Warp – Yocto Linux – Connect to a WiFi Network

If you do not see the wifi_connect script under /home/root of your Warp, you can make the wifi_connect script using vi and the command line to include the following contents:


#!/bin/sh
ip link set wlan0 up
iw dev wlan0 scan
mkdir -p /etc/wpa_supplicant/
wpa_passphrase $1 $2 >/etc/wpa_supplicant/file.conf
wpa_supplicant -B -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/file.conf
iw dev wlan0 link
udhcpc -i wlan0

Leave a Reply