modified on 15 September 2009 at 23:58 ••• 9,574 views

Setting up build environment in Ubuntu for re-compiling AirOS

From Ubiquiti Wiki

Jump to: navigation, search

Setting up build environment in Ubuntu for re-compiling AirOS

This Document will provide you the step by step procedure for getting your Build environment set for re-compiling your AirOS SDK

Step-1

Download and Install Latest Version Ubuntu 9.04

Step-2

Connect Ubuntu PC to the internet

Step-3

Update the package index files using the following command
apt-get update - This will update the repository details.

Step-4

Install the following packages to get the system ready for Build
Package Installation command
  1. Sharline  :apt-get install sharutils
  2. fackroot  :apt-get install fakeroot
  3. libz-dev  :apt-get install libz-dev
  4. patch  :apt-get install patch
  5. lzma  :apt-get install lzma
  6. flex  :apt-get install flex
  7. bison  :apt-get install bison

Step-5

Download Ubiquity SDK from the followin URL (Both SDK and Toolchain)
http://www.ubnt.com/support/sdk.php

Step-6

Install toolchain package using the following command
dpkg i toolchain-mips-ls_0.1-1.deb

Step-7

Uncompress the SDK files to a directory on your file system

Step-8

Go to SDK directory and follow the Instructions in the file README.SDK to re-compile the source.

Note:

All the commands require root privilege.
In order to gain root privilege type sudo bash at the terminal window and key-in password for the current user to get root.

--Tpvijay 23:58, 15 September 2009 (UTC)