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.6.1
Untar the file Legato-Dist-Source-mdm9x15-15.01.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.6.1 and poky environment documentation is available at Yocto docs
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_6/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)
The easiest way to flash a Yocto image is through Windows. The steps are the same as upgrading to the latest firmware that includes flashing the Yocto image:
SWI9X15W_06.03.39.00-wp_yocto-cwe.exe
to your host. SWI9X15W_06.03.39.00-wp_yocto-cwe.exe
by double-clicking the file. After the image flash process completes, it will advise it's resetting the target.Connect to the target's AT Port (through HyperTerminal or Tera Term), and run ati
to verify the flash update was successful. Output will look like this:
Manufacturer: Sierra Wireless, Incorporated Model: WP7102 Revision: SWI9X15W_06.03.39.00 r23799 CNSHZ-AR-BUILD 2014/xx/xx 13:02:24 IMEI: (Your imei) IMEI SV: 0 +GCAP: +CGSM,+FCLASS,+DS
You can flash the Yocto images on Linux;, 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. All rights reserved.