How to install OpenWrt on Raspberry Pi

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. Parts:

  • 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. Openwrt Raspberry Pi Supported Version Step 2: Flash OpenWrt to an SD/Micro SD card. For Linux desktop: 1. Insert your SD/Micro SD card and run:

1
dmesg

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+:

1
dd if=/home/username/Downloads/openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img of=/dev/sdX bs=2M conv=fsync

For Raspberry Pi 2

1
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 Openwrt Raspberry Pi Write Image 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:

1
ifconfig eth0

Pay attention to the inet addr line. You will need that address to login and manage the OpenWrt. Openwrt Raspberry Pi Ip 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.

Add 802.11-n support to BCM47xx and BCM53xx OpenWrt Google Voice + OBi202 = Free home phone service

Comments