This section describes how to build the firmware for I2CD from source codes.
The following operations are performed under an Ubuntu LTS 14.04.4 environment. For a Windows or a Mac OS X host computer, you can install a VM for having the same environment:
- Download Ubuntu 14.04.4 LTS image from http://www.ubuntu.com
- Install this image with VirtualBox (http://virtualbox.org) on the host machine. 50GB disk space reserved for the VM is recommanded
In the Ubuntu system, open the Terminal application and type the following commands:
-
Install prerequisite packages for building the firmware:
sudo apt-get install git g++ make libncurses5-dev subversion libssl-dev gawk libxml-parser-perl unzip wget python xz-utils
-
Download OpenWrt source codes:
git clone [email protected]:Rosonix/openwrt.git
-
Prepare the default configuration file for feeds:
cd /path/to/openwrt cp feeds.conf.default feeds.conf
-
Add the I2CD feed:
echo src-git i2cd [email protected]:Rosonix/I2CD-feed.git >> feeds.conf
-
Update the feed information of all available packages for building the firmware:
./scripts/feeds update
-
Install all packages:
./scripts/feeds install -a
-
Prepare the kernel configuration to inform OpenWrt that we want to build an firmware for I2CD:
cp feeds/i2cd/config/i2cd_defconfig .config
-
Prepare the device tree source file for the I2CD hardware:
cp feeds/i2cd/dts/I2CD.dts target/linux/ramips/dts
-
Import the key (optional)
git archive --remote=ssh://[email protected]/rosonix/openwrt-build-key.git master key-build | tar -x git archive --remote=ssh://[email protected]/rosonix/openwrt-build-key.git master key-build.pub | tar -x
-
Start the compilation process:
make V=99
-
After the build process completes, the resulted firmware file will be at
bin/ramips/openwrt-ramips-mt7620-i2cd-squashfs-sysupgrade.bin
. Depending on the H/W resources of the host environment, the build process may take more than 2 hours.
Except where otherwise noted, all parts of this software is licensed under GPLv3.