Linux Deploy

If you are running a UNIX based system, you can copy your application to the module using either SSH or Samba. FTP and Telnet are also available, however for the development stage, we recommend SSH or Samba.

Setup SSH within the Linux VM by following these steps:

  1. Generate an SSH key.
  • Use the command “ssh-keygen -t dsa”.
  • Press Enter to accept the default file to save the key. Note: You may need to enter ‘y’ to accept an overwrite of an existing file.
  • Press Enter for no passphrase.
  • Press Enter again for same passphrase.
  1. Copy the key to the development kit.
  • Use the command ‘ssh-copy-id root@’, substituting the development kit’s IP address for .
  • Enter Yes to continue connection.
  • Press Enter for password. Note: See section below for secure SSH.
  1.     Test SSH by logging into the development kit.
  • Use the command ‘ssh root@’, substituting the development kit’s IP address for .
  • Exit from SSH.

Each time you want to copy the QML application to the development kit:

  1. Stop the QML Viewer and TIO Agent.
  • ssh root@ “source /etc/profile ; /etc/init.d/tio-agent stop”
  • ssh root@ “source /etc/profile ; /etc/init.d/qml-viewer stop”
  1. Copy files to/from the development kit.
  • Use the command “scp -r * root@:/application/src”
  1. Start the QML Viewer and TIO Agent.
  • ssh root@ “source /etc/profile ; /etc/init.d/tio-agent start”
  • ssh root@ “source /etc/profile ; /etc/init.d/qml-viewer start”

On the development kit:

  1. Log in on the debug port as root.
  2. Set a root password with the ‘passwd’ command.
  3. Follow instructions above, but enter the root password when prompted during the ‘ssh-copy-id’ command.
  1. Within the Linux VM, do the following:
  • Click on Connect to Server.
  • Enter the development kit’s IP address for Server.
  • Select Type of Windows Share.
  • Click on Connect without filling any other fields.
  • This opens a file browser showing files on the development kit.
  • Browse into the App folder, then into the SRC folder.
  1. Open a Minicom session on the USB port connected to the development kit.
  • If needed, login as “root”, no password.
  • Use these commands to stop the TIO Agent and the QML Viewer so you can upload your application:
    • /etc/init.d/tio-agent stop
    • /etc/init.d/qml-viewer stop
  1. Open a second file browser, browse into your QML application’s main source folder.
  • In the file browser showing the development kit, remove all files and folders in the SRC  folder.
  • Copy all files from your application’s source folder to the SRC folder on the development kit.
  1. In the Minicom session, use these commands to start the TIO Agent and the QML Viewer.
  • /etc/init.d/qml-viewer start
  • /etc/init.d/tio-agent start

Your QML application should now be running on the development kit.

Use either the SSH method or the file browser Samba method above to setup access to the development kit, then remove/replace your application’s binaries as appropriate. Specific instructions are beyond the scope of this document since every application will be unique.

Embedded Touchscreens Made Easy:
Up in Days, Smoothly to Production. Get started with a Development Kit.

Reach Technology is now a part of Novanta.

Sales and Engineering
545 First Street
Lake Oswego, OR 97034
503-675-6464
sales@reachtech.com
techsupport@reachtech.com

Manufacturing
4600 Campus Place
Mukilteo, WA 98275
service@reachtech.com

Please send payments to:
Novanta Corporation
PO Box 15905
Chicago, IL 60693
accounts.receivable
@novanta.com