This repository has been archived by the owner on Jun 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
MinnowBoard MAX Instructions
Anselmo L. S. Melo edited this page Aug 12, 2015
·
30 revisions
#Pre-requisites
- Familiarity with yocto (point to a doc/tutorial here) + bitbake requirements (e.g. python2)
- 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 && cd ~/yocto
- Get poky (Yocto's reference distro): git clone git://git.yoctoproject.org/poky
- Get the Soletta layer: git clone git://github.com/solettaproject/meta-soletta.git
- Get Openembedded layer: git clone git://git.openembedded.org/meta-openembedded
#Compiling Soletta
##Load the environment:
cd ~/yocto/poky
source oe-init-build-env
##Add the layers to bblayers:
cd ~/yocto/poky/build
echo 'BBLAYERS += "~/yocto/meta-oe"' >> conf/bblayers.conf
echo 'BBLAYERS += "~/yocto/meta-soletta"' >> conf/bblayers.conf
##For building without x11:
echo 'DISTRO_FEATURES_remove = "x11"' >> conf/local.conf
##For building with Systemd (Some examples uses systemd services. This is recommended):
echo 'DISTRO_FEATURES_append = " systemd"' >> conf/local.conf
echo 'DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"' >> conf/local.conf
echo 'VIRTUAL-RUNTIME_init_manager = "systemd"' >> conf/local.conf
echo 'VIRTUAL-RUNTIME_initscripts = "initscripts"' >> conf/local.conf
echo 'VIRTUAL-RUNTIME_keymaps ?= "keymaps"' >> conf/local.conf
echo 'VIRTUAL-RUNTIME_dev_manager ?= "udev"' >> conf/local.conf
##If you want to access MinnowBoard via SSH, append the following:
echo 'EXTRA_IMAGE_FEATURES = "ssh-server-openssh"' >> conf/local.conf
##If you want an image with no password on root user by default, do:
echo 'EXTRA_IMAGE_FEATURES += " debug-tweaks" >> conf/local.conf
##Now after configuring everything you can run:
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/core-image-minimal-intel-corei7-64.hddimg /dev/<device_on_target>
-
target_device - the device name used by your host/build system. Usualy /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.