IoT Mesh -- A Generic OpenWrt Version with mesh, IoT, VoIP support for Dragino Devices (obsolete)
This repository is base on OpenWrt Attitude Adjustment 12.09. the newest source is moved to OpenWrt Barrier Breaker 14.07 at this link: CC Source. Please use new source code for development.
The user manual of this version can be found at IoT Mesh Online Manual.
There is another Arduino Yun Alike firmware version. With the source in this link
Difference between these two firmware can be found difference between IoT Mesh and Dragino Yun firmware
How to compile the image?
git clone https://github.com/dragino/dragino2.git dragino2-AA-IoT cd dragino2-AA-IoT ./set_up_build_enviroment.sh ms14 #build default IoT App on MS14 directory ./build_image.sh
After complination, the images can be found on dragino2-AA-IoT/image folder. The folder includes: *openwrt-ar71xx-generic-dragino2-kernel.bin kernel files, for upgrade in u-boot *openwrt-ar71xx-generic-dragino2-rootfs-squashfs.bin rootfs file, for upgrade in u-boot *openwrt-ar71xx-generic-dragino2-squashfs-sysupgrade.bin sysupgrade file, used for web-ui upgrade *md5sum md5sum for above files *custom_config Customized files and config for this build , as a back up
More build option can be viewed by running:
How to debug if build fails?
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 ms14 # 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.