You'll need to complete these steps if you need to set up your board for Yocto.
The Yocto Project is an open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded products regardless of the hardware architecture.
Legato is compatible with Yocto 1.4.1.
Yocto Linux Directories
Pre-built Yocto Image
Rebuild Yocto Image
Flash Yocto Image
Custom Yocto Image
Untar the file Legato-Dist-Source-mdm9x15-14.04.tar.bz2 to a directory:
These file/directories will be extracted:
Yocto uses a layered model for its build system. In Legato, device-specific layers are meta-swi-
[target] and meta-swi-bin
.
Yocto 1.4.1 and poky environment documentation is available at: https://www.yoctoproject.org/documentation/archived?keys=&field_version_tid=45
The prebuilt directory contains a kernel and root file system that can be built using the command below. It's the same as what's flashed on the device, and can be used to return to a known state.
Instructions on how to flash these images to the device are given in the file README.bsp.
Instructions for rebuilding the image are contained in the file Legato-Yocto1_4/meta-swi-extras/README.build
Running the build script with no arguments will print out the help message. There is also a file called stdbuild.sh
to build the images with common options. This can take a long time the first time you run it. Once the build is complete, you'll find new images in the directory:
Links are created at the end of the build to point to the latest kernel (kernel) and root file system (rootfs)
To flash the images, the device must be in fastboot mode. From the shell prompt on the device run:
After a few seconds, the device will enumerate as an Android Bootloader Device. You can test this on the development PC with :
Then erase and rewrite the kernel and root filesystem partitions using the fastboot command. The partitions are called kernel and rootfs.
Because the Legato image is a Yocto-compliant BSP, there are many options for customizing.
Here's the easy way to add some packages to the rootfs:
For more complex customizations, refer to the Yocto documentation.
Copyright (C) Sierra Wireless, Inc. 2014. All rights reserved.