Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents
Introduction

            This page describes the lists of configuration ,compilation and installation errors while creating the zilker-sdk recipe in yocto build environment.

Build Steps 

Please refer the below link for dunfell build steps ,

RPI 3B/3B+ Model Reference Platform


Recipe Path :

                               ~/meta-cmf-broadband/recipes-iot/zilker-sdk/zilker-sdk_git.bb


Errors and Challenges in yocto

S.No

Yocto Build Steps

Build Steps  for Dunfell branch :

repo init -u https://code.rdkcentral.com/r/manifests -b dunfell -m rdkb-extsrc.xml

$ repo sync -j`nproc` --no-clone-bundle

$ MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment

$ bitbake rdk-generic-broadband-image

...

Recipe Layer Error/WarningRoot CauseAction 
1

zilker_sdk_

2

git.

2.0

bb

meta-cmf-
raspberrypi 
broadband 

Error: Missing SRC_URI checksum

not added checksum Added sha256sum
checksum 
2zilker-sdk_
2
git.
2.0
bbmeta-cmf-
raspberrypi
broadband Error:

zilker-sdk_git-r0 do_fetch: Fetcher failure for URL: 

ParseError at /home/sbeher128/rama/meta-cmf-raspberrypi/recipes-zilker/zilker-sdk/zilker_2.2.0.bb: unparsed line: '


not add SRC_URI properly 
not add
SRC_URI
properly git://rdkcentral/
= "${CMF_GITHUB_ROOT}/zilker-sdk;protocol=${
RDK
CMF_GIT_PROTOCOL};branch=${
ZILKER
CMF_GITHUB_MAIN_BRANCH};name=zilker-
client
sdk"
trower-base64_1.0.bb meta-rdk-broadbandWARNING: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Failed to fetch URL
SRCREV_zilker-sdk = "${AUTOREV}"
SRCREV_FORMAT .= "_zilker-sdk"
3zilker-sdk_git.bbmeta-cmf-broadband 

fatal error: ccronexpr.h: No such file or directory
|   37 | #include <ccronexpr.h>
|      |         ^~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.


ccronexpr source code is not available in zilker-sdk/gitr0/git/source/services/automation/core/srcSRC_URI += "git://github.com/
Comcast
staticlibs/
trower-base64.git

ERROR: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Fetcher failure: Unable to find revision fbb9440ae2bc1118866baefcea7ff814f16613dd in branch master even from upstream
ERROR: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Comcast/trower-base64.git'. Unable to fetch URL from any source.

not added related  SRC_URL added SRC_URI like 
git://github.com/Comcast/trower-base64.git;branch=main

File Path :

/meta-rdk-ext/recipes-support/trower-base64/trower-base64_1.0.bb

ccronexpr.git;protocol=https;destsuffix=git/source/services/automation/core/src/ccronexpr;name=zilker-ccronexpr"
SRCREV_zilker-ccronexpr = "${AUTOREV}"
SRCREV_FORMAT .= "_zilker-ccronexpr"
4zilker-sdk_git.bbmeta-cmf-broadband 

 error: cannot find -lccronexpr


linking Error


Need to remove the ccronexpr lib from ~/source/services/automation/core/CMakeLists.txt

5zilker-sdk_git.bbmeta-cmf-broadband 

error: gradle command not found

gradle bin is not availble in comcast VM's

SRC_URI += "https://services.gradle.org/distributions/gradle-4.8.1-bin.zip;name=zilker-gradle"
SRC_URI[zilker-gradle.md5sum] = "90db63b9cd864a6e6bc8d0c5e72ca5a2"
SRC_URI[zilker-gradle.sha256sum] = "af334d994b5e69e439ab55b5d2b7d086da5ea6763d78054f49f147b06370ed71"


6zilker-sdk_git.bbmeta-cmf-broadband Error : java command not foundjava bin path is not visible to ipcGenerator scriptsed -i "/set \-x/a export PATH=\$PATH:\${WORKDIR}/gradle-4.8.1/bin:/usr/bin" ${S}/tools/ipcGenerator/ipcGenerator.sh
7zilker-sdk
zilker
_git.bbmeta-
rdk
cmf-broadband 

fatal error: ccronexpr.h: No such file or directory
|   37 | #include <ccronexpr.h>
|      |         ^~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.

CMake Error at buildTools/cmake/configure.cmake:52 (message):
  Invalid CONFIG_PRODUCT specified.
Call Stack (most recent call first):
  CMakeLists.txt:55 (include)
CONFIG_PRODUCT should be mapped with site-file.cmake

ln -fs ${S}/buildTools/cmake/products/pi.cmake ${WORKDIR}/site-file.cmake

8zilker-sdk
not linked with ccronexpr libraryccronexpr file  is missing . 
added ccronexpr.h file like "ccrronexpr.h"  specified path 
zilker
_git.bbmeta-
rdk
cmf-
broadband error: cannot find -lccronexpr
| /usr/src/debug
broadband CMake Error at filesystem/cmake_install.cmake:69 (file):
|   file INSTALL cannot find
|   ~//zilker/git-r0/
git
recipe-sysroot/
source
usr/
services/automation/core/src/actions/timer.c:142: error: undefined reference to 'cron_parse_expr'
| /usr/src/debug/zilker/git-r0/git/source/services/automation/core/src/actions/timer.c:147: error: undefined reference to 'cron_next'
| collect2: error: ld returned 1 exit status
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.

ERROR: Task (/home/sbeher128/rama/meta-cmf-broadband/recipes-iot/zilker/zilker_git.bb :do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1369 tasks of which 1368 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 secondsSummary: 1 task failed:
  /home/sbeher128/rama/meta-cmf-broadband/recipes-iot/zilker/zilker_git.bb:do_compile
linking Errorcloned ccronexpr library at the below path 
bin/curl":
|   No such file or directory.
| Call Stack (most recent call first):
|   cmake_install.cmake:86 (include)

3rd-Party Dependencies are enabled


Disabled the 3rd-Party Dependencies
9zilker-sdk_git.bbmeta-cmf-broadband 
CMake Error at buildTools/cmake/modules/AddZilkerAPI.cmake:52 (add_library):
| No SOURCES given to target: xhBackupRestoreServiceAPI
| Call Stack (most recent call first):
| source/services/backupRestore/api/c/CMakeLists.txt:26 (add_zilker_api)
|
ipcGenerator.sh execution gets failed Need to export the gradle and java bin path via recipe or ipcGenerator script
10zilker-sdk_git.bbmeta-cmf-broadband 

ERROR : CONFIG_CAP_ZIGBEE_TELEMETRY 

zigbee package is enabled by default in source code

Need to disable the zigbee package by using the below line in recipe

sed -i "s/ON DEPENDS/OFF DEPENDS/g" ${S}/buildTools/cmake/capabilities.cmake

11zilker-sdk_git.bbmeta-cmf-broadbandERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

| Please set the JAVA_HOME variable in your environment to match the
| location of your Java installation.
ipcGenerator.sh execution  gets failedNeed to export the gradle and java bin path via recipe or ipcGenerator script
12zilker-sdk_git.bbmeta-cmf-broadband

Image folder is empty after the  successful execution of zilker-sdk

oe-install command is not available in pi.cmake

echo "set(OE_INSTALL_PREFIX \"/opt/zilker\" CACHE INTERNAL \"\")" >> ${S}/buildTools/cmake/products/pi.cmake


Added this line in zilker-sdk_git.bb

13zilker-sdk_git.bbmeta-cmf-broadband 

lib folder is empty under the image directory after the  successful execution of zilker-sdk

All lib are generated in /opt/zilkermv ${D}${ZILKER_INSTALL_PREFIX}/lib/* ${D}/usr/lib
14zilker-sdk_git.bbmeta-cmf-broadband xml file is missing after the  successful execution of zilker-sdkxml file is not generated in /opt/zilkercp ${S}/source/services/rdkIntegration/config/XHFW.xml ${D}/usr/ccsp/xhfw
15zilker-sdk_git.bbmeta-cmf-broadband Error : Files are not shiftedFILES_${PN} needs to be addedFILES_${PN} += " \
        ${ZILKER_INSTALL_PREFIX}/bin \
        ${ZILKER_INSTALL_PREFIX}/lib \
        ${ZILKER_INSTALL_PREFIX}/include \
        ${ZILKER_INSTALL_PREFIX}/sbin \
        ${ZILKER_INSTALL_PREFIX}/etc \
        ${ZILKER_INSTALL_PREFIX}/stock \
        ${ZILKER_INSTALL_PREFIX}/ccsp \
        /usr/lib/* \
        /usr/ccsp/xhfw \ "


Validated Test Results

            Below list of libraries and binaries are generated by zilker-sdk recipe in rootfs folder in  yocto build environment.

Code Block
languagebash
themeDJango
titleZilker-sdk
kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/

...

raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker$ ls
bin  etc  include  lib  sbin  stock

kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/

...

./buildTools/linux/recipe.sh -t

---  build started at Tue May 25 16:34:46  2021  -----------------------------------------
Checking environment...
--------------------------------------Incorrect version of 'java'
Require JDK 1.8, but seem to have versionScript : setup_build.sh
 ver=`java -version 2>&1 | grep '1\.8' | awk '{ print $NF }'`;
    checkVer=`echo $ver | grep '1\.8'`;
    if [ -z "$checkVer" ]; then
        echo "Incorrect version of 'java'";
        echo "Require JDK 1.8, but seem to have version $ver";
        exit 1;
    fi

rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker$ cd bin/
kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker/bin$ ls
env.sh            xhBackup.sh   xhCronEventUtil  xhProperties              xhRestore.sh   xhSetup.sh    xhSystemInfo
xhAutomationUtil  xhBackupUtil  xhDeviceUtil     xhResetToFactoryDefaults  xhServiceUtil  xhStartup.sh


kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/usr/lib$ ls -lh libxh*
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhAutomationServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhBackupRestoreServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhCommServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  27K Jun  1 12:01 libxhConcurrent.so
-rwxr-xr-x 1 kpandu549 kpandu549  22K Jun  1 12:01 libxhConfig.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhCron.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhCrypto.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhCslt.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhDeviceDescriptors.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.8K Jun  1 12:01 libxhDeviceHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549  93K Jun  1 12:01 libxhDeviceServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhDeviceSimplified.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhIpc.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.6K Jun  1 12:01 libxhJsonHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhJsonrpc.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhLog.so
-rwxr-xr-x 1 kpandu549 kpandu549  27K Jun  1 12:01 libxhPropsServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhReset.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.6K Jun  1 12:01 libxhSolar.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhSsdp.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.4K Jun  1 12:01 libxhSysInfoHAL.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhSystem.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhTime.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhTypes.so
-rwxr-xr-x 1 kpandu549 kpandu549  22K Jun  1 12:01 libxhUrlHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549  26K Jun  1 12:01 libxhUtil.so
-rwxr-xr-x 1 kpandu549 kpandu549  23K Jun  1 12:01 libxhWatchdogServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.6K Jun  1 12:01 libxhXmlHelper.so


References

                    https://github.com/rdkcentral/zilker-sdk/blob/main/BUILDING.md

...