Difference between revisions of "Compile Firmware MS14"
From Wiki for Dragino Project
(→Compile A Mesh IoT firmware) |
(→Compile A Mesh IoT firmware) |
||
Line 23: | Line 23: | ||
Select modules and then run | Select modules and then run | ||
make -j8 | make -j8 | ||
− | This command will | + | This command will generate the customized firmware in the <span CLASS=greentext>ms14/bin</span> directory. User can test this firmware by this way. After testing is ok, user can set up their own customized build by: |
*cp '''ms14/.config''' to '''dragino2-AA-IoT/.config.YOUR_APP''' | *cp '''ms14/.config''' to '''dragino2-AA-IoT/.config.YOUR_APP''' | ||
*cp '''dragino2-AA-IoT/files-IoT''' to '''dragino2-AA-IoT/files-YOUR_APP''' | *cp '''dragino2-AA-IoT/files-IoT''' to '''dragino2-AA-IoT/files-YOUR_APP''' | ||
− | * run <span CLASS=greentext>./build_image.sh ms14 YOUR_APP</span> to build the firmware and get the files in dragino2-AA-IoT/image folder | + | *run <span CLASS=greentext>./build_image.sh ms14 YOUR_APP</span> to build the firmware and get the files in dragino2-AA-IoT/image folder |
Revision as of 21:06, 13 October 2014
Compile A Mesh IoT firmware
Below are tested under Ubuntu 10.04 and Ubuntu 14.04 LTS .
Get source code from Github
git clone https://github.com/dragino/dragino2.git dragino2-AA-IoT
Set up build environment
cd dragino2-AA-IoT ./set_up_build_enviroment.sh ms14
Build image
./build_image.sh ms14
You should be able to get the firmware in bin directory under image directory.
Customized Selected Modules
The ./build_image.sh ms14 will generated the firmware base on the default .config file. If user has changed the package selection. they can run below command in the ms14 directory (build directory) to select their preferable modules and build the firmware:
make menuconfig
Select modules and then run
make -j8
This command will generate the customized firmware in the ms14/bin directory. User can test this firmware by this way. After testing is ok, user can set up their own customized build by:
- cp ms14/.config to dragino2-AA-IoT/.config.YOUR_APP
- cp dragino2-AA-IoT/files-IoT to dragino2-AA-IoT/files-YOUR_APP
- run ./build_image.sh ms14 YOUR_APP to build the firmware and get the files in dragino2-AA-IoT/image folder