config.sh.in contains entries for the destination of deploying. Set these entries to
target_IP_address=es140.ntb.ch // use appropriate ip number or name target_username=ost // use appropriate user name target_application_folder=/opt/eeros
Now, make sure that the directory /opt/eeros/ exists on the target. If not, ssh into the board, mount the read-only file system as read-write, create the directory, and set its ownership to user toradex with
$ sudo mount / -o remount,rw $ sudo mkdir /opt/eeros $ sudo chown ost:ost /opt/eeros/
deploy.txt in your project directory and enter all the programs and libraries you have to transfer.
install-armhf/lib/libeeros.so.188.8.131.52 install-armhf/lib/libflinkeeros.so.184.108.40.206 install-armhf/lib/libflink.so build-armhf/simple-motor-control/HwConfigFlink.json build-armhf/simple-motor-control/simpleMotorControl build-armhf/flinklib/utils/flinkanalogoutput build-armhf/flinklib/utils/flinkdio build-armhf/flinklib/utils/flinkcounter
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 with EEROS the file would look like
Obviously, this application does not make use of a hardware configuration file.
Finally, load them onto the target with
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.220.127.116.11 libflinkeeros.so.18.104.22.168 ntb@cb20:$ sudo ln -s libflinkeeros.so.22.214.171.124 libflinkeeros.so ntb@cb20:$ sudo ln -s /opt/eeros/lib/libeeros.so.126.96.36.199 libeeros.so.188.8.131.52 ntb@cb20:$ sudo ln -s libeeros.so.184.108.40.206 libeeros.so
Make sure the version information (….so.220.127.116.11) is not outdated! If you use newer versions of the libraries as given in
deploy.txt you must adapt the links accordingly.