Re: [Discuss OpenCPI] Ubuntu 19 Support
On 12/5/19 4:56 PM, Brian Padalino wrote:
> I'm trying to add Ubuntu 19.x support to OpenCPI.
Thanks!
> My procedure has been to
> add the directory projects/core/rcc/platforms/ubuntu19 and the following
> files:
>
> - README
> - ubuntu19-check.sh
> - ubuntu19.mk
> - ubuntu-packages.sh
>
> I also needed to change some source files due to updated GCC warnings
> turning into errors, specifically:
>
> - os/interfaces/include/OcpiOsEther.h
> - runtime/dataplane/transport/impl/include/OcpiInputBuffer.h
> - runtime/util/property/include/OcpiPValueApi.h
> - runtime/util/property/src/OcpiUtilPValue.cxx
Note that you can usually just add a compiler flag that turns these
errors back into warnings so that you don't need to touch framework code
to get this job done. Its not a bad thing to "fix" that code if the
warnings are good, but it you can avoid a framework patch to get your
job done, that's better.
>
> I also had to change the kernel module to have a different return type to
> get everything to build.
Which kernel version did you end up with?
Is the default shell on that system bash? We sometimes end up assuming
bash when we shouldn't.
Chris is right, sometimes there are bootstrapping issues with adding new
software platforms where you have to do stuff to get the project exports
redone from the project that the new platform is in.
>
> Unfortunately, when I try to perform a command to show me the installed
> platforms, I get this error:
>
> $ ocpidev show platforms
> OCPI:ERROR: STDERR output from Make (set_vars_from_make):
> /bin/sh: 1: Bad substitution
> For platform configuration file alst4x_zipper_hsmc_alst4_port_a_rx: File
> "alst4x_zipper_hsmc_alst4_port_a_rx" could not be opened for
> reading/parsing. Files tried: alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/misc_comps/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/misc_comps/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/util_comps/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/util_comps/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/dsp_comps/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/dsp_comps/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/comms_comps/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/comms_comps/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/base_comps/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../components/base_comps/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../hdl/devices/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../hdl/devices/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../imports/ocpi.core/exports/lib/devices/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../imports/ocpi.core/exports/lib/devices/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../hdl/cards/lib/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../hdl/cards/lib/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../imports/ocpi.core/exports/lib/cards/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../imports/ocpi.core/exports/lib/components/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> ./../../../imports/ocpi.core/exports/lib/components/hdl/alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> alst4x_zipper_hsmc_alst4_port_a_rx.xml,
> gen/alst4x_zipper_hsmc_alst4_port_a_rx.xml. CWD is
> /home/bpadalino/projects/opencpi.git/projects/assets/hdl/platforms/alst4x
> /home/bpadalino/projects/opencpi.git/cdk/include/hdl/hdl-platform.mk:199:
> *** Processing platform configuration XML
> "alst4x_zipper_hsmc_alst4_port_a_rx": . Stop.
>
> OCPI:ERROR: The following make command returned an error:
> make -n -r -s -C
> /home/bpadalino/projects/opencpi.git/projects/assets/hdl/platforms/alst4x
> ShellHdlPlatformVars=1 showpackage
>
> I tried searching through the archives, but nothing popped out at me as a
> solution.
>
> Any idea what's happening?
>
> Thanks,
> Brian
>
Received on Thu Dec 05 2019 - 22:18:31 CST
This archive was generated by hypermail 2.3.0
: Fri Jun 05 2026 - 08:45:25 CDT