LEDE/OpenWRT — Installing firmware on a Raspberry Pi

LEDE/OpenWrt & IoT
Published in
2 min readJun 15, 2016


The Raspberry Pi is an awesome little bit of kit, with a ton of possible uses, all for a rock bottom price. Because of this, it is a really good tool to cut your teeth on for OpenWRT.

This guide is going to run you through getting OpenWRT installed on your Raspberry Pi 2, but most of these steps can be applied across the board.

Flash OpenWRT to your SD card — Windows

Windows users will need to download a bit of software called Win32 Disk Imager.

With this downloaded and installed, run the program and select your OpenWRT firmware in the image file section.

Then select the drive letter of the SD card in the Device dropdown box. Note: Please ensure that you have selected the correct drive, as this will wipe the data on the drive selected.

Once you have confirmed you are writing to the correct device, click on Write and wait for the progress bar to complete.

Flash OpenWRT to your SD card — Linux

For Linux based operating systems, you can install OpenWRT from the terminal.

First off connect your SD card and run the following command:


This should give you the SD card’s device name. Something similar to sdb or sdf.

Next run the following command:

dd if=/home/username/Downloads/firmware_name.img of=/dev/sdX bs=2M conv=fsync

Replacing the firmware location with the location you saved the firmware to. And replacing sdX with the device name from the previous step.

And that is it, now you have OpenWRT running on your SD that you can put on your Raspberry Pi 2.

First Connection Troubles

By default the IP of your OpenWRT device should be with DHCP disabled. This can make initially connecting a bit of a pain, as your network’s default gateway is usually which can cause conflicts and issues.

If you isolate yourself from your network (disabling your wireless and disconnecting any other wired connections) you should be able to simply connect to your Pi by connecting with an Ethernet cable and using

It is advised to either enable DHCP or change the static IP address.

To enable DHCP, connect to your Pi and run the following commands:

uci set network.lan.proto=dhcp
uci commit
/etc/init.d/network restart

To set a new static IP, connect to your Pi and run the following commands:

uci set network.lan.ipaddr=
uci commit
/etc/init.d/network restart

If you found this post helpful please let us know by clicking the ♥ below.

This blog was brought to you by Cucumber Wi-Fi. Cucumber helps you run a more efficient Wi-Fi network. Check it out here.

Cucumber Wi-Fi — control any (Wi-Fi) device from the cloud.



LEDE/OpenWrt & IoT

An orchestration tool for WiFi devices — Manage your networks from a single-pane of glass.