Skip to content

Rosonix/I2CD-feed

Repository files navigation

I2CD documentation

Build the firmware from sources

This section describes how to build the firmware for I2CD from source codes.

Host environment

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:

Steps

In the Ubuntu system, open the Terminal application and type the following commands:

  1. 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
    
  2. Download OpenWrt source codes:

    git clone [email protected]:Rosonix/openwrt.git
    
  3. Prepare the default configuration file for feeds:

    cd /path/to/openwrt
    cp feeds.conf.default feeds.conf
    
  4. Add the I2CD feed:

    echo src-git i2cd [email protected]:Rosonix/I2CD-feed.git >> feeds.conf
    
  5. Update the feed information of all available packages for building the firmware:

    ./scripts/feeds update
    
  6. Install all packages:

    ./scripts/feeds install -a
    
  7. Prepare the kernel configuration to inform OpenWrt that we want to build an firmware for I2CD:

    cp feeds/i2cd/config/i2cd_defconfig .config
    
  8. Prepare the device tree source file for the I2CD hardware:

    cp feeds/i2cd/dts/I2CD.dts target/linux/ramips/dts
    
  9. 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
    
  10. Start the compilation process:

    make V=99
    
  11. 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.

License

Except where otherwise noted, all parts of this software is licensed under GPLv3.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published