-
Notifications
You must be signed in to change notification settings - Fork 108
Building Soletta™ Framework for MinnowBoard MAX
This page is intended to provide instructions about how to build and run Soletta on the MinnowBoard MAX.
If instead you prefer to just use a pre-built image, please check this page.
##Pre-requisites
- python3 and python3-jsonschema installed in the host machine.
- Familiarity with Yocto and BitBake
- This guide uses ~/yocto as the path to poky and other layers. If you put them anywhere else, adjust the instructions accordingly
- Create a directory to place yocto subdirs, e.g.:
mkdir ~/yocto
Poky (Yocto's reference distro):
cd ~/yocto
git clone git://git.yoctoproject.org/poky
cd ~/yocto
git clone git://git.yoctoproject.org/meta-intel
cd ~/yocto
git clone git://git.yoctoproject.org/meta-intel-iot-middleware
cd ~/yocto
git clone git://github.com/solettaproject/meta-soletta.git
##Image generation
####Load the environment:
cd ~/yocto/poky
source oe-init-build-env
####Add the layers to bblayers:
cd ~/yocto/poky/build
echo 'BBLAYERS += "~/yocto/meta-intel"' >> conf/bblayers.conf
echo 'BBLAYERS += "~/yocto/meta-soletta"' >> conf/bblayers.conf
echo 'BBLAYERS += "~/yocto/meta-intel-iot-middleware"' >> conf/bblayers.conf
####Set the specific machine:
echo 'MACHINE = "intel-corei7-64"' >> conf/local.conf
####For building without x11:
echo 'DISTRO_FEATURES_remove = "x11"' >> conf/local.conf
####SmallOS
Use the smallos distro definition, part of meta-soletta:
echo 'DISTRO = "smallos"' >> conf/local.conf
####Build With the configuration part done, it's time to start the build. Beware the first build takes a long time:
bitbake soletta-image
###Create bootable USB/SDCard:
With root permissions, run:
~/yocto/poky/scripts/contrib/mkefidisk.sh /dev/<target_device> ~/yocto/poky/build/tmp/deploy/images/intel-corei7-64/soletta-image-intel-corei7-64.hddimg /dev/<device_on_target>
-
target_device - the device name used by your host/build system. Usually /dev/sd[b-d] for USB stick and /dev/mmcblk0 for SD card.
-
device_on_target - it's the device the target will see. Usually /dev/sda for USB stick and /dev/mmcblk0 for SD card.
###Boot
By default, MinnowBoard boots to an EFI shell. If this happens, run the following command:
bootx64
Luckily, it is possible to change this, so the board boots the sd-card / USB stick. Do the following:
- Press F2 during the boot, to open the Setup.
- Boot Maintenance Manager → Boot Options → Change Boot Order
- Press Enter to popup the list
- Highlight EFI Hard Drive and use the
+
key to move it to the top of the list. - Press Enter and select Commit Changes and Exit
- Press Esc, select Reset System and press Enter