September 30, 2013

Yocto Dora release (for i.MX6)


In case you missed it, the Yocto Dora branch arrived late on Friday night. Please join me in thanking Otavio and the meta-freescale team for working late and getting this done.

The Dora branch contains support for our latest kernel directly, so you can follow Daiane’s excellent instructions for how to build and simply replace dylan with dora in Step 1 (Download the Source Code).

We built an image over the weekend and have been testing a build of fsl-image-gui today. It’s performing quite well, and contains support for both GPU X acceleration and GStreamer video acceleration.

The steps to build were simple:

~/$ mkdir yocto && cd yocto
~/yocto$ repo init -u -b dora
~/yocto$ repo sync
~/yocto$ MACHINE=nitrogen6x . setup-environment build
~/yocto/build$ bitbake fsl-image-gui
... long time passes
~/yocto/build$ ls -lh tmp/deploy/images/nitrogen6x/
-rw-r--r-- 1 user group 996M Sep 28 14:55 fsl-image-gui-nitrogen6x-20130928181014.rootfs.sdcard

Installing to SD card is also very straightforward. Assuming your SD card shows up as /dev/sdc, you can use these commands to write it:

~/yocto/build$ sudo umount /dev/sdc*
~/yocto/build$ sudo dd if=tmp/deploy/images/nitrogen6x/fsl-image-gui-nitrogen6x-20130928181014.rootfs.sdcard of=/dev/sdc

To make things easy for you, we’ve uploaded an image to our Cloud storage site:

This image should be usable directly using dd under Linux as shown above, or by using Alex Page’s USB Image Creator under Windows.

Note that the Yocto build process generates a small partition for the root filesystem in partition 2, and you might want to use resize2fs to expand it to use the rest of your SD card.