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
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/Warning | Root Cause | Action |
---|
1 | zilker_sdk_ |
22.0raspberrypi broadband | Error: Missing SRC_URI checksum | not added checksum | Added sha256sum checksum |
2 | zilker-sdk_ |
22.0raspberrypibroadband | 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 properly git://rdkcentral/= "${CMF_GITHUB_ROOT}/zilker-sdk;protocol=${ |
RDKCMF_GIT_PROTOCOL};branch=${ |
ZILKERCMF_GITHUB_MAIN_BRANCH};name=zilker- |
clienttrower-base64_1.0.bb | meta-rdk-broadband | WARNING: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Failed to fetch URL SRCREV_zilker-sdk = "${AUTOREV}" SRCREV_FORMAT .= "_zilker-sdk" |
3 | zilker-sdk_git.bb | meta-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/src | SRC_URI += "git://github.com/ |
Comcasttrower-base64.gitERROR: 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=mainFile Path :
/meta-rdk-ext/recipes-support/trower-base64/trower-base64_1.0.bb
zilkerrdkfatal 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 |
8 | zilker-sdk |
not linked with ccronexpr library | ccronexpr file is missing . added ccronexpr.h file like "ccrronexpr.h" specified path zilkerrdkbroadband error: cannot find -lccronexpr| /usr/src/debugbroadband | CMake Error at filesystem/cmake_install.cmake:69 (file): | file INSTALL cannot find | ~//zilker/git-r0/ |
gitsourceservices/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 buildhistoryNOTE: Writing buildhistory took: 3 secondsSummary: 1 task failed: /home/sbeher128/rama/meta-cmf-broadband/recipes-iot/zilker/zilker_git.bb:do_compilelinking Error | cloned 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 |
9 | zilker-sdk_git.bb | meta-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 |
10 | zilker-sdk_git.bb | meta-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 |
11 | zilker-sdk_git.bb | meta-cmf-broadband | ERROR: 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 failed | Need to export the gradle and java bin path via recipe or ipcGenerator script |
12 | zilker-sdk_git.bb | meta-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 |
13 | zilker-sdk_git.bb | meta-cmf-broadband | lib folder is empty under the image directory after the successful execution of zilker-sdk | All lib are generated in /opt/zilker | mv ${D}${ZILKER_INSTALL_PREFIX}/lib/* ${D}/usr/lib |
14 | zilker-sdk_git.bb | meta-cmf-broadband | xml file is missing after the successful execution of zilker-sdk | xml file is not generated in /opt/zilker | cp ${S}/source/services/rdkIntegration/config/XHFW.xml ${D}/usr/ccsp/xhfw |
15 | zilker-sdk_git.bb | meta-cmf-broadband | Error : Files are not shifted | FILES_${PN} needs to be added | FILES_${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 |
---|
language | bash |
---|
theme | DJango |
---|
title | Zilker-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
...