Diva

From Axel Public Wiki
Revision as of 16:39, 15 October 2014 by Axelpwiki (talk | contribs)
Jump to navigation Jump to search

PLC Runtime configuration on Diva board

The following instructions will help you to set up a Diva board from Dave, so that it can be used as a PLC target, with the ability to configure generic modules for I/O on CANopen fieldbus.

Prerequisites

  • Owning a Diva board with Divelk and Daku daughter-boards or equivalent hardware, and Linux-Xenomai kernel and filesystem.

Please see following link: http://www.dave.eu/dave-cpu-module-am335x-diva.html

  • Have a development environment for your Diva, please refer to the documentation here:
http://wiki.dave.eu/index.php/Category:Diva
and
http://wiki.dave.eu/index.php/Booting_Linux_Kernel

Installation steps

Set up a Diva board

You need a Diva board with a Linux kernel with Xenomai extensions, and a filesystem with relative user-space libraries.

Download PLC runtime software from Axel

You can download the archive TargetDiva_141015.tar.bz2 from the section Downloads of our website, under section Run-times PLC and Diva board PLC Run-time Uncompress the archive on a Unix-type filesystem.

Copy DTB on target board

Copy the file ./kernel_dtb/am335x-axel.dtb on your board.
Please refer to instruction here: http://wiki.dave.eu/index.php/Booting_Linux_Kernel.
Example: if you are booting from a tftp server, copy the file in the tftp publish directory and then, on your board u-boot prompt, type

setenv dtb_file am335x-axel.dtb
saveenv

Copy Linux kernel on target board

Copy the file ./kernel_dtb/uImage_axel on your board.
Please refer to instruction here: http://wiki.dave.eu/index.php/Booting_Linux_Kernel.
Example: if you are booting from a tftp server, copy the file in the tftp publish directory and then, on your board u-boot prompt, type

setenv bootfile uImage_axel
saveenv

Copy plc runtime on your board

Copy the content if the directory ./data/plc in the directory /data/plc on the target board. Please create it if it does not exist.

Find Hardware ID

On your target please run

cd /data/plc/
./LLExec

This command produce an output line like the following one

Hardware Id: 39d37fbaedc40000

Obtain a License file from Axel

Please write to support@axelsw.it and ask for a valid license file, please include your Hardware Id.