Skip to end of metadata
Go to start of metadata

Host Setup

NOTE: Observing fetch errors in VMs with Ubuntu14.x. Thus, suggesting to use VMs with Ubuntu16.x or higher.

Building

Note: Cloning the code before login once to code.rdkcentral.com, user would get the Authentication error, even though the account is in good standing and has all the required access. Please login to code.rdkcentral.com before attempting to clone.

To build, follow below instructions

Create workspace directory

mkdir <workspace dir>
cd <workspace dir>


Follow below instructions to create build with external sources

repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b dunfell
repo sync -j4 --no-clone-bundle
MACHINE=qemux86broadband source meta-cmf/setup-environment
bitbake rdk-generic-broadband-image



  • No labels

16 Comments

  1. I'm building the image with below command:

    repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b dunfell
    repo sync -j4 --no-clone-bundle
    MACHINE=qemux86broadband source meta-cmf/setup-environment
    bitbake rdk-generic-broadband-image

    After build OK. How can I run with runqemu?

    'runqemu qemuarm' seems failed.

    Below is the error log.

    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ runqemu qemuarm
    runqemu - INFO - Running MACHINE=qemuarm bitbake -e ...
    runqemu - ERROR - /build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemuarm not a directory valid DEPLOY_DIR_IMAGE
    ls: cannot access '/build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemuarm/*.qemuboot.conf': No such file or directory
    runqemu - ERROR - Command 'ls -t /build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemuarm/*.qemuboot.conf' returned non-zero exit status 2.
    runqemu - INFO - Cleaning up

    And below is the image files.


    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ ls tmp/deploy/images/qemux86broadband/
    bzImage
    bzImage--5.4.103+gitAUTOINC+feeb59687b_80ade4d43b-r0-qemux86broadband-20220307083421.bin
    bzImage-qemux86broadband.bin
    modules--5.4.103+gitAUTOINC+feeb59687b_80ade4d43b-r0-qemux86broadband-20220307083421.tgz
    modules-qemux86broadband.tgz
    rdk-generic-broadband-image.env
    rdk-generic-broadband-image-qemux86broadband-dbg.tar.gz
    rdk-generic-broadband-image-qemux86broadband.manifest
    rdk-generic-broadband-image-qemux86broadband.qemuboot.conf
    rdk-generic-broadband-image-qemux86broadband.testdata.json
    rdk-generic-broadband-image-qemux86broadband.wic.vmdk
    systemd-bootia32.efi
    X86EMLTRBB_rdk-next_20220307101902-dbg.rootfs.tar.gz
    X86EMLTRBB_rdk-next_20220307101902.qemuboot.conf
    X86EMLTRBB_rdk-next_20220307101902.rootfs.manifest
    X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk.bz2
    X86EMLTRBB_rdk-next_20220307101902.testdata.json
    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$
    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$
    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ ls tmp/deploy/images/qemux86broadband/
    bzImage
    bzImage--5.4.103+gitAUTOINC+feeb59687b_80ade4d43b-r0-qemux86broadband-20220307083421.bin
    bzImage-qemux86broadband.bin
    modules--5.4.103+gitAUTOINC+feeb59687b_80ade4d43b-r0-qemux86broadband-20220307083421.tgz
    modules-qemux86broadband.tgz
    rdk-generic-broadband-image.env
    rdk-generic-broadband-image-qemux86broadband-dbg.tar.gz
    rdk-generic-broadband-image-qemux86broadband.manifest
    rdk-generic-broadband-image-qemux86broadband.qemuboot.conf
    rdk-generic-broadband-image-qemux86broadband.testdata.json
    rdk-generic-broadband-image-qemux86broadband.wic.vmdk
    systemd-bootia32.efi
    X86EMLTRBB_rdk-next_20220307101902-dbg.rootfs.tar.gz
    X86EMLTRBB_rdk-next_20220307101902.qemuboot.conf
    X86EMLTRBB_rdk-next_20220307101902.rootfs.manifest
    X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk.bz2
    X86EMLTRBB_rdk-next_20220307101902.testdata.json

    command `runqemu tmp/deploy/images/qemux86broadband/X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk`

    also failed

    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ ls tmp/deploy/images/qemux86broadband/X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    tmp/deploy/images/qemux86broadband/X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$
    rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ runqemu tmp/deploy/images/qemux86broadband/X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    runqemu - ERROR - Unknown path arg /build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/X86EMLTRBB_rdk-next_20220307101902.rootfs.wic.vmdk
    runqemu - INFO - Cleaning up
    rdadm@245163:/build/vic/rdkb-0307

    How can I have a try with runqemu?


    1. Seems run with below command?

      rdadm@245163:/build/vic/rdkb-0307/build-qemux86broadband$ runqemu tmp/deploy/images/qemux86broadband/bzImage-qemux86broadband.bin  tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.wic.vmdk

      runqemu - WARNING - Maybe unsupported FSTYPE: vmdk
      runqemu - WARNING - /build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.wic.qemuboot.conf doesn't exist
      runqemu - INFO - Running bitbake -e ...
      runqemu - INFO - Continuing with the following parameters:
      KERNEL: [/build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/bzImage-qemux86broadband.bin]
      MACHINE: [qemux86broadband]
      FSTYPE: [vmdk]
      ROOTFS: [/build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.wic.vmdk]
      CONFFILE: [/build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.qemuboot.conf]
      
      runqemu - INFO - Setting up tap interface under sudo
      runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0
      runqemu - INFO - Running /build/vic/rdkb-0307/build-qemux86broadband/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=/build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.wic.vmdk,if=virtio,format=vmdk -show-cursor -usb -device usb-tablet -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0   -cpu core2duo -m 256 -serial mon:vc -serial null -kernel /build/vic/rdkb-0307/build-qemux86broadband/tmp/deploy/images/qemux86broadband/bzImage-qemux86broadband.bin -append 'root=/dev/vda rw  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 '
      1. HI Vic Lin, 
        Try to download the <image>.wic.vmdk to your local PC.
        Try to run the Emulator image in virtualbox .
        Please follow this below link to run emulator image in vbox.
        RDK-B Emulator User Guide.

        Note: Emulator is still not ready yet to provide webui.

        Thank you.

  2. Hi, I have a problem to download source code.

    After confirm to login "https://code.rdkcentral.com", try below command.

    $ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b dunfell
    fatal: remote error: manifests unavailable
    manifests: sleeping 4.0 seconds before retrying
    fatal: remote error: manifests unavailable
    fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests

    My test env is ubuntu 18.04LTS with VMware virtual machine.

    1.  Hello djkim Please contact RDK Management at info@rdkcentral.com in case you need more information.
      You can get all the Apache components, but for any of the RDK Components, you have to obtain the RDK License Agreement.

  3. hi dear

    also, i have error with :

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

    the error is not found the repo.

    so, how can i get the RDK License Agreement?

    must i get license fromrdkcentral ?

    1. Hello , Please contact RDK Management at info@rdkcentral.com in case you need more information.
      You can get all the Apache components, but for any of the RDK Components, you have to obtain the RDK License Agreement.

  4. Build Failure , as of 10/16/22 based on RDK-B Emulator Dunfell Build Instructions


    ERROR: ccsp-common-library-native-1.99+git999-r0 do_fetch: Fetcher failure for URL: 'file://0001-SSLeay_add_all_algorithms-remove-in-openssl-1.1.patch;apply=no'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: RDK-B-EMULATOR/build-qemux86broadband/tmp/work/x86_64-linux/ccsp-common-library-native/1.99+git999-r0/temp/log.do_fetch.438107
    ERROR: Task (virtual:native:RDK-B-EMULATOR/meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-common-library.bb:do_fetch) failed with exit code '1'

    1. Hi Scott Kamp ,

      With latest code , 0001-SSLeay_add_all_algorithms-remove-in-openssl-1.1.patch is removed .

      Could you please check whether the below changes are available in your workspace
      https://code.rdkcentral.com/r/c/rdk/components/generic/rdk-oe/meta-rdk-broadband/+/74429/

      Regards,
      Priyankaa KVB

  5. Hi Priyankaa K V B Ill validate my tree however, this is not what you get following the guide verbatim, as i just cleared my tree and re-ran

    repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b dunfell
    repo sync -j4 --no-clone-bundle
    MACHINE=qemux86broadband source meta-cmf/setup-environment
    bitbake rdk-generic-broadband-image

    and again, 

    ERROR: ccsp-common-library-native-1.99+git999-r0 do_fetch: Fetcher failure for URL: 'file://0001-SSLeay_add_all_algorithms-remove-in-openssl-1.1.patch;apply=no'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/dingo/RDKE/build-qemux86broadband/tmp/work/x86_64-linux/ccsp-common-library-native/1.99+git999-r0/temp/log.do_fetch.3460554
    ERROR: Task (virtual:native:/home/dingo/RDKE/meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-common-library.bb:do_fetch) failed with exit code '1'

    So it appears to me that the document, is 1) incorrect, or 2) these changes are commited not in this tree.

    also note the report you pointed me to references

    Repo    rdk/components/generic/rdk-oe/meta-rdk-…
    Branch    rdk-next


    1. Hi Scott Kamp ,

      Can you please patch those changes for your workspace and check whether the build goes fine . 

      Regards,
      Priyankaa KVB

  6. Hello,

    I am trying to build build-qemux86broadband on Ubuntu 22.04.1 64bit


    and I get the following error:

    | gcc   -I. -I../../m4-1.4.18/lib   -isystem/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include  -isystem/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o dirname.o ../../m4-1.4.18/lib/dirname.c

    | In file included from /usr/include/signal.h:328,

    |                  from ./signal.h:52,

    |                  from ../../m4-1.4.18/lib/c-stack.c:49:

    | ../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("

    |    55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384

    |       |                          ^~~~~~~~

    | make[3]: *** [Makefile:1915: c-stack.o] Error 1

    | make[3]: *** Waiting for unfinished jobs....

    | make[3]: Leaving directory '/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'

    | make[2]: *** [Makefile:1674: all] Error 2

    | make[2]: Leaving directory '/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'

    | make[1]: *** [Makefile:1572: all-recursive] Error 1

    | make[1]: Leaving directory '/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'

    | make: *** [Makefile:1528: all] Error 2

    | ERROR: oe_runmake failed

    | WARNING: /media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/run.do_compile.36666:1 exit 1 from 'exit 1'

    | ERROR: Execution of '/media/jp/RDK/testingrdk/build-qemux86broadband/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/run.do_compile.36666' failed with exit code 1

    ERROR: Task (/media/jp/RDK/testingrdk/openembedded-core/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'

    WARNING: libpcre2-native-10.34-r0 do_fetch: Failed to fetch URL https://ftp.pcre.org/pub/pcre/pcre2-10.34.tar.bz2, attempting MIRRORS if available


    Is this related to 64 bit vs 32bit? do I need another source maybe?

    1. Hi Jason Politakis ,

      Can you try to install m4 version as 1.4.9 and try ?

      Regards,
      Priyankaa KVB

      1. Hello Priyankaa K V B 

        Thank you for your reply.
        Can you explain how i can do that?
        Do I need to modify the recipe? (which I dont know how to do to be honest)
        Do I just go to openembedded-core/meta/recipes-devtools/m4 and download the m4 version as 1.4.9?

        Br,
        Jason

        1. Hello Priyankaa K V B 

          Any update on my issue?

          1. Hi Jason Politakis ,

            Please upgrade to 1.4.19 using below steps

            m4 (1).zip

            • Go to recipes-devtools/m4
            • Place m4-1.4.19.inc , m4-native_1.4.19.bb , m4_1.4.19.bb in that path
            • Replace m4 folder i.e, recipes-devtools/m4/m4 with attached m4 folder (which holds patch files for the issue reported)
            • Go to rdk-bbmasks-rdkb-platform.inc and mask the older version of m4 files
            • bitbake -c compile -f m4
            • bitbake <complete image>

            Please try this steps and let me know how this works for you

            Regards,
            Priyankaa KVB