Ensure you first have built the base image for your board.
You will also need the SDK installed.
-
Find the directory with all your Yocto layer source files, this may be named
layers
,sources
or otherwise. This will depend on how your Yocto project is configured. -
cd
into your Yocto layers directory. -
Clone the SDK into your sources directory. Make sure you checkout the right version of the SDK for your Yocto version. This may be
kirkstone
,dunfell
, or otherwise.
git clone git@github.com:avnet-iotconnect/meta-iotconnect-demos.git -b {YOCTO_VERSION}
- Return to the top level with the
Makefile
and enter the docker environment:
cd ..
make env
- Add the SDK to bitbake:
bitbake-layers add-layer ../path/to/meta-iotconnect-demos
- Exit docker to the host:
exit
- You should now be back in the root project directory with the
Makefile
on the host where you can build the project:
make build
- If you are having issues with the demos not appearing, it may be worth a try replacing
IMAGE_INSTALL
withCORE_IMAGE_EXTRA_INSTALL
inmeta-iotconnect-demos/conf/layer.conf
. - If you are having connection issues try
ping 1.1.1.1
to test your network connection. Then tryping google.com
to see if your DNS works. If you are able to get network but no DNS you may need to install a DNS resolver such as systemd-resolved. - If your Yocto image fails to build you can modify the
Makefile
to changebitbake
tobitbake -k
, by adding-k
bitbake will continue even on failure. This sometimes is able to resolve a failing build. Another thing you can try is removing systemd from your builds. This has been observed to fail on some platforms such as the RZ.