element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Internet of Things
  • Technologies
  • More
Internet of Things
Blog Getting Started with the MangOH Green and Legato 16.07 on Ubuntu 16.04.1
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kas.lewis
  • Date Created: 11 Nov 2016 4:30 PM Date Created
  • Views 725 views
  • Likes 3 likes
  • Comments 0 comments
Related
Recommended

Getting Started with the MangOH Green and Legato 16.07 on Ubuntu 16.04.1

kas.lewis
kas.lewis
11 Nov 2016

IMAG1544-1.jpg

 

The MangOH Green is a board developed by Sierra Wireless to allow for easy development with their WP modules. These modules are specifically built for mobile/cellular IoT and have both cellular and GPS radios built into the chip. The MangOH Green runs a Linux application framework called Legato. Sierra Wireless has been working hard to keep the software moving forward. This has produced a number of versions each with subtle changes, and while there is a starter's guide for Legato that document has now become partially dated. This along with the relative newness of the manGO board and unique approach there is not a lot information to be found searching online, this however has been changing. As mangOH/legato becomes more popular the online content will also become more plentiful

 

With first hand experience as well as great help, from both the forums and mangOH personal,  in getting my MangOH board running I have decided to document the steps I followed to get the newest virtual machine version  “mangOH Dev using Legato 16.07 on Ubuntu 16.04.1” up and running.

 

The first thing to mention is the password for this version of the VM has been changed from “legato” to “mangoh”. While this has not been documented this was asked on the forums and has been answered. NOTE: This is only for 16.07 but moving forward the password will either be removed altogether or remain as “mangoh”.

 

The overall process follows a few basic steps each of which will be further explained below. The first step is to download and install the VM from mangOH. Then the firmware on the mangOH board should be updated. In the VM the environment variables are added to the batch file, the repository is updated, legato is updated and installed on the mangOH board. Finally the timerLed demo is compiled and installed on the mangOH board and the application is started. Each of these steps are explained in better detail in the steps below. It should be noted that steps 1 - 12 should only need to be done the first time the mangOH board is used. After the first time either 11 and 12 can be used or 13 - 15 can be used to add a new application to the mangOH board. Steps 16 - 19 always needs to be done to have the Legato application started on the mangOH board.

 

  1. Download VM from the mangOH site
  2. Install Oracle VM Virtualbox
  3. Attach the mangOH board to the PC and update the firmware
    1. Download the “Generic” Windows EXE file
    2. Double click the executable (run the file with the board attached to the PC)
    3. Follow the onscreen instructions (it may take some time). If the system hangs for more than 20 minutes do a power cycle on the board and restart.

2016-11-09 17_39_39-C__Users_Kas_AppData_Local_Temp_RarSFX0_fdt.exe.png

  1. Install the VM
    1. Follow the step #4 “Prepare your computer for Legato development” in either   - “mangOH Fundamentals— Windows (Linux VM) + Legato CLI”

-  “mangOH Fundamentals— Windows (Linux VM) + Legato Developer Studio”     These PDFs can be found under “getting started” on at the mangOH site

In the VM

  1. Open the VM and add  “source ~/legato/packages/legato.sdk.latest/resources/configlegatoenv” to .bashrc file
    1. Open a terminal window
    2. $edit .bashrc
    3. Scroll down to the bottom of the press the “insert” key on your keyboard
    4. Add the “source…” line at the very bottom of the file (after the last “fi”)
    5. Lastly enter “:wq” this will save and exit the editor

(Note: Moving forward to to Legato 16.10 this step will no longer be needed)

image

  1. cd mangOH/
  2. repo sync

image

  1. cd legato/
  2. source ~/legato/packages/legato.sdk.latest/resources/configlegatoenv

(This step is not needed if close and then reopen the terminal)

  1. make wp85

image

  1. Add timerLed.adef to mangoh.sdef
    1. Open emacs
    2. file->Open file
    3. mangOH->mangOH->mangoh.sdef
    4. Under “apps:{“ add “$MANGOH_ROOT/samples/tutorials/hardwareInterfaces/gpio/timerLed.adef”
    5. Save and close emacs

2016-11-09 21_07_34-Program Manager.png

  1. instlegato wp85 192.168.2.2

image

  1. cd mangOh/mangOH/samples/tutorials/hardwareInterfaces/gpio/TimerLed/
  2. mkapp -t wp85 timerLed.adef

image

  1. app install timerLed.wp85.update 192.168.2.2

image

  1. ssh root@192.168.2.2
  2. app status (should see “[stopped] timerLed”)

image

  1. app start timerLed

image

19. You should now see the LED next to SW200 and the reset switch blinking

 

I have tested these steps out on a new install of the VM and have not encountered any issues. If you do have any issues or or have any comments regarding the process please share them in the comments below.

 

I would like to mention that the constant addition of new APIs for the mangOH board have made programing the board that much easier. As someone with a background in embedded code on microcontrollers, digging into the kernel to get to the GPIOs or other ports would be a quite a feat. The mangOH team is also working to add more demos, thi would allow someone wanting to create a prototype to have numerous starting points as well as projects that they could merge to get a usable prototype for the concept they are trying to display.

 

As I keep working with this board I will hopefully add more blogs giving over my experience with working with the mangOH Green board.

 

 

Original blog entry here:

Getting Started with the MangOH Green and Legato 16.07 on Ubuntu 16.04.01

More pictures here:

The Embedded Shack

Upcoming reviews and info here:

Kazzzzzzzzzzz

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube