How to create an embedded linux image for freescale imx6 board using yocto

Creating yocto image for freescale device is pretty easy . I recommend you to use any Ubuntu flavored Linux for your build server.

Now It’s the time to install the dependencies for yocto . Run the below command in terminal

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath libsdl1.2-dev xterm

Go to your home directory and create a folder named yocto-fsl

mkdir -p yocto-fsl

Let’s go to yocto-fsl folder.

cd yocto-fsl
git clone -b jethro git://git.yoctoproject.org/poky.git

Now we need to download all the freescale bsp along with the yocto using repo tool.

curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod a+x ./repo
./repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
repo sync

Now you need to call the setup-environment script to initialize the build environment for freescale boards.

source ./setup-environment build

You can find a directory named build in the current directory ,Let’s go to build directory

cd build

Now we need to update the configuration field named machine as nitrogen6x

vi conf/local.conf

We are ready,Run the below command .

bitbake fsl-image-multimedia

or 

bitbake fsl-image-machine-test (Minimal version)

Once the above command executes successfully,you can find the image in build/temp/images folder . The image with the extension .sdcard can be used directly with dd command to copy it into your storage device.

Leave a Reply