dragino / openwrt-cc-15.05

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IoT Mesh & Yun Build for Dragino Devices -- Base on Chaos Calmer 15.05

This repository is a generic OpenWrt version from Dragino devices such as: MS14, HE, LG01,OLG01 and Yun Shield.

User manual of this version for IoT Build IoT Mesh Online Manual.

User manual of this version for Yun Build Yun Build Online Manual

How to compile the image?

git clone https://github.com/dragino/openwrt-cc-15.05.git openwrt-cc-15.05
cd openwrt-cc-15.05
./set_up_build_environment.sh
#build default IoT App on openwrt directory
./build_image.sh -a IoT

#build default Yun App on openwrt directory
./build_image.sh -a yun

After complination, the images can be found on openwrt-cc-15.05/image folder. The folder includes:

  • dragino-xxx--vxxxx-kernel.bin kernel files, for upgrade in u-boot
  • dragino-xxx--vxxxx-rootfs-squashfs.bin rootfs file, for upgrade in u-boot
  • dragino-xxx--vxxxx-squashfs-sysupgrade.bin sysupgrade file, used for web-ui upgrade
  • md5sum md5sum for above files

More build option can be viewed by running:

./build_image.sh -h

How to debug if build fails?

./build_image.sh -a yun -s

Above commands will enable verbose and build in single thread to get a view of the error during build.

How to customized a build?

As a example, if user want to customize a build named mybuild. mybuild include different packages and default files from the default build. User can do as below: To customize the packages

cd barrier_breaker
# run make menuconfig to select the packages and save
make menuconfig
#Copy the new config to TOP dir and rename it to .config.mybuild
cp .config .config.mybuild

To customize default files

#create default files in TOP dir
mkdir files-mybuild
#put files into this directory. 
#for example, if user want the final build has a default config file /etc/config/network. user can 
#put /etc/config/network into the files-mybuild directory (include directory /etc and /etc/config)

Then run the customzied build by running:

./build_image.sh -a mybuild

The build process will auto overwrite the default files or pacakges with the customized one. User can customize only default files or pacakges. The build will use the default from IoT build if not specify.

Have Fun!

Dragino Technology

About


Languages

Language:C 62.7%Language:Makefile 9.7%Language:Lua 8.8%Language:Shell 4.5%Language:C++ 3.8%Language:HTML 3.6%Language:Objective-C 1.6%Language:Perl 1.5%Language:Assembly 0.9%Language:M4 0.8%Language:TeX 0.5%Language:CSS 0.4%Language:JavaScript 0.3%Language:Java 0.2%Language:C# 0.2%Language:Visual Basic 0.2%Language:Yacc 0.2%Language:Python 0.1%Language:Lex 0.1%Language:Awk 0.0%Language:CMake 0.0%Language:Roff 0.0%