ocpiadmin — command-line tool for managing an OpenCPI installation
The ocpiadmin(1) command-line tool is used to perform installation
and deployment tasks that are carried out on an OpenCPI installation
after the basic installation procedure is completed to prepare
OpenCPI for use on embedded systems. These tasks include:
For more information about these tasks and how they relate to enabling OpenCPI development on embedded systems, see the OpenCPI Installation Guide.
For convenience, options can occur anywhere in the command.
The general usage concept for ocpiadmin is:
perform the <verb> operation on the
<noun> whose name is <name>.
The verbs supported by ocpiadmin are:
deploy
install
The nouns supported by ocpiadmin are:
platform
tool
In addition to the options common to all OpenCPI tools (see opencpi(1)),
the following options can be specified for the install verb plus platform noun only.
In the descriptions below, a plus sign (+) after the option indicates
that it can be specified more than once on the command line.
Arguments to word-form options are preceded by an equal sign (=)
(as shown in the following descriptions) or a space. Arguments to
letter options are preceded by a space.
-g <git-rev>, --git-revision=<git-rev>
git revision to check out after
downloading/cloning the project specified in the --package-id (-p) option (described below).
This option can be used with the -p (--package-id) option
to install a different git revision of a project from the one currently checked out.
If this option is not used, the git revision for the specified package-ID defaults
to the git revision of the OpenCPI framework repository.
-p <package-id>, --package-id=<package-id>
ocpi.osp.e3xx, ocpi.osp.plutosdr. See the chapter on package-IDs in the OpenCPI
Component Development Guide for details.
-u <url>, --url=<url>
-p (--package-id) option (described above) to specify the location of
a project that is not hosted on the OpenCPI Gitlab site. If this option
is not used, the URL defaults to https://gitlab.com/opencpi/osps/<package-id>.git,
where <package-id> is the one specified in the --package-id= option.
For example, if <package-id> is ocpi.osp.e3xx, the URL is
https://gitlab.com/opencpi/osps/ocpi.osps.e3xx.git.
--minimal
--artifacts-only
--no-kernel
--optimize
The following options can be specified for the install verb plus tool noun only.
-d <DIR>, --directory=<DIR>
--installer-file=<IFILE>
--tool-options="[ARG]…"
--tool-options="--help" to see them) and are
space-separated.
The command syntax for the install platform operation is:
ocpiadmin <options> install platform <platform>
where <platform> is the name of an RCC platform, HDL platform or HDL simulator
to be built for OpenCPI. If necessary, the operation downloads
the platform’s OSP into the projects/osps/ directory in the OpenCPI
installation directory and then builds the
built-in projects and the platform’s OSP (if any) for the specified platform.
If the specified platform is an HDL platform, the operation also builds
a single test artifact/bitstream: the testbias assembly in
the assets project. After the operation is performed, any asset
in any project can be built for the specified platform.
The command syntax for the install tool operation is:
ocpiadmin <options> install tool <name>
where <name> is the name of the third-party/vendor tool to be installed. Currently, the only valid value for <name> is "vivado": see EXAMPLES below for more info.
The command syntax for the deploy platform operation is:
ocpiadmin deploy platform <rcc-platform> <hdl-platform>
where <rcc-platform> and <hdl-platform> are the names of the
software (RCC) and hardware/FPGA (HDL) platforms for which the bootable
media should be created. The operation creates the directory
cdk/<hdl-platform>/sdcard-<rcc-platform>,
whose contents can be copied to an SD card.
Keywords for specifying platform names are given in tables in the OpenCPI Installation Guide.
Build a minimal Xilinx Xsim (xsim) HDL simulator platform for OpenCPI:
ocpiadmin --minimal install platform xsim
Download and build the Ettus USRP E310 (e31x) HDL platform for OpenCPI:
ocpiadmin --package-id=ocpi.osp.e3xx install platform e31x
Download and build an optimized version of the Analog Devices Pluto Linux 0.38 (adi_plutosdr0_38)
embedded software (RCC) platform for OpenCPI:
ocpiadmin --package-id=ocpi.osp.plutosdr --optimize install platform adi_plutosdr0_38
Build the Analog Devices ADALM-PLUTO (plutosdr) platform
(you have already downloaded the OSP that supports this platform if you performed the previous example):
ocpiadmin install platform plutosdr
Download the third-party OSP that provides the myplat platform
from the Github site and build the platform:
ocpiadmin --package-id=com.myco.myplat --url=https://github.com/myco/myplat.git install platform myplat
Download and build the latest "development" git revision of the plutosdr platform
from a working branch using an earlier version:
ocpiadmin --package-id=ocpi.osp.plutosdr --git-revision=develop install platform plutosdr
Install the Xilinx Vivado tool using default installation parameters:
ocpiadmin --installer-file=FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023_Lin64.bin install tool vivado
Print the "vivado" installer script "help/usage" information and exit:
ocpiadmin --installer-file=FPGAs_AdaptiveSoCs_Unified_2024.1_0522_2023_Lin64.bin --tool-options="--help" install tool vivado
Create a bootable media directory tree
for booting the RCC platform xilinx24_1_aarch32 on
the HDL platform zed. This operation creates the
directory cdk/zed/sdcard-xilinx24_1_aarch32/,
whose contents can be copied to an SD card:
ocpiadmin deploy platform xilinx24_1_aarch32 zed
See the main web site: https://www.opencpi.org
See the OpenCPI Component Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Component_Development_Guide.pdf
See the OpenCPI Installation Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Installation_Guide.pdf