TS-4900 Ubuntu Core Sections

From embeddedTS Manuals
Revision as of 10:57, 22 December 2016 by Mark (talk | contribs) (Created page with "Ubuntu Core is a new distribution provided by Canonical targetted towards embedded/IoT projects. This requires users to generate "snap" packages for their application, but pr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Ubuntu Core is a new distribution provided by Canonical targetted towards embedded/IoT projects. This requires users to generate "snap" packages for their application, but provides a mechanism for save remote updates to the OS and packages. Our kernel is based on Ubuntu 16's 4.4 based kernel to provide the best compatibility and support. Bug fixes to units using our kernel snap are provided through the ubuntu core app store.

Read more about Ubuntu Core here.

Getting Started with Ubuntu Core

Download our latest image here.

Write this to an SD card with:

wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions\
/ubuntu-core/ubuntu-core-16-latest.img.bz2
bzip2 -d ubuntu-core-16-latest.img.bz2
# Assuming /dev/sdd is your SD card.  Check dmesg after inserting for yoru device.
# Make sure this is the block device (/dev/sdd) and not a partition (/dev/sdd1).
dd if=/path/to/ubuntu-core-16-latest.img bs=4M of=/dev/sdd conv=fsync && sync

This can be written to emmc using the #TS-4900_Production USB production mechanism.

Next make an Ubuntu SSO account. Generate SSH keys and upload your SSH keys to your account.

Once written to either boot media start up the board. After boot has completed it will leave you at a screen:

Press Enter to Configure

Press enter and it will have you confirm DHCP, or use a static network configuration. Once configured it will ask for your Ubuntu SSO username. This will create an account on the Ubuntu Core image and allow access only with your SSH keys present on the store. After it has fetched your keys it will print out the ssh commands to connect to your unit which will now allow access just with your SSH keys.

Connect to the board with:

ssh <ubuntu SSO username>@<IP of board>
Note: This must be run on a system that has your SSH keys installed.