To install OpenWrt build system to create antenna firmware we need to install prerequise
sudo apt-get update sudo apt-get install build-essential subversion mercurial git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl unzip
Clone the latest stable version of the git repository of OpenWrt (this creates a directory ‘openwrt’, which is the OpenWrt build system build-directory) in our case Chaos Calmer
git clone git://git.openwrt.org/15.05/openwrt.git
Download and install all available “feeds”
cd openwrt ./scripts/feeds update -a ./scripts/feeds install bmon ./scripts/feeds install coova-chilli ./scripts/feeds install curl ./scripts/feeds install git ./scripts/feeds install htop ./scripts/feeds install iwinfo ./scripts/feeds install luasocket ./scripts/feeds install libuci-lua ./scripts/feeds install netperf ./scripts/feeds install -a -p routing ./scripts/feeds install tinyproxy ./scripts/feeds install wget
Have a bug need to be fix with the package of coova-chilli (solved in the future release Bleeding Edge), you need to edit the file package/feeds/packages/coova-chilli/Makefile
like this:
# around line 138 you have: $(INSTALL_DIR) $(1)/usr/lib/iptables \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/; \ #Add the condition to fix: $(if $(CONFIG_PACKAGE_kmod-ipt-coova), \ $(INSTALL_DIR) $(1)/usr/lib/iptables; \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/; \ )
Working with Feeds, The list of usable feeds is configured from the feeds.conf
file (or feeds.conf.default
) and for list available pas
./scripts/feeds list
Make OpenWrt build system check for missing package and launch the menu to select package
make defconfig make prereq make menuconfig
For specific configuration need to create a folder files in openwrt directory and put inside your config (like /etc/config/firewall)
Launch the build of the firmware:
make V=99
To put the firmware on the antenna you can use one of the method below
- By tftp: put the antenna in tftp mode and use a freeware like pumpkins to put the firmware
- By sysupgrade: if you have already openwrt on and you want to keep the config in ssh on antenna do a
sysupgrade -v /tmp/openwrt-ar71xx-xxxxxxxx.bin
- By mtd: if you want a clean system use in ssh the command
mtd -r write /tmp/openwrt-ar71xx-xxxxxxxx.bin firmware
Leave a Comment
You must be logged in to post a comment.