Introduction

This manual describes the rdk-generic-broadband-image build procedure for Yocto 3.1 builds. This will upgrade the default build system used in RDKB, from morty(2.2) to dunfell(3.1). In addition to upgrades to opensource packages, Yocto 3.1 also contain Long term Support release feature. The current version lacks the variety of features available in the dunfell. The upgraded build tools will be used to generate rdk-generic-broadband-image for Raspberrypi reference platform. 

Yocto 3.1 Upgradation support the following:

  • Yocto BSP layer for meta-raspberrypi.
  • OpenEmbedded and Yocto Dunfell.
  • Linux kernel 5.4.72.
  • Version upgrades for bitbake, and other oe/python recipes.

Each component in RDK is a standalone repository with its own individual build tools producing a library or set of binaries. When we upgrade the OE layers to the newer versions, we need to make necessary changes in the RDK layers which use these components, to avoid build failures.

Host Setup

The OpenEmbedded build system should be able to run on Ubuntu 18.04 distribution/other compatible linux distribution with the following versions for Git, tar, and Python.

  • Git 1.8.3.1 or greater
  • tar 1.27 or greater
  • Python 3.4.0 or greater
  • Coreutils(E.g realpath)

Note: You should also have about 50 Gbytes of free disk space for building images.

The essential packages you need for a supported Ubuntu or Debian distribution are shown in the following command:

$ 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 bmap-tools

$ sudo apt-get install git cmake autoconf texinfo openjdk-8-jdk openjdk-8-jre \
  m4 libtool libtool-bin curl pkg-config lib32z1 doxygen

Repo Setup

In order to use Yocto build system, the repo tool must be properly installed on the machine.

To install Repo make sure you have a /bin directory in your home directory and that it is included in your path

Repo Setup Steps
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the repo tool and ensure that it is executable
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Note: it is also recommended to put credentials in ~/.netrc when interacting with repo.

A sample ~/.netrc file is illustrated below

.netrc
machine code.rdkcentral.com login YOUR_USERNAME password YOUR_PASSWORD

Yocto Build Steps

To build, follow below instructions

Build Steps
$ mkdir <workspace dir>
$ cd <workspace dir>
$ 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

 

Flashing Procedure

Following command can be used to flash the RPI image to sd card using linux machine . bmap tool should be available in linux

Flash command
bzip2 -d <path to ImageName.wic.bz2>
sudo -E bmaptool copy --nobmap <path to ImageName.wic> <path to SD card space>

Example:

$ bzip2 -d rdk-generic-broadband-image-raspberrypi-rdk-broadband.wic.bz2
$ sudo -E bmaptool copy --nobmap rdk-generic-broadband-image-raspberrypi-rdk-broadband.wic /dev/sdb

Validated Functionalities


No

Feature

Supported

1LAN Connected Devices-Ethernet(tick)
2WAN Connected Devices-Wi-Fi(tick)
3Parental Control(tick)
4Firewall settings(tick)
5Advanced Config: Port Triggering(error)
6Advanced Config: Port Forwarding(tick)
7Advanced Config: Remote Management(tick)
8Advanced Config: DMZ(tick)
9Xfinity Wi-Fi 2.4/5 GHz – Public Hotspot(tick)
10Test and Diagnostics(tick)
11Local WebUI Configuration(tick)
12Factory Reset(tick)
13DHCP /Reserved IP(tick)
14EthWan(tick)
15Eth Agent(tick)
162.4 GHz Band Support(tick)
175 GHz Band Support(tick)
18Bridge Mode Support(tick)
19Persistent Storage Management(tick)
20WebPA for Comcast,community(tick)
21Lost and Found(error)
22Bluetooth(error)
22Harvester Support(error)
23TR-69(error)
24SNMP(tick)
27Boot time data measurement(error)
28Wireless Protection Setup(WPS)(tick)
29Captive Portal(tick)
30Wi-Fi MAC Filtering(error)
31Log Rotation Support(tick)
32Firmware Upgrade Support(tick)
33Multiboot Support(tick)
34Telemetry Support(tick)
35IPV6(error)
     36

Log level control through CcspLogAgent

                (tick)
      37

Band Steering using RSSI

                (tick)  
      38

Backup and Restore

                (error)
      39

SelfHeal

                (tick) 
       40Password-Reset                (tick) 
       41WebUI JST                  (tick) 




  • No labels

31 Comments

  1. Hello, I try to build for Raspberry I get following error :

    build-raspberrypi-rdk-broadband$ bitbake rdk-generic-broadband-image

    ERROR: Layer 'cmf-raspberrypi' depends on layer 'cmf-broadband', but this layer is not enabled in your configuration

    ERROR: Command execution failed: Traceback (most recent call last):

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/command.py", line 103, in runAsyncCommand

        self.cooker.updateCache()

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 1543, in updateCache

        self.parseConfiguration ()

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 433, in parseConfiguration

        self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 1205, in handleCollections

        calc_layer_priority(c)

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 1195, in calc_layer_priority

        calc_layer_priority(dep)

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 1195, in calc_layer_priority

        calc_layer_priority(dep)

      File "/home/lesaoutf/RDKB-RapsberryPi/openembedded-core/bitbake/lib/bb/cooker.py", line 1192, in calc_layer_priority

        if not collection_priorities[collection]:

    KeyError: 'cmf-broadband'

    I'm running this on Ubuntu 20.04.3 LTS.

    1. Hello Z-Florent Le Saout 


      The builds are officially tested on Ubuntu 18.04 for Dunfell. Could you please check the builds in a Ubuntu 18.04 machine?

  2. Hello   Narayanaswamy Ramaiyer 

    I will give a try with 18.04 LXC container and keep you posted. Maybe this should be added in the limitations.

    As It seems to be layer configuration, I don't think it will help, but let see.

    1. Hello Z-Florent Le Saout 

      It is mentioned in the documentation that this is tried out in Ubuntu 18.04 . We will see if we can explicitely mention this is not officially tested in Ubuntu 20.04 (as there are chances it is assumed the Dunfell based RDK-B builds will work fine in all later versions of UBuntu ) until we will start official support in 20.04 too. Thanks

  3. I did try on an LXC container with Ubuntu 18.04 and it doesn't stop the compilation anymore at this stage (full compilation ongoing, and it takes quite some time (wink) )

    Currently  8 running tasks (292 of 4975)   5% |#########                                                                                                                                                          |
    0: libffi-native-3.3-r0 do_configure - 38s (pid 211974)
    1: libpcre2-native-10.34-r0 do_compile - 26s (pid 223720)
    2: mpfr-native-4.0.2-r0 do_configure - 16s (pid 229183)
    3: make-native-4.3-r0 do_configure - 13s (pid 230719)
    4: sqlite3-native-3_3.31.1-r0 do_configure - 13s (pid 230684)

    But when I read about dunfell, it does support Ubuntu 20.04 by default, so where does come this restriction ? RDK layers themselves ? Narayanaswamy Ramaiyer 

    https://lists.yoctoproject.org/g/poky/topic/meta_yocto_master_dunfell/74526284?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,40,74526284

    ---
     meta-poky/conf/distro/poky.conf | 1 +
     1 file changed, 1 insertion(+)

    diff --git a/meta-poky/conf/distro/poky.conf b/meta-poky/conf/distro/poky.conf
    index 91779e4..2696eb6 100644
    --- a/meta-poky/conf/distro/poky.conf
    +++ b/meta-poky/conf/distro/poky.conf
    @@ -56,6 +56,7 @@ SANITY_TESTED_DISTROS ?= " \
                 ubuntu-16.04 \n \
                 ubuntu-18.04 \n \
                 ubuntu-19.04 \n \
    +            ubuntu-20.04 \n \
                 fedora-30 \n \
                 fedora-31 \n \
                 centos-7 \n \

    1. Hello Z-Florent Le Saout  It is just that the builds are not officially tested and verified in 20.04 Ubuntu as the priorities are more on the feature/enhancement on the platform rather than the host machine( plus 18.04 support is still available as it is an LTS version )

  4. I found an issue with heaptrack package, but as I've switched to Raspi4, I will post on raspi4 thread Narayanaswamy Ramaiyer 

  5. The source code cannot download.....

    And my netrc is correct.


    alex@vm:~/rdkb$ repo init -u https://code.rdkcentral.com/r/manifests -b dunfell -m rdkb-extsrc.xml
    Downloading Repo source from https://gerrit.googlesource.com/git-repo
    Downloading manifest from https://code.rdkcentral.com/r/manifests
    fatal: remote error: access at least one ref not permitted
    manifests: sleeping 4.0 seconds before retrying
    fatal: remote error: access at least one ref not permitted
    fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests

  6. Also having the issue reported above - Do I need to raise a support ticket ?

  7. I am getting this error: Can anyone help?


    ERROR: Execution of '/export/home/ms1257/RDK-B-2022q3-dunfell-bld71/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.39509' failed with exit code 1


    ERROR: Task (/export/home/ms1257/RDK-B-2022q3-dunfell-bld71/meta-rdk/recipes-core/images/rdk-generic-broadband-image.bb:do_image_wic) failed with exit code '1'

    ERROR: rdk-generic-broadband-image-1.0-r0 do_image_wic: Execution of '/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679' failed with exit code 1
    ERROR: Logfile of failure stored in: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/log.do_image_wic.8679
    ERROR: Task (/export/home/ms1257/RDK-B-2022q3-dunfell/meta-rdk/recipes-core/images/rdk-generic-broadband-image.bb:do_image_wic) failed with exit code '1'

    Contents of: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/log.do_image_wic.8679

    DEBUG: Executing python function set_image_size
    DEBUG: 257816.000000 = 198320 * 1.300000
    DEBUG: 257816.000000 = max(257816.000000, 8192)[257816.000000] + 0
    DEBUG: 257816.000000 = int(257816.000000)
    DEBUG: 258048 = aligned(257816)
    DEBUG: returning 258048
    DEBUG: Python function set_image_size finished
    DEBUG: Executing python function extend_recipe_sysroot
    NOTE: Direct dependencies are ['virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/meta-rdk-ext/recipes-devtools/fdisk/gptfdisk_1.0.8.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.4.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.31.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/bison/bison_3.5.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.4.1.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/parted/parted_3.3.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/opkg/opkg_0.4.2.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_9.3.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.23.bb:do_populate_sysroot']
    NOTE: Installed into sysroot: ['dosfstools-native', 'binutils-cross-arm', 'lzop-native', 'gptfdisk-native', 'bc-native', 'rpi-config', 'linux-raspberrypi', 'bison-native', 'parted-native', 'gcc-cross-arm', 'kern-tools-native', 'flex-native', 'popt-native', 'mpfr-native', 'libmpc-native', 'linux-libc-headers', 'gmp-native']
    NOTE: Skipping as already exists in sysroot: ['xz-native', 'pigz-native', 'depmodwrapper-cross', 'quilt-native', 'makedevs-native', 'ldconfig-native', 'patch-native', 'e2fsprogs-native', 'cross-localedef-native', 'squashfs-tools-native', 'btrfs-tools-native', 'opkg-utils-native', 'cdrtools-native', 'pbzip2-native', 'update-rc.d-native', 'syslinux-native', 'kmod-native', 'opkg-native', 'bmap-tools-native', 'qemuwrapper-cross', 'pseudo-native', 'mtools-native', 'autoconf-native', 'automake-native', 'gnu-config-native', 'pkgconfig-native', 'libtool-native', 'shadow-native', 'zlib-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'lzo-native', 'ncurses-native', 'util-linux-native', 'systemd-systemctl-native', 'readline-native', 'qemu-native', 'attr-native', 'lz4-native', 'acl-native', 'python3-setuptools-native', 'python3-native', 'perl-native', 'debianutils-native', 'openssl-native', 'bzip2-native', 'nasm-native', 'gtk-doc-native', 'libsolv-native', 'libarchive-native', 'python3-six-native', 'shared-mime-info-native', 'm4-native', 'libpcre2-native', 'libcap-ng-native', 'glib-2.0-native', 'unzip-native', 'sqlite3-native', 'gdbm-native', 'libnsl2-native', 'libffi-native', 'libtirpc-native', 'db-native', 'groff-native', 'expat-native', 'cmake-native', 'ninja-native', 'libxml2-native', 'intltool-native', 'meson-native', 'libpcre-native', 'gettext-native', 'curl-native', 're2c-native', 'libxml-parser-perl-native']
    DEBUG: sed -e 's:^[^/]*/:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/:g' /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/bison-native/fixmepath /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/gcc-cross-arm/fixmepath /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/pkgdata/raspberrypi-rdk-broadband:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/fifo.8679:g'
    DEBUG: Python function extend_recipe_sysroot finished
    DEBUG: Executing shell function do_image_wic
    INFO: Creating image(s)...

    WARNING: bootloader config not specified, using defaults

    WARNING: The ext4 filesystem mounted at / has no Y2038 support. Inodes (of size 128) are too small.
    INFO: The new image(s) can be found here:
      /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/build-wic/sdimage-raspberrypi-202210032056-mmcblk0.direct

    The following build artifacts were used to create the image(s):
      ROOTFS_DIR:                   /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs
      BOOTIMG_DIR:                  /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot/usr/share
      KERNEL_DIR:                   /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/deploy/images/raspberrypi-rdk-broadband
      NATIVE_SYSROOT:               /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native

    INFO: The image(s) were created using OE kickstart file:
      /export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/wic/sdimage-raspberrypi.wks
    bmaptool: ERROR: An error occurred, here is the traceback:
    Traceback (most recent call last):
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 383, in _invoke_fiemap
        fcntl.ioctl(self._f_image, _FIEMAP_IOCTL, self._buf, 1)
    OSError: [Errno 95] Operation not supported

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 528, in filemap
        return FilemapFiemap(image)
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 357, in __init__
        self.block_is_mapped(0)
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 404, in block_is_mapped
        struct_fiemap = self._invoke_fiemap(block, 1)
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 391, in _invoke_fiemap
        raise ErrorNotSupp(errstr)
    bmaptools.Filemap.ErrorNotSupp: FilemapFiemap: the FIEMAP ioctl is not supported by the file-system

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/BmapCreate.py", line 176, in __init__
        self.filemap = Filemap.filemap(self._f_image)
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 530, in filemap
        return FilemapSeek(image)
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 203, in __init__
        self._probe_seek_hole()
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 238, in _probe_seek_hole
        raise ErrorNotSupp("the file-system does not support "
    bmaptools.Filemap.ErrorNotSupp: the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/CLI.py", line 554, in create_command
        creator = BmapCreate.BmapCreate(args.image, output, "sha256")
      File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/BmapCreate.py", line 178, in __init__
        raise Error("cannot generate bmap for file '%s': %s"

    bmaptool: ERROR: cannot generate bmap for file 'rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic': the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

    WARNING: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679:1 exit 1 from 'bmaptool create rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic -o rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic.bmap'
    ERROR: Execution of '/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679' failed with exit code 1

    1. Hi Z-Manickam Shanmugam 
      Could you share us the build steps you followed .which release you are using ? 

      1. Deepika Ganapathi Bhat The steps as exactly as above in this page with the following changes:

        • Host Setup: Verified the following versions or higher/+: (as we are building on our local build servers:(Linux sgardkbld61 5.4.0-124-generic #140~18.04.1-Ubuntu SMP Fri Aug 5 11:43:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)
          • Git 1.8.3.1 or greater
          • tar 1.27 or greater
          • Python 3.4.0 or greater
          • Coreutils(E.g realpath)
        • Repo Setup
        • Yoct Build Steps - fails as above. 

        Let me know if you need any additional information. Meantime, I am going to try to build it in a docker container.

        1. Hi Z-Manickam Shanmugam 

          Can you share me the complete failure log.

          If you are trying to build latest cmf release ,please refer RDKB_2022q3_dunfell  

          1. I don't have permission to upload the console-latest.log and the specic wic error log. However, the wic error log is not that big: 

            ERROR: rdk-generic-broadband-image-1.0-r0 do_image_wic: Execution of '/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679' failed with exit code 1
            ERROR: Logfile of failure stored in: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/log.do_image_wic.8679
            ERROR: Task (/export/home/ms1257/RDK-B-2022q3-dunfell/meta-rdk/recipes-core/images/rdk-generic-broadband-image.bb:do_image_wic) failed with exit code '1'

            Contents of: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/log.do_image_wic.8679

            DEBUG: Executing python function set_image_size
            DEBUG: 257816.000000 = 198320 * 1.300000
            DEBUG: 257816.000000 = max(257816.000000, 8192)[257816.000000] + 0
            DEBUG: 257816.000000 = int(257816.000000)
            DEBUG: 258048 = aligned(257816)
            DEBUG: returning 258048
            DEBUG: Python function set_image_size finished
            DEBUG: Executing python function extend_recipe_sysroot
            NOTE: Direct dependencies are ['virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.34.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/meta-rdk-ext/recipes-devtools/fdisk/gptfdisk_1.0.8.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.4.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.31.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/bison/bison_3.5.4.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.4.1.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-extended/parted/parted_3.3.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/opkg/opkg_0.4.2.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_9.3.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/export/home/ms1257/RDK-B-2022q3-dunfell/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.23.bb:do_populate_sysroot']
            NOTE: Installed into sysroot: ['dosfstools-native', 'binutils-cross-arm', 'lzop-native', 'gptfdisk-native', 'bc-native', 'rpi-config', 'linux-raspberrypi', 'bison-native', 'parted-native', 'gcc-cross-arm', 'kern-tools-native', 'flex-native', 'popt-native', 'mpfr-native', 'libmpc-native', 'linux-libc-headers', 'gmp-native']
            NOTE: Skipping as already exists in sysroot: ['xz-native', 'pigz-native', 'depmodwrapper-cross', 'quilt-native', 'makedevs-native', 'ldconfig-native', 'patch-native', 'e2fsprogs-native', 'cross-localedef-native', 'squashfs-tools-native', 'btrfs-tools-native', 'opkg-utils-native', 'cdrtools-native', 'pbzip2-native', 'update-rc.d-native', 'syslinux-native', 'kmod-native', 'opkg-native', 'bmap-tools-native', 'qemuwrapper-cross', 'pseudo-native', 'mtools-native', 'autoconf-native', 'automake-native', 'gnu-config-native', 'pkgconfig-native', 'libtool-native', 'shadow-native', 'zlib-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'lzo-native', 'ncurses-native', 'util-linux-native', 'systemd-systemctl-native', 'readline-native', 'qemu-native', 'attr-native', 'lz4-native', 'acl-native', 'python3-setuptools-native', 'python3-native', 'perl-native', 'debianutils-native', 'openssl-native', 'bzip2-native', 'nasm-native', 'gtk-doc-native', 'libsolv-native', 'libarchive-native', 'python3-six-native', 'shared-mime-info-native', 'm4-native', 'libpcre2-native', 'libcap-ng-native', 'glib-2.0-native', 'unzip-native', 'sqlite3-native', 'gdbm-native', 'libnsl2-native', 'libffi-native', 'libtirpc-native', 'db-native', 'groff-native', 'expat-native', 'cmake-native', 'ninja-native', 'libxml2-native', 'intltool-native', 'meson-native', 'libpcre-native', 'gettext-native', 'curl-native', 're2c-native', 'libxml-parser-perl-native']
            DEBUG: sed -e 's:^[^/]*/:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/:g' /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/bison-native/fixmepath /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/gcc-cross-arm/fixmepath /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/pkgdata/raspberrypi-rdk-broadband:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/fifo.8679:g'
            DEBUG: Python function extend_recipe_sysroot finished
            DEBUG: Executing shell function do_image_wic
            INFO: Creating image(s)...

            WARNING: bootloader config not specified, using defaults

            WARNING: The ext4 filesystem mounted at / has no Y2038 support. Inodes (of size 128) are too small.
            INFO: The new image(s) can be found here:
              /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/build-wic/sdimage-raspberrypi-202210032056-mmcblk0.direct

            The following build artifacts were used to create the image(s):
              ROOTFS_DIR:                   /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs
              BOOTIMG_DIR:                  /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot/usr/share
              KERNEL_DIR:                   /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/deploy/images/raspberrypi-rdk-broadband
              NATIVE_SYSROOT:               /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native

            INFO: The image(s) were created using OE kickstart file:
              /export/home/ms1257/RDK-B-2022q3-dunfell/meta-raspberrypi/wic/sdimage-raspberrypi.wks
            bmaptool: ERROR: An error occurred, here is the traceback:
            Traceback (most recent call last):
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 383, in _invoke_fiemap
                fcntl.ioctl(self._f_image, _FIEMAP_IOCTL, self._buf, 1)
            OSError: [Errno 95] Operation not supported

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 528, in filemap
                return FilemapFiemap(image)
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 357, in __init__
                self.block_is_mapped(0)
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 404, in block_is_mapped
                struct_fiemap = self._invoke_fiemap(block, 1)
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 391, in _invoke_fiemap
                raise ErrorNotSupp(errstr)
            bmaptools.Filemap.ErrorNotSupp: FilemapFiemap: the FIEMAP ioctl is not supported by the file-system

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/BmapCreate.py", line 176, in __init__
                self.filemap = Filemap.filemap(self._f_image)
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 530, in filemap
                return FilemapSeek(image)
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 203, in __init__
                self._probe_seek_hole()
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/Filemap.py", line 238, in _probe_seek_hole
                raise ErrorNotSupp("the file-system does not support "
            bmaptools.Filemap.ErrorNotSupp: the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/CLI.py", line 554, in create_command
                creator = BmapCreate.BmapCreate(args.image, output, "sha256")
              File "/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/bmaptools/BmapCreate.py", line 178, in __init__
                raise Error("cannot generate bmap for file '%s': %s"

            bmaptool: ERROR: cannot generate bmap for file 'rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic': the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

            WARNING: /export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679:1 exit 1 from 'bmaptool create rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic -o rdkb-generic-broadband-image_rdk-next_20221003194334.rootfs.wic.bmap'
            ERROR: Execution of '/export/home/ms1257/RDK-B-2022q3-dunfell/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/temp/run.do_image_wic.8679' failed with exit code 1

        2. Build with repo init of rdkb-2021q4-dunfell (-b arg) works. Build succeeds as per procedure here: docker container.

          Will try to build rdkb-2022q3-dunfell.

          1. What worked:

            Docker Build

            • repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2022q3-dunfell
            • repo sync -j `nproc` --no-clone-bundle --no-tags
            • MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment
            • bitbake rdk-generic-broadband-image

            Was able to successfully flash it to a micro-SD card via balenaEtcher and RPi3 3B is up on it!

            1. Hi Z-Manickam Shanmugam 

              Thanks for the update , for CMF release please refer RDK-B Code Releases

              1. Hi Deepika Ganapathi Bhat 

                How can I get the access to RDK-B Code Releases page? Many thanks.

                BR, Nathan

                1. Hi Z-Nathan Ren 

                  Refer RDK-B code release page : RDK-B Code Releases
                  To access the page , please login/signup with rdkcentral credentials.

                  Regards,

                  Deepika

                  1. Hi Deepika Ganapathi Bhat 

                    Thanks for the reply. I think I already logined as I can reply here to you. But if I open RDK-B Code Releases(above link), it returned to me:

                    You don't have permission to view this page

                    This is because it's inheriting restrictions from a parent page. A space admin or the person who shared this page may be able to give you access.


                    1. Hi Z-Nathan Ren 

                      Please raise a access request  mail for the wiki page to  support@rdkcentral.com

                      Regards,
                      Deepika Bhat

  8. Hi,

    I am trying to build RDK-B for RPI 3B+. I have already executed commands below and they seems to be successful.

    • repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2022q3-dunfell
    • repo sync -j `nproc` --no-clone-bundle --no-tags
    • MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment

    Then I encountered error below, could you please help to check, many thanks.

    nathan@ubuntu:~/RDK/dunfell/build-raspberrypi-rdk-broadband$ bitbake rdk-generic-broadband-image
    Loading cache: 100% |##############################################################################################################################################| Time: 0:00:00
    Loaded 3005 entries from dependency cache.
    WARNING: /home/nathan/RDK/dunfell/meta-rdk-ext/recipes-common/nmap/nmap_7.60.bb: distro_features_check.bbclass is deprecated, please use features_check.bbclass insteadA:  0:00:58
    WARNING: /home/nathan/RDK/dunfell/openembedded-core/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb: Variable key pkg_postinst_${BREAKPAD_LOGMAPPER_PKG} (    process_name="${@d.getVar('BREAKPAD_LOGMAPPER_PROCLIST', True)}"
        log_files="${@d.getVar('BREAKPAD_LOGMAPPER_LOGLIST', True)}"
        file="breakpad-logmapper.conf"

        if [ ! -z "$process_name" ] && [ ! -z "$log_files" ]; then
            echo "Updating process name:$process_name and log files:$log_files to rootfs"
            echo "${process_name}=${log_files}" >> $D${sysconfdir}/${file}
        else
            echo "No Process name or No log files found"
        fi
    ) replaces original key pkg_postinst_wpa-supplicant (   # If we're offline, we don't need to do this.
            if [ "x$D" = "x" ]; then
                    killall -q -HUP dbus-daemon || true
            fi

    ).
    ERROR: ExpansionError during parsing /home/nathan/RDK/dunfell/meta-rdk-ext/recipes-support/littlesheens/littlesheens_1.0.0.bb                                      | ETA:  0:00:38
    Traceback (most recent call last):
      File "/home/nathan/RDK/dunfell/openembedded-core/bitbake/lib/bb/fetch2/__init__.py", line 1175, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7f21b9b8bb38>, d=<bb.data_smart.DataSmart object at 0x7f21b9bd25f8>, name='default'):
             if srcrev == "AUTOINC":
        >        srcrev = ud.method.latest_revision(ud, d, name)

      File "/home/nathan/RDK/dunfell/openembedded-core/bitbake/lib/bb/fetch2/__init__.py", line 1590, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7f21b9b8bb38>, d=<bb.data_smart.DataSmart object at 0x7f21b9bd25f8>, name='default'):
                 except KeyError:
        >            revs[key] = rev = self._latest_revision(ud, d, name)
                     return rev
      File "/home/nathan/RDK/dunfell/openembedded-core/bitbake/lib/bb/fetch2/git.py", line 705, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7f21b9b8bb38>, d=<bb.data_smart.DataSmart object at 0x7f21b9bd25f8>, name='default'):
                 """
        >        output = self._lsremote(ud, d, "")
                 # Tags of the form ^{} may not work, need to fallback to other form
      File "/home/nathan/RDK/dunfell/openembedded-core/bitbake/lib/bb/fetch2/git.py", line 694, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7f21b9b8bb38>, d=<bb.data_smart.DataSmart object at 0x7f21b9bd25f8>, search=''):
                         bb.fetch2.check_network_access(d, cmd, repourl)
        >            output = runfetchcmd(cmd, d, True)
                     if not output:
      File "/home/nathan/RDK/dunfell/openembedded-core/bitbake/lib/bb/fetch2/__init__.py", line 892, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/nathan/RDK/dunfell/openembedded-core/scripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/nathan/RDK/dunfell/openembedded-core/bitbake/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/hosttools"; export HOME="/home/nathan"; git -c core.fsyncobjectfiles=0 ls-remote "https://github.com/Comcast/littlesheens.git" ', d=<bb.data_smart.DataSmart object at 0x7f21b9b8ba20>, quiet=True, cleanup=[], log=None, workdir=None):

        >        raise FetchError(error_message)

    bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/nathan/RDK/dunfell/openembedded-core/scripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/littlesheens/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/nathan/RDK/dunfell/openembedded-core/bitbake/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/hosttools"; export HOME="/home/nathan"; git -c core.fsyncobjectfiles=0 ls-remote "https://github.com/Comcast/littlesheens.git"  failed with exit code 128, output:
    fatal: unable to access 'https://github.com/Comcast/littlesheens.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

    1. Hi Z-Nathan Ren 

      Could you share us the git and python version from your Host system.Do you have access to https://github.com/Comcast/littlesheens.git/ link ? could you please verify open the link in any browser 

      1. Hi Deepika Ganapathi Bhat 

        git version:

        nathan@ubuntu:~$ git --version
        git version 2.17.1

        python version:

        nathan@ubuntu:~$ python -V
        Python 2.7.17

        But there are 2 versions of python installed I think:

        lrwxrwxrwx 1 root root      18 May 30 21:06 /usr/bin/python -> /usr/bin/python2.7*
        -rwxr-xr-x 1 root root 3637096 Mar  8 10:40 /usr/bin/python2.7*
        lrwxrwxrwx 1 root root       9 May 30 03:01 /usr/bin/python3 -> python3.6*
        -rwxr-xr-x 2 root root 4526456 Mar 10 08:46 /usr/bin/python3.6

        I just successfully accessed to https://github.com/Comcast/littlesheens.git/ in browser. I am not sure if it is stability issue.

        I just removed cache folder under build-raspberrypi-rdk-broadband and re-executed command bitbake rdk-generic-broadband-image, current status as follows:

        Currently  2 running tasks (389 of 5304)   7% |#########                                                                                                                         |
        0: e2fsprogs-native-1.45.4-r0 do_fetch (pid 63351)  33% |###################################                                                                        | 324.00 KiB/s
        1: elfutils-native-0.178-r0 do_compile - 15s (pid 65023)

        1. Hi Deepika Ganapathi Bhat 

          Error message for above retry:

          ERROR: linenoise-1.0-r1 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/nathan/RDK/dunfell/openembedded-core/scripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot/usr/bin/crossscripts:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot-native/usr/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot-native/usr/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot-native/sbin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/recipe-sysroot-native/bin:/home/nathan/RDK/dunfell/openembedded-core/bitbake/bin:/home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/hosttools"; export HOME="/home/nathan"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror "https://github.com/antirez/linenoise.git" /home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/../downloads/git2/github.com.antirez.linenoise.git --progress failed with exit code 128, no output
          ERROR: linenoise-1.0-r1 do_fetch: Fetcher failure for URL: 'git://github.com/antirez/linenoise.git;protocol=https'. Unable to fetch URL from any source.
          ERROR: Logfile of failure stored in: /home/nathan/RDK/dunfell/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/linenoise/1.0-r1/temp/log.do_fetch.123344
          ERROR: Task (/home/nathan/RDK/dunfell/meta-rdk-ext/recipes-support/linenoise/linenoise.bb:do_fetch) failed with exit code '1'

          If you want me to provide the full log after executing command bitbake rdk-generic-broadband-image, please let me know.

          Many thanks in advance!

          1. Hi Z-Nathan Ren 

            Created [RDKBSUP-980] RPI 3B_ build is failing with ExpansionError - JIRA (rdkcentral.com) to to track the issue further ,
            could you please update the ticket with the below details from host system.

            • Host system version , are you building RDK-B in which version ? (Ubuntu version )
            • Were the essential packages installation success? Did you face any error while installing those packages?
  9. Hi,

    Can anyone please let me know
    1. How to see the created devices under rdk-b device show summary in test manager webui 
    2. How to execute/run the scripts in webui

    Thanks & Regards,
    Mahalaxmi.

  10. Hi,


    Can anyone please help me with this Error?

    WARNING: No bb files matched BBFILE_PATTERN_rdk '^/home/lean/RPI3/dunfel/meta-rdk/'
    ERROR: Nothing PROVIDES 'rdk-generic-broadband-image'. Close matches:
      rdk-generic-broadband-boot-image
      rdk-generic-broadband-lxc-image
      rdk-generic-hybrid-dtv-image


  11. Dear all,

      I face an error when begin of build:

    bitbake rdk-generic-broadband-image
    Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:00
    Loaded 21 entries from dependency cache.
    ERROR: ExpansionError during parsing /home/larry/RDK_Pi/20230811/meta-cmf-raspberrypi/meta-rdk-broadband/recipes-ccsp/hal/hal-fwupgrade_git.bb                                                      | ETA:  0:02:12
    Traceback (most recent call last):
      File "Var <do_compile[file-checksums]>", line 1, in <module>
      File "/home/larry/RDK_Pi/20230811/openembedded-core/meta/classes/externalsrc.bbclass", line 221, in srctree_hash_files(d=<bb.data_smart.DataSmart object at 0x7fe43d399f00>, srcdir=None):
                     git_sha1 = subprocess.check_output(['git', 'write-tree'], cwd=s_dir, env=env).decode("utf-8")
        >            submodule_helper = subprocess.check_output(['git', 'submodule--helper', 'list'], cwd=s_dir, env=env).decode("utf-8")
                     for line in submodule_helper.splitlines():
      File "/usr/lib/python3.10/subprocess.py", line 421, in check_output(timeout=None, *popenargs=(['git', 'submodule--helper', 'list'],), **kwargs={'cwd': '/home/larry/RDK_Pi/20230811/meta-cmf/../rdkb/devices/raspberrypi/hal/source/fwupgrade', 'env': {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'PWD': '/home/larry/RDK_Pi/20230811/build-raspberrypi-rdk-broadband', 'LOGNAME': 'larry', 'HOME': '/home/larry', 'BBPATH': '/home/larry/RDK_Pi/20230811/build-raspberrypi-rdk-broadband', 'BB_ENV_EXTRAWHITE': 'ALL_PROXY BBPATH_EXTRA BB_LOGCONFIG BB_NO_NETWORK BB_NUMBER_THREADS BB_SETSCENE_ENFORCE BB_SRCREV_POLICY DISTRO FTPS_PROXY FTP_PROXY GIT_PROXY_COMMAND HTTPS_PROXY HTTP_PROXY MACHINE NO_PROXY PARALLEL_MAKE SCREENDIR SDKMACHINE SOCKS5_PASSWD SOCKS5_USER SSH_AGENT_PID SSH_AUTH_SOCK STAMPS_DIR TCLIBC TCMODE all_proxy ftp_proxy ftps_proxy http_proxy https_proxy no_proxy ', 'TERM': 'xterm-256color', 'USER': 'larry', 'PATH': '/home/larry/RDK_Pi/20230811/openembedded-core/scripts:/home/larry/RDK_Pi/20230811/openembedded-core/bitbake/bin:/home/larry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'LC_ALL': 'en_US.UTF-8', 'GIT_INDEX_FILE': '/tmp/oe-devtool-index35xxh9a0'}}):
         
        >    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
                        **kwargs).stdout
      File "/usr/lib/python3.10/subprocess.py", line 526, in run(input=None, capture_output=False, timeout=None, check=True, *popenargs=(['git', 'submodule--helper', 'list'],), **kwargs={'stdout': -1, 'cwd': '/home/larry/RDK_Pi/20230811/meta-cmf/../rdkb/devices/raspberrypi/hal/source/fwupgrade', 'env': {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'PWD': '/home/larry/RDK_Pi/20230811/build-raspberrypi-rdk-broadband', 'LOGNAME': 'larry', 'HOME': '/home/larry', 'BBPATH': '/home/larry/RDK_Pi/20230811/build-raspberrypi-rdk-broadband', 'BB_ENV_EXTRAWHITE': 'ALL_PROXY BBPATH_EXTRA BB_LOGCONFIG BB_NO_NETWORK BB_NUMBER_THREADS BB_SETSCENE_ENFORCE BB_SRCREV_POLICY DISTRO FTPS_PROXY FTP_PROXY GIT_PROXY_COMMAND HTTPS_PROXY HTTP_PROXY MACHINE NO_PROXY PARALLEL_MAKE SCREENDIR SDKMACHINE SOCKS5_PASSWD SOCKS5_USER SSH_AGENT_PID SSH_AUTH_SOCK STAMPS_DIR TCLIBC TCMODE all_proxy ftp_proxy ftps_proxy http_proxy https_proxy no_proxy ', 'TERM': 'xterm-256color', 'USER': 'larry', 'PATH': '/home/larry/RDK_Pi/20230811/openembedded-core/scripts:/home/larry/RDK_Pi/20230811/openembedded-core/bitbake/bin:/home/larry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'LC_ALL': 'en_US.UTF-8', 'GIT_INDEX_FILE': '/tmp/oe-devtool-index35xxh9a0'}}):
                 if check and retcode:
        >            raise CalledProcessError(retcode, process.args,
                                              output=stdout, stderr=stderr)
    bb.data_smart.ExpansionError: Failure expanding variable do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which triggered exception CalledProcessError: Command '['git', 'submodule--helper', 'list']' returned non-zero exit status 129.


    Summary: There was 1 ERROR message shown, returning a non-zero exit code.


       My python version:

    python --version
    Python 3.10.12

       Thank you

  12. I'm getting this error when using rdkb-2023q2-dunfell  branch and building without any modifications:

    ERROR: zilker-sdk-rdkb-2023q2-dunfell+git999-r0 do_configure: Execution of '/work/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker-sdk/rdkb-2023q2-dunfell+git999-r0/temp/run.do_configure.3233927' failed with exit code 1
    ERROR: Logfile of failure stored in: /work/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker-sdk/rdkb-2023q2-dunfell+git999-r0/temp/log.do_configure.3233927
    Log data follows:
    | DEBUG: Executing python function externalsrc_configure_prefunc
    | DEBUG: Python function externalsrc_configure_prefunc finished
    | DEBUG: Executing shell function do_configure
    | 
    | FAILURE: Build failed with an exception.
    | 
    | * What went wrong:
    | Failed to load native library 'libnative-platform.so' for Linux amd64.
    | 
    | * Try:
    | Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    | 
    | * Get more help at https://help.gradle.org
    | WARNING: exit code 1 from a shell command.
    | ERROR: Execution of '/work/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker-sdk/rdkb-2023q2-dunfell+git999-r0/temp/run.do_configure.3233927' failed with exit code 1
    ERROR: Task (/work/meta-cmf-broadband/recipes-iot/zilker-sdk/zilker-sdk_git.bb:do_configure) failed with exit code '1'

    Any idea what went wrong here?

    Thanks!

    1. Hi Karl Frederick Roldan

      Please clean the /tmp dir of the host system and re-try the build.
      Could you please check if any gradle related files got created under /tmp dir and remove them.