2014/Make your wireless router route -or anything else- the way you want it to, with OpenWrt.

From Open Source Bridge Wiki
Jump to: navigation, search

How to build an OpenWrt image from source to do just what you want it to on your suitably chosen hardware.

Speaker: Russell Senior

Return to this session's details

Contributed notes

                   Building OpenWrt
                    Russell Senior
                  Open Source Bridge
                    June 25, 2014

Steps to building OpenWrt:

  1. git clone git://git.openwrt.org/openwrt.git
  2. cd openwrt
  3. cp feeds.conf.default feeds.conf
  4. scripts/feeds update -a
  5. scripts/feeds install -a
  6. make menuconfig
  7. scripts/diffconfig.sh > .config-abbreviated
  8. time make -j$(grep -c ^processor /proc/cpuinfo)
  9. ls -al bin/ar71xx (for example)

In order to update and build again:

  1. git pull
  2. scripts/feeds update -a
  3. scripts/feeds install -a
  4. cp .config-abbreviated .config
  5. make defconfig
  6. time make -j$(grep -c ^processor /proc/cpuinfo)
  7. ls -al bin/ar71xx (for example)


If you think you've "bricked" your device, you are probably wrong. JTAG is not needed 99.99% of the time, and the other 0.0099% of the time it's not even possible without information you don't have and probably can't get. You can probably recover with TFTP or serial or both. Get a serial console cable (probably 3.3V TTL levels) suitable for your router, and stop flying blind! When you have one, you can tell if you really have bricked your router, in contravention of my exaggerated claims.

Details elided during talk

At the menuconfig stage:

  • < > does not build the package
  • <M> builds the package, does not include it in the image (it can be installed on the device later with opkg install)
  • <*> builds the package and includes it in the image







Home page:


Supported devices:


Prebaked images:


Creating packages:


Working with patches (Quilt):