User Tools

Site Tools


getting_started:deploy:deploy_cb20

This is an old revision of the document!


Deploy to cb20 Board

Preparations

The file config.sh.in contains entries for the destination of deploying.

target_IP_address=es140.ntb.ch      // use appropriate ip number or name
target_username=ost      
target_application_folder=/home/ost/

Deploying

Next, edit deploy.txt on the host in your project directory and enter the application program you want to transfer together with the necessary hardware configuration file, e.g.

build-armhf/simple-motor-control/simpleMotorControl
build-armhf/simple-motor-control/HwConfigBBBlue.json

If you wrote your own Say Hello with EEROS the file would look like

build-armhf/hello/helloworld

Finally, load them onto the target with

$ ./deploy.sh

Running your Application

ssh into the board with

$ ssh ost@192.168.7.2

For credentials see Beaglebone Blue.

Change into your target application folder and run the example

$ cd bin
$ ./helloworld
or
$ sudo ./simpleMotorControl -c HwConfigBBBlue.json

The flink utilities are only used for testing the experimental setup as given in Experimental Setup with a cb20 Board.
If you did not include the application https://github.com/eeros-project/simple-motor-control.git you have to alter the middle two lines and set the entries according to your needs. E.g. if you wrote your own say_hello the file would look like

install-armhf/lib/libeeros.so.1.2.0.0

build-armhf/helloworld

Obviously, this application does not make use of a hardware configuration file.

Finally, load them onto the target with

$ ./deploy.sh

CANopen

If you have configured you EEROS project with CANopen, the library will have been fetched and compiled automatically. It will have been statically linked to your appplication and there is no need to transfer is to the target.

The system must find the eeros and hardware wrapper libraries to dynamically load them. The following symbolic links must be created once.

ntb@cb20:$ cd /usr/lib/
ntb@cb20:$ sudo ln -s /opt/eeros/lib/libflink.so libflink.so
ntb@cb20:$ sudo ln -s /opt/eeros/lib/libflinkeeros.so.1.0.0.0 libflinkeeros.so.1.0.0.0
ntb@cb20:$ sudo ln -s libflinkeeros.so.1.0.0.0 libflinkeeros.so
ntb@cb20:$ sudo ln -s /opt/eeros/lib/libeeros.so.1.2.0.0 libeeros.so.1.2.0.0
ntb@cb20:$ sudo ln -s libeeros.so.1.2.0.0 libeeros.so

IMPORTANT Make sure the version information (….so.1.2.0.0) is not outdated! If you use newer versions of the libraries as given in deploy.txt you must adapt the links accordingly.

getting_started/deploy/deploy_cb20.1617032477.txt.gz · Last modified: 2021/03/29 17:41 by ursgraf