Before you begin, it good idea to read through Yocto getting
started guide. And we assume you are using Ubuntu.
How to build Yocto
for Minnowboard Max drone:
1) Install require tool/software for Yocto build:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm
2) Download Yocto and meta-intel:
mkdir maxdrone
cd maxdrone
git clone http://git.yoctoproject.org/git/poky
cd poky
git clone
git://git.yoctoproject.org/meta-intel
3) Setup build directory
cd ..
source
poky/oe-init-build-env mybuild
4) Add meta-intel path to bblayers.conf
vi conf/bblayers.conf
add “/home/<user>/maxdrone/poky/meta-intel \”to BBLAYER section like below:
5) Add platform, RT and Linux version to local.config.
vi conf/local.conf
And add this line to the end of the file:
MACHINE ?=
"intel-corei7-64"
PREFERRED_VERSION_linux-yocto
= "3.14%"
PREFERRED_PROVIDER_virtual/kernel
= "linux-yocto-rt"
6) Create local Linux kernel for Kernel or driver customization (skip if not build for debug):
bitbake linux-yocto -c
kernel_configme -f
bitbake linux-yocto -c
menuconfig
You will see a menu like this, make sure you save and then
exit if you are making change to the configuration.
7) Build the image, we use sato sdk. Other image like “core-image-sato” if you are done with development. Also if you want build with yoction image with UI interface, try “hop” command instead of "bitbake".
bitbake core-image-sato-sdk
8) Once the OS image is build, it will be store in <Build Dir>/ tmp/deploy/images/intel-corei7-64, and we use dd to write to USB drive. You can use df to quickly search for the usb drive located, our case, it at /dev/sdc.
Then use DD to write to USB drive:
sudo dd if= core-image-sato-sdk-intel-corei7-64.hddimg of=/dev/sdc
Wait until the light on the USB drive stop blinking. Now you have a Yocto RT USB drive.
Have fun.
No comments:
Post a Comment