Building OpenWrt - ljerezchaves/cogtra GitHub Wiki

Introduction

This tutorial explains how to build a custom OpenWrt firmware from source code in order to extend it with the CogTRA rate adaptation algorithm.

Preparing a Linux SO

To compile the OpenWrt from source code, the best option is to use a GNU/Linux distribution. Please, consider the instructions available at http://wiki.openwrt.org/doc/howto/buildroot.exigence

Obtaining OpenWRT

First of all, you need to checkout OpenWrt's code from SVN repository. The CogTRA algorithm was implemented and tested in OpenWrt Backfire version 10.03.1. So, we recommend using this specific version. To get a local copy of the SVN repository execute the following command:

svn checkout svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1/ ./openwrt

Then, you have to update and install the packages for this version:

cd ./openwrt/
./scripts/feeds update -a && ./scripts/feeds install -a

Configuring OpenWRT

Get access to openwrt configuration menu:

make menuconfig

Now you can select the options that matchs your hardware. Be careful! You should use an appropriate configuration for your device or it can become unreachable. If you are not familiar with this step, take a look at openwrt's site for help:

The CogTRA code in this project was tested in a Ubiquiti RouterStation Pro equipped with an Atheros Chipset. You can check the configuration for this hardware at RSPro Configuration.

Compiling OpenWRT

In order to compile the code just execute:

make V=99

An be patient...