OpenROV / openrov-software

Meta project for all of the OpenROV Software projects
http://openrov.com
Other
422 stars 188 forks source link

How to deploy cockpit to the other platform(except rasp and bb) ? #635

Open flymaxty opened 7 years ago

flymaxty commented 7 years ago

Hi all, I am trying to deploy cockpit to Intel Joule, but I don't know how to start with it. I tried to run cockpit directly on Intel Joule and it failed with "Error: unknown platform", and then I found there is a folder called platform-manager on openrov-cockpit/src/system-plugins, there's a readme.md in the folder, but the description looks like out of date. So the question is, in order to deploy cockpit to Intel Joule, what should I prepare in folder platform-manager and is there anything else should I provide?

BrianAdams commented 7 years ago

@flymaxty if you look in the platform folder you will see we have setup the BeagleBone Black, a Mock Platform, and The Raspberry Pi.

The platform section is intended to abstract away the platform differences. Things like the serial port, baud rate, etc are hard coded in to those platform files.

I would start by cloning the BBB platform to an Intel Joule platform.

The easiest way to override the system detect logic is to fire up cockpit with Environment variables that specify the platform in question. You can see which variables we are using here: https://github.com/OpenROV/openrov-cockpit/blob/master/.vscode/launch.json#L19-L20