Versions Compared

Key

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

...

Environment Setup

  • Host- environment

  1. In Ubuntu 18.04 version, consider the versions of git(1.8.3.1 or greater), tar(1.27 or greater), Python(3.4.0 or greater), Coreutils.
  2. Take a look on the following packages,

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm

3. Configure repo

4. Ensure the .netrc and .gitconfig files

  • Build instructions for creating core-image-minimal build

The following commands fetches the source code of turris using repo tool and create the image using bitbake

...

Build instructions for generating the rdk-generic-broadband-image,

  • repo init -u https://code.rdkcentral.com/r/manifests

...

  •  -m

...

  • rdkb-turris-extsrc.

...

  • xml  -b  yocto-dunfell-upgrade

...

  • repo

...

  • sync

...

  • -j4

...

  • --no-clone-bundle

...

  • MACHINE=turris

...

  • source

...

  • meta-turris/setup-environment

...

  •  
  • bitbake

...

  • rdk-generic-broadband-image

...

Error Handling

For corerdk-generic-minimal broadband image,


Error/
Warning
warningLayer
and Recipe
/ReciepeFix
Reference
Remarks
1

Unable to start bitbake server (None)

ERROR: Server log for this session

ERROR: Nothing PROVIDES 'wireless-tools'

meta-rdk-opensync

meta-

java

rdk

In

layer.conf

Added

LAYERSERIES_COMPAT_meta-java = " dunfell"NA2

Unable to parse Var <AVAILABLE_LICENSES[:=]>

bb.data_smart.ExpansionError: Failure expanding variable AVAILABLE_LICENSES[:=], expression was ${@' '.join(available_licenses(d))} which triggered exception FileNotFoundError: [Errno 2] No such file or directory

opensync_1.4.0.bb, remove wireless-tools from depends 

And in packagegroup-rdk-oss-broadband.bb, remove wireless-tools for dunfell branch

wireless-tools is not there in yocto-3.1
2

ERROR: Nothing PROVIDES 'bridge-utils-native'

ERROR: Nothing PROVIDES 'virtual/kernel-native'

meta-virtualization

openvswitch_git.bb

upgraded from 2.6.3 to 2.13

Add,
DEPENDS_remove = "virtual/kernel bridge-utils"
DEPENDS_append_class-target = " virtual/kernel"
DEPENDS_append_class-target = " bridge-utils"
Building the dependencies only for the target , not for the narive
3
ERROR: Nothing RPROVIDES 'cpp-symlinks'

ERROR: Nothing RPROVIDES 'cpp'

meta-openembedded

python3-pycparser_2.19.bb
Add,
RDEPENDS_${PN}_class-target_remove = " cpp cpp-symlinks"
cpp and cpp-symlinks recipes are not present in 3.1
4

ERROR: mosquitto-1.4.8-r0 do_compile: oe_runmake failed

security_default.c:773:13: error: storage size of 'context' isn't known

meta-rdk-ext

mosquitto_1.4.8.bb

In rdk.conf

Include preferred version of mosquitto with 1.6.9


5make: *** No targets specified and no makefile found. Stop.
ERROR: oe_runmake failed

meta-rdk-broadband

ccsp-common-library.bb

change source directory by including,

S = "${WORKDIR}/ccsp-common-library-yocto-dunfell-upgrade+git${SRCPV}"


6

error: dereferencing pointer to incomplete type 'SSL' {aka 'struct ssl_st'}

error: 'SSL_ST_OK' undeclared (first use in this function); did you mean 'TLS_ST_OK'?

meta-rdk-broadband

ccsp-common-library.bb

remove "SSL_ST_OK" 
(that has been removed for openssl version 1.1.0g)

7
error: 'void* memcpy(void*, const void*, size_t)' 
copying an object of non-trivial type
msgpack-c

Reference:

https://github.com/msgpack/msgpack-c/pull/659/commits/a05d92ae85024d0648f69f95307a1d3e8e51109c


8
undefined reference to `SSLeay_add_all_algorithms'
collect2: error: ld returned 1 exit status

meta-rdk-broadband

utopia.bb

In user_openssl.c,

Add condition for the function,

#if OPENSSL_VERSION_NUMBER < 0x10100000L
#endif


9fatal error: cJSON.h: No such file or directory

meta-rdk-broadband

utopia.bb, ccsp-psm.bb

meta-rdk-ext, ccsp-tr069-pa.bb

wdmp-c_1.0.bb

meta-rdk

dca_git.bb


In apply_system_defaults.c, wdmp_internal.c, wdmp-c.c, 

cosa_x_cisco_com_mta_apis.h, libpd.c, ssp_cfmif.c, dcautils.h, dca.c,
ssp_ccsp_cwmp_cfg.c

add the path for header file, 

#include "cjson/cJSON.h"


10error: format '%ld' expects argument of type 'long int', but argument 8 has type 'time_t'

meta-rdk-opensync

opensync_1.4.0.bb

In sm_survey_report.c,

change long int to long long int


11error: 'strncpy' output truncated before terminating nul copying 23 bytes from a string of the same length

meta-rdk-ext

wrp-c_1.0.bb

In wrp-c.c,

change strncpy with memcpy


12

error: implicit declaration of function 'strnlen' 'gmtime_r'

'localtime_r' , 'asctime_r'

error: nested extern declaration of 'gmtime_r' , 'localtime_r' , 'asctime_r'
error: assignment to 'struct tm * restrict' from 'int' makes pointer from integer without a cast

meta-openembedded

safec_3.5.bb

In safec_3.5.bb

Add, CFLAGS += " -D_POSIX_C_SOURCE"



13
error: implicit declaration of function 'explicit_bzero'

meta-openembedded

safec_3.5.bb

In memzero_s.c,
Add, #undef HAVE_EXPLICIT_ZERO

14configure: error: Package requirements (openssl >= 1.0.1f) were not met:
No package 'openssl' found

meta-rdk-broadband

sso.bb

In sso.bbappend 

Add openssl in depends


15Patch 0001-DELIA-19972-Dibbler-client-crash-in-checkDecline.patch does not apply

meta-openembedded

dibbler_git.bb

In dibbler_%.bbappend

Remove the patch file included.


16checking for and configuring transport modules to use... configure: error: IPv6 transports not available if IPv6 support is not enabled

meta-openembedded 

net-snmp_5.8.bb

Edit IPv6 configurations according to the support needed

17
aclocal: error: couldn't open directory 'cfg': No such file or directory

meta-rdk-broadband

notify-comp.bb

In configure.ac,
change cfg to m4

18fatal error: avro.h: No such file or directory

meta-rdk-broadband

ccsp-wifi-agent.bb

In ccsp-wifi-agent.bbappend 
Add, DEPENDS += "avro-c"

19

undefined reference to symbol 'breakpad_ExceptionHandler'

error adding symbols: DSO missing from command line

meta-rdk-broadband

ccsp-epon-agent.bb,

ccsp-eth-agent.bb,

ccsp-p-and-m.bb

In respective recipes, 

Add, 

LDFLAGS += " -lbreakpadwrapper"

20error: storage size of 'ctx' isn't known

meta-rdk-broadband

ccsp-p-and-m.bb, 

ccsp-tr069-pa.bb

Its applicable for openssl version < 1.1, for updated version use dynamic allocations for ctx
21undefined reference to `syscfg_get'

meta-rdk-broadband

ccsp-eth-agent.bb

ccsp-p-and-m.bb

In ccsp-eth-agent.bb

Add -lsyscfg in LDFLAGS_append, 


22
fatal error: uuid/uuid.h: No such file or directory

meta-rdk-ext

miniupnpd_2.1.bb

In miniupnpd_2.1.bb 
Add, DEPENDS += "util-linux"

23dibbler-1.0.1/scripts/notify-scripts/client-notify-bsd.sh': No such file or directory

meta-openembedded

dibbler_git.bb

In dibbler_%.bb

Change the installation path of the client-notify-bsd.sh


24ERROR: $ bitbake rdk-generic-broadband-image -cdo_populate_lic_deploy -Snone
ERROR: $ bitbake rdk-generic-broadband-image -cdo_populate_lic_deploy -Sprintdiff

meta-rdk-broadband

ccsp-p-and-m.bb

In rdk-generic-broadband-image.bbappend

Add,

meta-cmfNeed to create a licenses directory under the meta-layer and add RDK license file to itNA3

Deprecated variable(s) found: "IMAGE_DEPENDS_wic". Use do_image_<type>[depends] += "<recipe>:<task>" instead

Failed to parse recipe: /meta-java/recipes-images/images/java-test-image.bbmeta-marvell

In armada38x-base.inc ,

Removed IMAGE_DEPENDS_wic_append_armada38x = " virtual/bootloader"

added WKS_FILE_DEPENDS ?= ""

https://patchwork.openembedded.org/patch

/143213/

4ParseError at /meta-marvell/recipes-kernel/linux/linux-marvell.inc:16: Could not include required file recipes-kernel/linux/linux-dtb.incmeta-turris

In recipes-kernel/linux,

added linux-dtb.inc

https://code.rdkcentral.com/r/plugins/gitiles/rdk

/components/opensource/oe/openembeddedco

re/+/849b67b2e4820564b5e5c9bd4bb293c443

51c5f3/meta/recipes-kernel/linux/linux-dtb.inc

5

ExpansionError during parsing / meta-cmf-mesh/recipes-common/mesh-agent/mesh-agent.bb

ExpansionError during parsing  /meta-rdk-broadband/recipes-rdkb/sysint-broadband/sysint-broadband.bb

meta-cmf-mesh

mesh-agent.bb

meta-rdk-broadband

sysinit-broadband.bb

In mesh-agent.bb

replace base_contains by bb.utils.containsNA6ParseError at  /meta-browser/recipes-mozilla/mozilla-devscripts/mozilla-devscripts_git.bb:15: Could not inherit file classes/distutils.bbclassmeta-cmf-broadband

In rdk-bbmasks-broadband.inc,

add BBMASK .= "|meta-browser/*"

NA7ParseError at /Migration-3.1/meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-webui.bb:32: Could not inherit file classes/lxc.bbclassmeta-virtualization

Under classes,

remove inherit lxc from ccsp-webui.bb

NA8

ExpansionError during parsing /meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-wifi-agent.bb

ExpansionError during parsing /meta-rdk-broadband/recipes-ccsp/ccsp/parodus2ccsp.bb

meta-rdk-broadband

ccsp-wifi-agent.bb

parodus2ccsp.bb

replace base_containes by bb.utils.containsNA9

ExpansionError during parsing /meta-rdk-opensync/recipes/opensync/opensync_1.4.0.bb

ExpansionError during parsing /meta-rdk-ext/recipes-support/base64/base64_git.bb

meta-turris

opensync_1.4.0.bbappend

meta-rdk-ext

base64_git.bb

change branch to masterNA10Nothing RPROVIDES '${ROOTFS_PKGMANAGE_BOOTSTRAP}' (but /openembedded-core/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)
ERROR: Required build target 'core-image-minimal' has no buildable providers.openembedded-core

add  ROOTFS_PKGMANAGE_BOOTSTRAP = "postinsts"

 NA11

Nothing RPROVIDES 'wireless-tools' (but /meta-turris/recipes-core/packagegroups/packagegroup-turris-core.bb RDEPENDS on or otherwise requires it)

Nothing RPROVIDES 'trace-cmd' (but /meta-turris/recipes-core/packagegroups/packagegroup-turris-core.bb RDEPENDS on or otherwise requires it)

Nothing RPROVIDES 'iperf' (but /meta-turris/recipes-core/packagegroups/packagegroup-turris-core.bb RDEPENDS on or otherwise requires it)

openembedded-core

openembedded-core

meta-openembedded

remove wireless-tools ,trace-cmd , iperf  from packagegroup-turris-core.bb

NA12

ERROR: 265 unbuildable tasks were found.
These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.

openembedded-core

python3_3.8.2.bb

 BBMASK openssl unused version NA13ERROR: kern-tools-native-0.2+gitAUTOINC+7604d2d1a4-r12 do_patch: Command Error: 'quilt --quiltrc /build-turris/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+7604d2d1a4-r12/recipe-sysroot-native/etc/quiltrc push' exited with 0 Outputmeta-rdk-opensyncRecreate the patch file ./meta-rdk-opensync/recipes/kern-tools/files/dont_install_kconfiglib.patchNA14dbus-1.12.16-r0 do_fetch: Fetcher failure: Unable to find file file://01-dbus-ccsp-apis-1.12.16.patch anywhere.meta-rdk-ext

rename the existing patch for dbus version 1.12.16 and recreate the patch with the following name

01-dbus-ccsp-apis-1.12.16.patch

NA15u-boot-marvell-2013.01+gitAUTOINC+25998da8b6-r0 do_configure: Execution of /build-turris/tmp/work/turris-rdk-linux-musleabi/u-boot-marvell/2013.01+gitAUTOINC+25998da8b6-r0/temp/run.do_configure.12492' failed with exit code 1

meta-turris

u-boot-marvell_2013.01.bbappend

Add,

do_configure_prepend() {
touch ${S}/.config
cp ${WORKDIR}/recipe-sysroot-native/usr/bin/oldconfig ${WORKDIR}/uboot/oldconfig
}

NA16ERROR: /build-turris/tmp/work/turris-rdk-linux-musleabi/u-boot-marvell/2013.01+gitAUTOINC+25998da8b6-r0/uboot/fs/jffs2/mini_inflate.c:222: undefined reference to `cramfs_memset'

meta-turris

u-boot-marvell_2013.01.bbappend

Create a patch and apply

u-boot-inline-error.patch

NA17dnsmasq-2.80-r0 do_patch: Command Error: 'quilt --quiltrc /home/krishna/RAJ/Migration-3.1/build-turris/tmp/work/armv7ahf-neon-rdk-linux-musleabi/dnsmasq/2.80-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 meta-rdk-ext

recreate the patch

130-fingerprint-dhcp-lease-file.patch

NA18kern-tools-native-0.2+gitAUTOINC+7604d2d1a4-r12 do_populate_lic: QA Issue: kern-tools-native: LIC_FILES_CHKSUM points to an invalid file: /build-turris/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+7604d2d1a4-r12/git/git/Kconfiglib/LICENSE.txt [license-checksum]

meta-rdk-opensync

kern-tools-native_%.bbappend

comment 

LIC_FILES_CHKSUM = "file://git/Kconfiglib/LICENSE.txt;md5=448ee4da206e9be8f4a79c48e0741295"

NA19

core-image-minimal-1.0-r0 do_rootfs: Unable to install packages. 

- nothing provides fftw needed by packagegroup-turris-core-1.0-r0.all

- do not ask to install a package providing packagegroup-turris-core

add

fftw.bbappend

NA20

When reparsing /openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_rootfs, the basehash value changed from 1c76594fd609e77323d32b96b490551409f1dd7494e75119b74115805687e530 to 435cd9fd2595cbf5d3420df8cdcf1366179c1c68f804f4ab735b6cff5f84d03f. The metadata is not deterministic and this needs to be fixed.

ERROR: $ bitbake core-image-minimal -cdo_rootfs -Snone
ERROR: $ bitbake core-image-minimal -cdo_rootfs -Sprintdiff

meta-turris

minimal.bbappend 

add

BB_HASH_IGNORE_MISMATCH = "1"

21ERROR: core-image-minimal-1.0-r0 do_rootfs: Postinstall scriptlets of ['systemd'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ()Removed installing resolv.conf for dunfell branchNA22ERROR: core-image-minimal-1.0-r0 do_rootfs: Taskhash mismatch 8f27e0dbdfe3ca200423ce2c2b7235163592522452134eeb952f0ed25647769d versus 7db8ecb95cf063d5b230c2eefa967d5e6888f6c0455f20a701f8c2113198ce9b for /openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_rootfs
ERROR: Taskhash mismatch 

meta-turris

core-image-minimal.bbappend

 add IMAGE_NAME[vardepsexclude] = "DATETIME"NA23

ERROR: core-image-minimal-1.0-r0 do_image_wic: Execution of /build-turris/tmp/work/turris-rdk-linux-musleabi/core-image-minimal/1.0-r0/temp/run.do_image_wic.29811' failed with exit code 1:

ERROR: _exec_cmd: install -m 0644 -D /build-turris/tmp/deploy/images/turris/zImage-armada-385-turris-omnia.dtb 
/images/turris/zImage-armada-385-turris-omnia.dtb': No such file or directory

meta-turris

turris.conf

 remove zImage-armada-385-turris-omnia.dtb from IMAGE_BOOT_FILESNA

25
 requires /bin/bash, but no providers

ccsp-p-and-m.bb

dibbler_%.bbappend
mesh-agent.bb

In respective recipe,

Add according to the component,

For Example, RDEPENDS_${PN}-ccsp_append_dunfell = " bash"



26
contained in package hal-wifi-generic requires libwpa_client.so, 
but no providers found in RDEPENDS_hal-wifi-generic?
meta-rdk-broadband
hal-wifi-generic_git.bb
In hal-wifi-generic_git.bbappend  
Add, RDEPENDS_${PN}_append_dunfell = " wpa-supplicant"

27
 Postinstall scriptlets of ['utopia'] have failed
meta-rdk
rdk-generic-broadband-image.bb
In utopia.bb 
comment out
ALTERNATIVE_LINK_NAME[syslog-conf] = "${sysconfdir}/syslog.conf"

28rdk-generic-broadband-image-1.0-r0 do_rootfs: Taskhash mismatch

meta-turris

rdk-generic-broadband-image.bbappend

IMAGE_NAME[vardepsexclude] = "DATETIME"

Flashing procedure

            Turris Omnia Reference Platform: Flashing Instruction

Known issues and Limitations

       1. No systemd Ccsp services are running except CcspLmLite

       2. Remote management is disabled, due to lighttpd failure

       3. wifi is broadcasting but unable to connect , due to cssp services  failure