Installing OpenWRT Build Environment

Here are the procedures and required packages for installing an OpenWRT build environment on Ubuntu.

Consult the OpenWRT Wiki first then issue the commands.

sudo apt-get install git openssl libssl-dev unzip build-essential binutils flex bison autoconf gettext texinfo sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk python

git clone git://

NEW: git clone

./scripts/feeds update -a

./scripts/feeds install -a

wget -O .config

make defconfig

make menuconfig

make prereq

and we have 2 ways to reduce the build time:

sed --in-place=.bak -e 's/=m$/=n/g' .config

to disable all optional modules in the beginning


make -j4 V=s IGNORE_ERRORS=m

to ignore all broken packages while building.