Hi All,
I’m assume that the main OpenCPI develop
branch should now support RFSOCs?
If so, has anyone manged to build the drc.rcc worker for the RFDC tile? When I try to build drc.rcc
I get the following error:
Generating artifact/runtime xml file target-xilinx21_1_aarch64/drc_assy-art.xml for all workers in one binary
Linking final artifact file "target-xilinx21_1_aarch64/drc.so" and adding metadata to it...
aarch64-xilinx-linux-g++: error: /opencpi/cdk/xilinx21_1_aarch64/lib/librfdc.a: No such file or directory
make: *** [/opencpi/cdk/include/xxx-worker.mk:283: target-xilinx21_1_aarch64/drc.so] Error 1
Error: error building at STEP "RUN source /opencpi/cdk/opencpi-setup.sh -s && ocpidev build worker drc.rcc --rcc-platform xilinx21_1_aarch64": error while running runtime: exit status 1
Note that I’ve ran the following RFDC prerequisit:
[prerequisites/rfdc · develop · OpenCPI / OpenCPI System support Projects (OSP) / HiTech Global · GitLab](https://gitlab.com/opencpi/osp/ocpi.osp.hitech-global/-/tree/develop/prerequisites/rfdc?ref_type=heads)
I’ve tried running the script from the following locations:
/opencpi/
/opencpi/projects/assets/prerequisites/rfdc
/opencpi/projects/osps/ocpi.osp.hitech-global/prerequisites/rfdc
I’ve also tried making a symbolic link pointing to librfdc.a
which gives me a slightly different error.
Thanks
Hello,
Yes, drc.rcc
in the project builds. Not sure how you got to that state but the HTG is more particular on how you install it then other platforms.
When you built rfdc prerequisite did you build it for xilinx21_1_aarch64
?
To do that, just add RCC platform when invoking the script:
cd /opencpi/projects/osps/ocpi.osp.hitech-global
./prerequisites/rfdc/install-rfdc.sh xilinx21_1_aarch64
The RFDC prerequisite moved out of assets
project, which suggest you are using an old version of develop.
I just built it again after seeing your message to make sure. There’s an install script in the HDL platform directory that ensure everything builds correctly.
Steps to Build Using Script
-
mkdir build-htg && cd build-htg
-
clone the HTG OSP
-
Patch OpenCPI and update install script
I will fix this in the develop branch but , the hash used in the install script predates the asciidoc3 prerequisite changes.
diff --git a/hdl/platforms/zrf8_48dr/doc/install-script.sh b/hdl/platforms/zrf8_48dr/doc/install-script.sh
index e26d949..a9d5f00 100755
--- a/hdl/platforms/zrf8_48dr/doc/install-script.sh
+++ b/hdl/platforms/zrf8_48dr/doc/install-script.sh
@@ -11,9 +11,11 @@ git clone https://gitlab.com/opencpi/opencpi.git opencpi
# branch as of 01/31/25
cd opencpi
git checkout 060f8d4717b5f4eb8828e183e4e5276fbc461f05
+git apply ../asciidoc.patch
./scripts/install-opencpi.sh --minimal
source ./cdk/opencpi-setup.sh -r
+
echo ">>>>>>>>>> Obtaining Hi-Tech Global OSP"
# below line is a copy, and not a symlink, so that that "cp relative directories ../../assets" lines below work as intended
cp -rp ../ocpi.osp.hitech-global projects/osps/ocpi.osp.hitech-global
Place asciidoc.patch in htg-build directory.
diff --git a/build/prerequisites/asciidoc3/install-asciidoc3.sh b/build/prerequisites/asciidoc3/install-asciidoc3.sh
index 6ffb91a85..6aa8d7f56 100755
--- a/build/prerequisites/asciidoc3/install-asciidoc3.sh
+++ b/build/prerequisites/asciidoc3/install-asciidoc3.sh
@@ -29,7 +29,7 @@ source "$OCPI_CDK_DIR/scripts/setup-prerequisite.sh" \
"$1" \
"asciidoc3" \
'AsciiDoc3.org package used for man pages' \
- https://asciidoc3.org \
+ https://opencpi-public.s3.us-east-2.amazonaws.com/prerequisites \
asciidoc3-$version.tar.gz \
+ad3 \
0
- Run the install script from htg-build
./ocpi.osp.hitech-global/hdl/platforms/zrf8_48dr/doc/install-script.sh
- Build
drc.rcc
cd opencpi/projects/osps/ocpi.osp.hitech-global/hdl/devices/drc.cc
ocpidev build --rcc-platform xilinx21_1_aarch64
Hi Aaron,
I’ve tried the running both versions of the install-rfdc.sh
script (the one from assets and the latest version you’d moved to ocpi.osp.hitech-global develop branch last month.
Just tried re-running the latest version with the xilinx21_1_aarch64
added (as previously I’d run it without) - I get the same result.
Thanks for pointing me to the build script:
./ocpi.osp.hitech-global/hdl/platforms/zrf8_48dr/doc/install-script.sh
I’d missed it, as I don’t think it existed on the original Geon Tech forked OSP. I’ll start from there, hopefully get it working, then add my modified processor and RFDC artefacts… Hopefully I’ll get a chance to look at this today…
Thanks,
Trem
I’ve just built drc.rcc
- not tested it yet though…
The only additional step was to add a symbolic link:
cd /opencpi/cdk/xilinx21_1_aarch64/lib/
ln -s /opencpi/prerequisites-build/rfdc/embeddedsw/ocpi-build-xilinx21_1_aarch64/librfdc.a librfdc.a
ls -la
after running:
./prerequisites/rfdc/install-rfdc.sh xilinx21_1_aarch64
I tried making a symbolic link before, but it was pointing to Ubuntu artefacts because I hadn’t included xilinx21_1_aarch64
when running install-rfdc.sh
.
Thanks again!!
1 Like