RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
$ 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
The following commands fetches the source code of turris using repo tool and create the image using bitbake
...
Start with the core-image-minimal build, for generating the rdk-generic-broadband-image
Build instructions for core-image-minimal,
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
...
core-image-minimal
...
Once the core-image-minimal build is completed,
...
Start resolving all the errors that is being faced during the build
For corerdk-generic-minimal broadband image,
Error/ |
---|
warning | Layer |
---|
/Reciepe | Fix |
---|
Remarks |
---|
ERROR: |
In layer.conf
Added
LAYERSERIES_COMPAT_meta-java = " dunfell"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 directoryDeprecated 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.bbIn armada38x-base.inc ,
Removed IMAGE_DEPENDS_wic_append_armada38x = " virtual/bootloader"
added WKS_FILE_DEPENDS ?= ""In recipes-kernel/linux,
added linux-dtb.inc
https://code.rdkcentral.com/r/plugins/gitiles/rdk
/components/opensource/oe/openembeddedco
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.containsIn rdk-bbmasks-broadband.inc,
add BBMASK .= "|meta-browser/*"
Under classes,
remove inherit lxc from ccsp-webui.bb
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
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
add ROOTFS_PKGMANAGE_BOOTSTRAP = "postinsts"
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
Nothing PROVIDES 'wireless-tools' | meta-rdk-opensync meta-rdk | In 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 |
ERROR: Nothing PROVIDES 'bridge-utils-native' ERROR: Nothing PROVIDES 'virtual/kernel-native' | meta-virtualization 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 |
ERROR: Nothing RPROVIDES 'cpp-symlinks' | meta-openembedded python3-pycparser_2.19.bb | Add, | cpp and cpp-symlinks recipes are not present in 3.1 |
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 |
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
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
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
}
meta-turris
u-boot-marvell_2013.01.bbappend
Create a patch and apply
u-boot-inline-error.patch
recreate the patch
130-fingerprint-dhcp-lease-file.patch
meta-rdk-opensync
kern-tools-native_%.bbappend
comment
LIC_FILES_CHKSUM = "file://git/Kconfiglib/LICENSE.txt;md5=448ee4da206e9be8f4a79c48e0741295"
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
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
meta-turris
core-image-minimal.bbappend
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