All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Setup Target Software

Here's how to set up and run your target from a Linux command-line. There are also Advanced Target Topics.

Host/Target Communications

You need to install a serial communication program (e.g., Minicom) to access the target and obtain an IP address.

Check the Dev Kit Cables UART2 settings are correct. If you're using Minicom, you access the config and initialize menus through CTRL+A Z.

Run as root user, so no password is required.

You'll need to Configure IP Address.

Once the host and target are communicating, you can complete the target setup.

Note
Use the setNet tool to set your MAC address so you don't have to go through ifconfig every time you reboot the target.

Copy Startup Scripts

Startup scripts are copied automatically to the target when instlegato is run the first time (see Copy Libraries and Executables) .

You can also copy the scripts manually. Using ssh, access the target:

ssh root@<target ip address>

When prompted for a password, press enter.

Then create the startup directory:

mkdir -p /mnt/flash/startup

Then copy the startup files to the target by running the following from the dev host:

scp targetFiles/mdm-9x15/startup/fg_* root@<target ip addr>:/mnt/flash/startup

Scripts beginning with fg_ are run first during startup, and then everything else is runs in the background. You can add more scripts to customize your target. fg_ scripts must have executable permissions or they will not run.

Note
In the rare case you need to prevent legato starting automatically, run
touch /mnt/flash/startup/STOPLEGATO

Reboot Target

Wait for the target to fully reboot. The target IP address may have changed. Check it using ifconfig through the serial console before proceeding.

Copy Libraries and Executables

To copy libraries and executables to the target, run:

$ instlegato build/wp7 <target ip address>

It will automatically start the Legato runtime components.

If target startup scripts don't exist or don't match the ones in:

targetFiles/mdm-9x15/startup

they'll be copied to the target.

Old startup files from the target will be copied to the host here:

targetFiles/mdm-9x15/backup

After the startup files are finished updating, the target will reboot.

After the target restarts, run instlegato again to finish installation.

Then you can build and run apps.


Here's Config ECM IPv6 info.

These are Target Directories installed.


Copyright (C) 2015 Sierra Wireless, Inc. Use of this work is subject to license.