Edison 1. Howto Build for Intel Edison - SecurityPlatformCoKr/meta-sp GitHub Wiki
Build for Intel Edison Howto
First, move to /opt
. Because long path name might cause build fail, shorter name is preferred.
cd /opt
Download and setup Edison source
Download edison-src-ww18-15.tgz from https://downloadcenter.intel.com/download/24910/Intel-Edison-Software-Release-2-1
Decompress tgz file and run setup.sh. This file checks out many git repositories.
tar zxf edison-src-ww18-15.tgz
cd edison-src/meta-intel-edison
mkdir -p ../build/downloads ../build/sstate_cache
./setup.sh --dl_dir=/opt/edison-src/build/downloads --sstate_dir=/opt/edison-src/build/sstate_cache
Add meta-sp
cd /opt/edison-src
mkdir sp
cd sp
git clone https://github.com/flihp/meta-measured.git
git clone -b daisy git://git.openembedded.org/meta-openembedded
git clone https://github.com/SecurityPlatformCoKr/meta-sp.git
edit /opt/edison-src/build/conf/bblayers.conf like this:
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/opt/edison-src/poky/meta \
/opt/edison-src/poky/meta-yocto \
/opt/edison-src/poky/meta-yocto-bsp \
/opt/edison-src/meta-intel-edison/meta-intel-edison-bsp \
/opt/edison-src/meta-intel-edison/meta-intel-edison-distro \
/opt/edison-src/poky/meta-intel-iot-middleware \
/opt/edison-src/meta-intel-edison/meta-intel-arduino \
/opt/edison-src/sp/meta-openembedded/meta-oe \
/opt/edison-src/sp/meta-openembedded/meta-networking \
/opt/edison-src/sp/meta-measured \
/opt/edison-src/sp/meta-sp/meta-sp \
/opt/edison-src/sp/meta-sp/meta-sp-edison \
\
"
BBLAYERS_NON_REMOVABLE ?= " \
/opt/edison-src/poky/meta \
/opt/edison-src/poky/meta-yocto \
"
just remove files breaking integrity
rm -f /opt/edison-src/sp/meta-measured/networking-layer/recipes-support/strongswan/strongswan_5.3.0.bbappend
Add one to the last part of /opt/edison-src/build/conf/local.conf:
BBMASK = "meta-measured/recipes-kernel/linux/linux-yocto_4.%.bbappend"
Fix some codes in meta-intel-edison/:
cd /opt/edison-src/meta-intel-edison
patch -p1 < ../sp/meta-sp/meta-sp-edison/utils/upstream.patch/meta-intel-edison-upstream.patch
Build with bitbake
source poky/oe-init-build-env
(this command changes working directory to build/) bitbake edison-image
wait more than 3 hours...
Post-processing
Because u-boot uses other kernel image format than existing one, intel's postBuild is not compatible with ours.
../sp/meta-sp/meta-sp-edison/utils/flash/postBuild.sh
Install image on Intel Edison
to update, you must change boot-loader using flashall.sh with --recovery option. To use --recovery option, you must install xfstk-dldr-linux
cd toFlash
./flashall.sh --recovery
./flashall.sh