OpenWrt official supported Raspberry Pi. The latest OpenWrt release as of today already support for Raspberry Pi A, Raspberry Pi B, Raspberry Pi B+, and Raspberry Pi models.
The Raspberry Pi is supported in the brcm2708 target.
- Raspberry Pi (Click here to buy from Amazon)
- Power adapter (A popular power supply is the Apple 12W iPad charger, supplying 5V 2.4A. Similar high-powered mobile phone and tablet chargers should suffice. Using cheap power supplies off eBay is not recommended, as they provide a very uneven and noisy current which can lead to unreliable operation.)
- SD Card (Regular SD or Micro SD based on the Raspberry Pi model you get)
- PI Case
- USB Ethernet adapter or WiFi dongle
- Ethernet cable
- HDMI monitor - setup only
- USB Keyboard - setup only
- Computer for SD Card image creation and configuration - setup only
Step 1: Download the relevant openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img (For Raspberry Pi A/B/B+) or openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img image (For Raspberry Pi 2).
Open http://wiki.openwrt.org/toh/raspberry_pi#supported_versions and choose the most recent update from the download list.
Step 2: Flash OpenWrt to an SD/Micro SD card.
For Linux desktop:
1. Insert your SD/Micro SD card and run:
The most recent message should give you the SD card's device name, such as sdb or sdf or similar
2. As the root user, use dd to copy the image file to the device you identified previously, for example:
For Raspberry Pi A/B/B+:
dd if=/home/username/Downloads/openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img of=/dev/sdX bs=2M conv=fsync
For Raspberry Pi 2
dd if=/home/username/Downloads/openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdX bs=2M conv=fsync
Replace the sdX with your device name you already get from previous step, such as sdb or sdf.
For Windows desktop:
On a Windows desktop, use Win32DiskImager to copy the img file to your SD card's drive letter
At this point your are ready to boot OpenWrt on Raspberry Pi.
Step 3: Boot the Pi with OpenWrt
- Insert the SD/Micro SD card into the Raspberry Pi
- Attach HDMI to monitor
- Attach keyboard
- Plug in a network cable from your computer to the Raspberry Pi’s built in network port
- Attach power
Once the console has stopped scrolling messages, press the enter key to open the command line prompt.
Run the following command:
Pay attention to the inet addr line. You will need that address to login and manage the OpenWrt.
Open a web browser to the IP address you identified above and you will be able to configure your OpenWrt by using the interface now.