Building a standard Intel® Edison image requires downloading and installing several prerequisite packages. These instructions are valid for a recent Ubuntu Linux* distribution and should be valid for other distributions with minor changes.
Make sure your working directory is not part of an encrypted file system, such as eCryptFS. Because encrypted file systems restrict file length, the build will fail.
To build a standard Intel® Edison image, do the following:
- Install the prerequisite packages with the following command:
sudo apt-get install build-essential git diffstat gawk chrpath texinfo libtool gcc-multilib
Download the BSP source package from: http://iotdk.intel.com/src/3.5/edison/iot-devkit-yp-poky-edison-20160606.zip. The package includes the full Yocto Project* environment, and Intel® Edison-specific Yocto recipes to build the image (including the Linux kernel), a bootloader, and all necessary packages. Download the BSP source package to your working directory and decompress it.
Run the following commands to build the Intel® Edison board image:
source oe-init-build-env ../build_edison/
bitbake edison-image u-boot
- When the bitbake process completes, images to flash are created in the edison-src/build/tmp/deploy/images/edison directory. To simplify the flash procedure, run the script below to copy the necessary files to the build/toFlash directory:
zip -r toFlash.zip toFlash
2.1 – Build the Intel® Edison native SDK
To cross-compile native applications for your image, you must generate an SDK containing a cross-compiler toolchain and sysroot. You can generate a full SDK for the Intel® Edison Development Board with the following command:
bitbake edison-image -c populate_sdk
This bitbake command creates the SDK installer script: