Coder Social home page Coder Social logo

matrach / openwrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heni-project/openwrt

0.0 0.0 0.0 140.7 MB

OpenWrt for HENI CherryMote

License: GNU General Public License v2.0

Shell 4.60% C++ 3.76% Python 0.12% Perl 1.59% C 73.08% Objective-C 2.10% Assembly 2.28% Awk 0.02% Makefile 11.27% CMake 0.01% Yacc 0.10% Lex 0.05% M4 1.01% Roff 0.01%

openwrt's Introduction

This is the buildsystem for the OpenWrt Linux distribution for HENI's CherryMote.

=========== Preparing work environment and building image ============

*Caution, the openwrt directory easily grows to 7-8GB*

Ubuntu 16.04 LTS is recommended.

1. Clone HENI openwrt fork from GitHub

$ git clone https://github.com/heni-project/openwrt.git -b cherrymote
$ cd openwrt/

2. Add HENI package feed

$ echo "src-link heni </absolute/path/to/heni/repo>/software/supervisor/openwrt-feed" >> feeds.conf.default

3. Update package definitions and install symlinks

$ ./scripts/feeds update -a
$ ./scripts/feeds install -a

You might need dependencies:

$ sudo apt install gawk zlib1g libncurses5 g++ flex protobuf-c-compiler mercurial subversion libncurses5-dev libssl-dev

4. Check if our changes to `.config` are overwritten by update, e.g.:

$ git diff | grep watchdog-client

If so, restore previous version from repository:

$ git checkout .config

5. Set image version

Edit manually CONFIG_HENI_IMAGE in `.config` or use `make menuconfig` (Image configuration -> Version configuration options -> HENI image version).

Then clean base-files package:

$ make package/base-files/clean

6. Build image

$ make

First build involves preparing cross-compiler and other tools and is quite
lengthy. Subsequent builds should take no more than a few minutes.
This should create the image in build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/openwrt-ramips-rt305x-olinuxino-rt5350f-squashfs-sysupgrade.bin

7. Upload image to the device

Using heni-cli, e.g.:

$ heni supervisor update -d dev:node0 ./image.bin

openwrt's People

Contributors

csiluszyk avatar epawlowska avatar selfbg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.