Re: [Discuss OpenCPI] Remote Execution

From: Jerry Darko <jerry.darko_at_cnftech.com>
Date: Fri, 21 Feb 20 20:02:12 +0000

I don't have familiarity with using remote containers with release 1.5 but I've used it with release 1.6 and the current develop. I think some things have changed between 1.6 and 1.5. In 1.6 my flow for using remote containers was:


For centos make the edit this to ocpiremote.sh:
- tar -c -z -H -f $tmpdir/tar.tgz $files
+ tar -c -z -h -f $tmpdir/tar.tgz $files

Export the OCPI_SERVER_ADDRESSES variable using the ip address of the remote system and a port number


export OCPI_SERVER_ADDRESSES=<ip_address>:<port_number>


Then run


ocpiremote -P <software_platform> load


Assuming make deploy was previously run and if there is a hardware specific system.xml, I copy the contents of the system.xml located in opencpi/cdk/<hw-platform>/sdcard-<rcc_platform>/opencpi/ because the system.xml that is copied to the remote system after running ocpiremote load, is the software specific system.xml. On the remote system, in the sandbox directory, I edit the system.xml with the correct contents.

You will also have to open the firewall and that can be done with the command firewall-cmd --zone=trusted --add-interface=<name of interface> or using firewall-cmd gui.


After that I run:

ocpiremote start


If you get an EOF on socket error when trying to run an app, the ocpiserve process seems to disappear on the remote system so you have to start it up again. Check the log on the remote system sandbox to see what caused the error.


An example of running an app:


ocpirun -v -d testbias.xml


To kill a running server:


ocpiremote stop
________________________________
From: Brian Padalino <bpadalino_at_gmail.com>
Sent: Friday, February 21, 2020 10:40 AM
To: Jerry Darko <jerry.darko_at_cnftech.com>
Cc: discuss_at_lists.opencpi.org <discuss_at_lists.opencpi.org>
Subject: Re: [Discuss OpenCPI] Remote Execution

On Fri, Feb 21, 2020 at 10:39 AM Jerry Darko <jerry.darko_at_cnftech.com<mailto:jerry.darko_at_cnftech.com>> wrote:
Hi Brian,

What version of the framework are you using?

v1.5.1

But I'm also looking to work with v1.6.0 in the future, so if things are different between them, it would be nice to know as well.

Thanks,
Brian


Received on Fri Feb 21 2020 - 20:02:12 CST

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT