Skip to content

OpenWrt Compilation

Uros Petrevski edited this page Nov 15, 2015 · 9 revisions

OpenWrt for WeIO - Compilation Instructions

  • Install tools that are needed for correct compilation. For example on Ubuntu Linux you will install these packages
sudo apt-get update
sudo apt-get install git-core subversion build-essential libssl-dev libncurses5-dev unzip gawk libxml-parser-perl
  • Clone the OpenWrt repo
git clone git://git.openwrt.org/15.05/openwrt.git
  • Clone the WeIO repo and switch to branch 'next'
git clone https://github.com/nodesign/weio.git
cd weio
git checkout next
  • Copy and run installWeio.sh

Copy https://github.com/nodesign/weio/blob/master/openWrt/installWeio.sh to the OpenWrt root directory, and from that directory run:

sh ./installWeio.sh <path_to_weio>

Where <path_to_weio> is the relative path to the checked out https://github.com/nodesign/weio.git

  • Run make menuconfig and exit immediately
make menuconfig

This is important to avoid the warning that your configuration is out of sync.

  • Compile the OpenWrt
make -j 4
  • Copy the update to an SD card
    Navigate to the folder openwrt/bin and look for a file openwrt-ar71xx-generic-weio-squashfs-sysupgrade.bin. Copy it to the SD card and rename it to weio_recovery.bin.

  • Update the board
    Plug the SD card to the board, and hold the Soft Reset button while applying power via USB. U-boot will automatically update the board with the newest firmware. More details for how to manually flash your WeIO boards you can find here : https://github.com/nodesign/weio/wiki/WeIO-Recovery