A tutorial to set up your environment and Download Source Code

1. Build Setup Instructions

1.1. Setting up the Host Environment

Pre-Requisites

Requirement

Yocto 2.2 (Morty)

Yocto 3.1 LTS (Dunfell)

Linux

32/64 bit Ubuntu 16.04 LTS

Precise supported distributions and versions are here

64 bit Ubuntu 18.04 LTS

Precise supported distributions and versions are here

Free HDD Space

Minimum 100GB Free Memory

Minimum 100GB Free memory space

Oracle Virtual Box

5.0.40 or higher

-

Wireless Adapter

Brand Name: Tenda ralink & Model Number:W311MI

TP-Link Archer T4U AC 1200

-

USB to Ethernet Switch

To connect with Ethernet Switch & Multiple Clients


Host Tools version
  • Git 1.8.3.1 or greater

  • tar 1.24 or greater

  • Python 2.7.3

  • Git 1.8.3.1 or greater

  • tar 1.28 or greater

  • Python 3.5.0 or greater

1.1.1. Install the following packages for setting up your host VM

The instructions provided below are meant to be executed via the command line on an Ubuntu machine

for yocto 2.2 (morty)
# essential packages installation
# super user mode is required

# major essential packages
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib g++-multilib build-essential chrpath socat bison curl
# supportive packages
sudo apt-get install libfile-slurp-perl libncurses-dev autoconf flex doxygen libtool automake libpcre3-dev zlib1g-dev libbz2-dev subversion minicom putty libssl-dev rpm python-pexpect python-svn python-argparse vim tofrodos meld dos2unix cmake uuid-dev ruby transfig libglib2.0-dev xutils-dev lynx-cur gperf autopoint python-dulwich python-dev openjdk-7-jre

Note : Please note openjdk-7-jre package is not available for Ubuntu-16.04 anymore. Presumably openjdk-8-jre should be used instead.

for yocto 3.1 (dunfell)
# essential packages installation
# super user mode is required

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

1.1.2. Configure bash as default command interpreter for shell scripts


sudo dpkg-reconfigure dash

Select “No”
To choose bash, when the prompt asks if you want to use dash as the default system shell - select “No”

1.1.3. Configure Git

Upgrade your Git version to 1.8.x or higher

On Ubuntu 16.04 LTS, if you are unable to upgrade your git version using apt-get, then follow the below steps in order to upgrade 

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Once git is installed, configure your name and email using the below commands

# review your existing configuration
git config --list --show-origin

# configure user name and email address
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

# configure git cookies. Needed for Gerrit to only contact the LDAP backend once.
git config --global http.cookieFile /tmp/gitcookie.txt
git config --global http.saveCookies true

1.1.4. Configure repo

In order to use Yocto build system, first you need to make sure that repo is properly installed on the machine:

# create a bin directory
mkdir ~/bin
export 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

Trivia Repo is a repository management tool that is built on top of Git. Its main purpose is to help manage projects that consist of many Git repositories, it can also be used to manage uploads to the CMF Gerrit instance and automate aspects of the development workflow.

Repo does not replace Git, it simply aids management of projects that contain multiple Git repositories into a single local working directory. Git will still be used for local operation such as commits etc.

Repo manages this for you by means of an XML based Manifest file. The Manifest file defines which repositories the project uses and links to appropriate revisions of each git repository, i.e where the upstream repositories reside and where they should be cloned locally. It is the manifest.xml (or default.xml) that determines which Git repositories and revisions repo will manage. This manifest.xml file is hosted in a Git repository along with all the other git repositories.

1.1.5.  Credential configuration

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

A sample .netrc file is illustrated below

machine code.rdkcentral.com

    login <YOUR_USERNAME>

    password <YOUR_PASSWORD>

1.2. Downloading Source Code & Building

1.2.1. Downloading Source Code

Following commands fetch the source code using repo tool

$ mkdir <Directory-Name> && cd <Directory-Name>

Please use the following repo init command

$ repo init -u https://user@code.rdkcentral.com/r/manifests -m manifest.xml -b <branch_name>

Examples :

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

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

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


$ repo sync --no-clone-bundle

  • 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.

1.2.2. Building

$ source <setup-environment>

The above step configures and sets up your directory to start an appropriate build.

There are different kinds of builds listed. Please read the options and select the number of the build you need.

1) meta-rdk-bsp-emulator/conf/machine/qemuarmbroadband.conf
2) meta-rdk-bsp-emulator/conf/machine/qemux86broadband.conf
3) meta-rdk-bsp-emulator/conf/machine/qemux86hyb.conf
4) meta-rdk-bsp-emulator/conf/machine/qemux86mc.conf
5) openembedded-core/meta/conf/machine/qemuarm.conf
6) openembedded-core/meta/conf/machine/qemux86-64.conf
7) openembedded-core/meta/conf/machine/qemux86.conf

Next, you would need to initiate the build using the following command:

$ bitbake <image-name>

On Successful build, the ROOTFS (in vmdk format) would be available at the following reference location based on the build type :

-$ {HOME}/emulator/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband-<timestamp>.vmdk

Example :  

…/build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband-20160217080610.vmdk


  • No labels

34 Comments

  1. Can the author double check if there is a typo in the command in section 1.1.1?

    $ sudo apt-get install build-essential get text bison <snip>

    Should that be 'gettext' without the space?

    1. there is no tool 'gettext' required. The essential packages installation command is reviewed and modified properly

  2. Can you check and update the document

    rdk@ubuntu:~$ sudo apt-get install python-software-properties
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package python-software-properties is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      software-properties-common

    E: Package 'python-software-properties' has no installation candidate
    rdk@ubuntu:~$ sudo add-apt-repository ppa:git-core/ppa

  3. I issued command "udo python3.6 ~/bin/repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b master" for download codes, but auth failed.

    Can somebody help?

    1. Do you register on https://code.rdkcentral.com/r/login/ ? If yes, please use the account and pwd to get the code.

      1. Hi Nicki:

        I type full email address as user name, so it got failed. It's OK now, thanks for help.

  4. Has https://code.rdkcentral.com/r/manifests moved to https://code.rdkcentral.com/r/rdkcmf/manifests ? I'm not able to view https://code.rdkcentral.com/r/manifests ("not found") and cloning gives "access at least one ref not permitted".

  5. After repo has been initialized  repo sync ask user name password again and again. Build not able to download 

    root@rajagopal-VirtualBox:/home/rajagopal/rdk/test/rdkbuild# sudo repo sync -j4 --no-clone-bundle

    Username for 'https://code.rdkcentral.com': rajagopal.s02

    Password for 'https://rajagopal.s02@code.rdkcentral.com': 

    Fetching:  0% (0/126) warming upUsername for 'https://code.rdkcentral.com': Username for 'https://code.rdkcentral.com': Username for 'https://code.rdkcentral.com': Username for 'https://code.rdkcentral.com': rajagopal.s02

    Password for 'https://rajagopal.s02@code.rdkcentral.com': 

    Username for 'https://code.rdkcentral.com': rajagopal.s02

    Password for 'https://rajagopal.s02@code.rdkcentral.com': 

    Username for 'https://code.rdkcentral.com': rajagopal.s02

    Why I can't fetch the code using repo sync guide me.

    1. Hi rajagopal.  Have you set your rdkcentral credential into the home directory '.netrc' file as per the 'Credential configuration' instructions above in this page?  I think 'repo' needs this so it can authenticate over and over as it fetches from each 'git' repo.

      1. Yes I have create the  '.netrc' file in home directory  and set as per the my user credential configuration on that file also.

  6. when i create the image file of RDK emulator then come this type error. anyone know what the problem. please help

    i am using this repo  :

    repo init -u https://code.rdkcentral.com/r/manifests -b rdk-next -m rdkv-nosrc.xml for creating image file of RDK Emulator.

    ubuntu@ubuntu-Latitude-E6430:~/emulator/build-qemux86mc-morty$ bitbake rdk-generic-mediaclient-wpe-image
    ERROR: ExpansionError during parsing /home/ubuntu/emulator/meta-rdk-restricted/recipes-extended/closedcaption/closedcaption_git.bb
    Traceback (most recent call last):
      File "/home/ubuntu/emulator/openembedded-core/bitbake/lib/bb/data_smart.py", line 386, in DataSmart.expandWithRefs(s='${RDK_RELEASE}+git${SRCPV}', varname='PV'):
                     try:
        >                s = __expand_var_regexp__.sub(varparse.var_sub, s)
                         try:
      File "/home/ubuntu/emulator/openembedded-core/bitbake/lib/bb/data_smart.py", line 111, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(18, 26), match='${SRCPV}'>):
                     else:
        >                var = self.d.getVarFlag(key, "_content", True)
                     self.references.add(key)
      File "/home/ubuntu/emulator/openembedded-core/bitbake/lib/bb/data_smart.py", line 737, in DataSmart.getVarFlag(var='SRCPV', flag='_content', expand=True, noweakdefault=False, parsing=False):
                         cachename = var + "[" + flag + "]"
        >            value = self.expand(value, cachename)
         
      File "/home/ubuntu/emulator/openembedded-core/bitbake/lib/bb/data_smart.py", line 410, in DataSmart.expand(s='${@bb.fetch2.get_srcrev(d)}', varname='SRCPV'):
             def expand(self, s, varname = None):
        >        return self.expandWithRefs(s, varname).value
         
      File "/home/ubuntu/emulator/openembedded-core/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s='${@bb.fetch2.get_srcrev(d)}', varname='SRCPV'):
                     except Exception as exc:
        >                raise ExpansionError(varname, s, exc) from exc
         
    bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1600"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/ubuntu/emulator/openembedded-core/scripts:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/x86_64-linux/usr/bin/i586-rdk-linux:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/qemux86mc-morty/usr/bin/crossscripts:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/x86_64-linux/usr/sbin:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/x86_64-linux/usr/bin:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/x86_64-linux/sbin:/home/ubuntu/emulator/build-qemux86mc-morty/tmp/sysroots/x86_64-linux/bin:/home/ubuntu/emulator/openembedded-core/scripts:/home/ubuntu/emulator/openembedded-core/bitbake/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/ubuntu"; git -c core.fsyncobjectfiles=0 ls-remote https://code.rdkcentral.com/r/components/generic/closedcaption  failed with exit code 128, output:
    fatal: remote error: access at least one ref not permitted


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

  7. I keep getting this error, is there a problme with repo ..?


    root@N-20N3PF255NK1:~/source_code# repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b master
    Username for 'https://code.rdkcentral.com': xxxxxxxxx
    Password for 'https://xxxxxxxxx@code.rdkcentral.com':
    fatal: remote error: access at least one ref not permitted
    manifests: sleeping 4.0 seconds before retrying
    Username for 'https://code.rdkcentral.com'

    1. Try with the last Quarterly release or RDK-next build

      Quarterly release tag (Dunfell)
      repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb.xml -b rdkb-2022q1-dunfell

      Latest tip of the trunk
      repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb.xml -b rdk-next

      1. HI James,

        I tried the above cmd, and i got following error:

        damon@ubuntu:~/RDK_SOURCE$ repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb.xml -b rdkb-2022q1-dunfell
        Downloading Repo source from https://gerrit.googlesource.com/git-repo
        fatal: manifest 'rdkb.xml' not available
        fatal: manifest rdkb.xml not found

        1. Hi Damon ,

          Could you please try with below command

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

          Regards,
          Priyankaa KVB

          1. HI Priyankaa K V B 

            it still failed:

            damon@ubuntu:~/RdkSource$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b rdkb-2022q1-dunfell

            manifests:
            fatal: remote error: manifests unavailable
            manifests: sleeping 4.0 seconds before retrying

            manifests:
            fatal: remote error: manifests unavailable

            fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests


            further more , how to know which branch dose the repository has  and the manifestname?


            Thanks!

            Damon

          2. HI Priyankaa K V B 

            I have  just checked this page :RDK FAQ


            My account cant browse this page https://code.rdkcentral.com/r/admin/repos/components/generic/mediaframework .

            the page shown following message:

            An error occurred

            You might have not enough privileges.

            Error 404: Not found: components/generic/mediaframework

            Endpoint: /projects/*


            can yo help me to check?

            thanks.

            Damon

            1. Hi Damon ,

              Could you please send mail to support@rdkcentral.com or create an INFRA ticket to check access issue

              Regards,
              Priyankaa KVB

              1. HI Priyankaa K V B 

                Thank you.  I have send a mail to the support team.

                BRs

                damon 


  8. HI Priyankaa K V B 

    How to compile the westeros for Ubuntu version?

    I have compiled the Wayland and westen on my Ubuntu, and the sample case run ok.

    But after I cloned the westeros for git: https://code.rdkcentral.com/r/components/opensource/westeros

    I didnt find any guide doc to build on Ubuntu, can you help me to point out this?

    thanks!

    Damon


    1. Hi Deepthi Suseelan ,

      Could you please provide your inputs for the above query 

      Regards,
      Priyankaa KVB

  9. Hi I am not able to do the repo init

    repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b rdkb-2022q1-dunfell
    repo: reusing existing repo client checkout in /home/diptendu/rkdb
    Username for 'https://code.rdkcentral.com': souvik
    Password for 'https://souvik@code.rdkcentral.com': 

    manifests:
    fatal: remote error: manifests unavailable
    manifests: sleeping 4.0 seconds before retrying


    I cannot go past the second step of downloading source code


    can anyone specify what I am doing wrong.


    souvik

  10. If the Free HDD Space is enough for your VM? I also meet the repo init issue, the rootcause is the VM HDD space is limited.  

    You can also check if your ssh key is added in https://code.rdkcentral.com.

    Regards

    Chace

  11. Hi I'm facing issue in bitbake rdk-generic-broadband-image compiler issue getting below error

    ERROR: ExpansionError during parsing /home/build/meta-cmf/recipes-core/dbus/gdbus-client/gdbus-client_git.bb         | ETA:  0:07:01
    Traceback (most recent call last):
      File "Var <do_compile[file-checksums]>", line 1, in <module>
      File "/home/primehome/build/openembedded-core/meta/classes/externalsrc.bbclass", line 221, in srctree_hash_files(d=<bb.data_smart.DataSmart object at 0x7faf24c63470>, 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.6/subprocess.py", line 356, in check_output(timeout=None, *popenargs=(['git', 'submodule--helper', 'list'],), **kwargs={'cwd': '/home/primehome/build/meta-cmf/../components/opensource/gdbus-client', 'env': {'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'USER': 'primehome', 'PWD': '/home/primehome/build/build-raspberrypi-rdk-mc', 'HOME': '/home/primehome', 'SSH_AGENT_PID': '1440', 'BBPATH': '/home/primehome/build/build-raspberrypi-rdk-mc', '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', 'SHELL': '/bin/bash', 'LOGNAME': 'primehome', 'PATH': '/home/primehome/build/openembedded-core/scripts:/home/primehome/build/openembedded-core/bitbake/bin:/home/primehome/bin:/home/primehome/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'LC_ALL': 'en_US.UTF-8', 'GIT_INDEX_FILE': '/tmp/oe-devtool-index9viqzqxb'}}):
             return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
        >               **kwargs).stdout
         
      File "/usr/lib/python3.6/subprocess.py", line 438, in run(input=None, timeout=None, check=True, *popenargs=(['git', 'submodule--helper', 'list'],), **kwargs={'stdout': -1, 'cwd': '/home/primehome/build/meta-cmf/../components/opensource/gdbus-client', 'env': {'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'USER': 'primehome', 'PWD': '/home/primehome/build/build-raspberrypi-rdk-mc', 'HOME': '/home/primehome', 'SSH_AGENT_PID': '1440', 'BBPATH': '/home/primehome/build/build-raspberrypi-rdk-mc', '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', 'SHELL': '/bin/bash', 'LOGNAME': 'primehome', 'PATH': '/home/primehome/build/openembedded-core/scripts:/home/primehome/build/openembedded-core/bitbake/bin:/home/primehome/bin:/home/primehome/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'LC_ALL': 'en_US.UTF-8', 'GIT_INDEX_FILE': '/tmp/oe-devtool-index9viqzqxb'}}):
                     raise CalledProcessError(retcode, process.args,
        >                                     output=stdout, stderr=stderr)
             return CompletedProcess(process.args, retcode, stdout, 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.


    can you please give solution for this issue

  12. Always get the error: I already active the account. it there have a better way to use this authentication? why just upload the SSH public key

    repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b morty
    repo: reusing existing repo client checkout in /home/dutsai/Workspace_clo/rdkb-demo
    Username for 'https://code.rdkcentral.com': dutsai0421
    Password for 'https://dutsai0421@code.rdkcentral.com':

    manifests:
    remote: Unauthorized
    fatal: Authentication failed for 'https://code.rdkcentral.com/r/manifests/'
    manifests: sleeping 4.0 seconds before retrying
    Username for 'https://code.rdkcentral.com': dutsai0422@gmail.com
    Password for 'https://dutsai0422@gmail.com@code.rdkcentral.com':

    manifests:
    remote: Unauthorized
    fatal: Authentication failed for 'https://code.rdkcentral.com/r/manifests/'
    fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests

  13. Hi, I have followed yocto project steps and created RDK brandband image dunfell 2.0 also flashed the image on Raspberry PI device but when connecting device to ACS facing issue could see only one way communication from device to ACS but connection from ACS to device getting timeout also tried telnet port 7547 from ACS getting timeout message. 


    TCP Dump we could see proper packet information when device sending PI but when packets from ACS to Device we could not see ack also some highlighted message with TCP Retransmission TCP Port numbers reused.

    Error:

    Caused by: java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method) [rt.jar:1.8.0_72]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) [rt.jar:1.8.0_72]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) [rt.jar:1.8.0_72]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) [rt.jar:1.8.0_72]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) [rt.jar:1.8.0_72]
        at java.net.Socket.connect(Socket.java:589) [rt.jar:1.8.0_72]
        at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)


    can anyone specify what is the issue here?

    1. Hi Z-Gopi Govindarajan ,

      Could you please share below details 

      • On which platform you are verifying ? RPi 3 or RPi4 32/64 bit ?
      • cat /version.txt
      • Is ACS up and running ? 
      • O/p of systemctl status CcspTr069PaSsp.service
      • Did you configure below dmcli ?
        dmcli eRT setv Device.ManagementServer.EnableCWMP bool false
        dmcli eRT setv Device.ManagementServer.URL string "<URL/Ip of ACS Server"
        dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.TR69CertLocation string /etc/cacert.pem
        dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AllowOpenPorts.Enable bool true
        dmcli eRT setv Device.ManagementServer.EnableCWMP bool true
      • ps | grep -ir "Ccsp"
      • Tr69 logs under /rdklogs/logs

      Refer TR-069 Support for RDKB RPI Reference Platform

      Regards,
      Priyankaa KVB

      1. Hi Priyankaa,

        PFB the details as you requested and kindly help to resolve the issue.
        I'm unable to manage the device from ACS connection getting timed out also tried with telnet from ACS to device port 7547 after few mins getting timed out message. port 7547 is listening on device but connection gets failed.

        • RPi 4 64bit

        *root@RaspberryPi-Gateway:~# cat /version.txt
        imagename:rdkb-generic-broadband-image_rdk-next_20230607103057
        BRANCH=rdk-next
        YOCTO_VERSION=dunfell
        VERSION=4.06.07.23
        SPIN=0
        BUILD_TIME="2023-06-07 10:30:57"
        Generated on Wed Jun 07 10:30:57 UTC 2023

        • Yes ACS up & running
        • O/p of systemctl status:
          root@RaspberryPi-Gateway:~# systemctl status CcspTr069PaSsp.service
          ● CcspTr069PaSsp.service - CcspTr069PaSsp service
          Loaded: loaded (/lib/systemd/system/CcspTr069PaSsp.service; enabled; vendor preset: enabled)
          Active: active (running) since Wed 2023-06-07 11:03:58 UTC; 1min 40s ago
          Process: 15889 ExecStartPre=/bin/sh -c val=`syscfg get EnableTR69Binary`; if [ "$val" == "false" ]; then `systemctl stop CcspTr069PaSsp`; fi (code=exited, status=0/SUCCESS)
          Process: 15892 ExecStart=/usr/bin/CcspTr069PaSsp -subsys $Subsys (code=exited, status=0/SUCCESS)
          Main PID: 15893 (CcspTr069PaSsp)
          Tasks: 16 (limit: 4915)
          Memory: 4.7M
          CGroup: /system.slice/CcspTr069PaSsp.service
          └─15893 /usr/bin/CcspTr069PaSsp -subsys eRT.

        Jun 07 11:03:58 RaspberryPi-Gateway systemd[1]: Starting CcspTr069PaSsp service...
        Jun 07 11:03:58 RaspberryPi-Gateway CcspTr069PaSsp[15892]: rdk_dyn_log_initg_dl_socket = 4 __progname = CcspTr069PaSsp
        Jun 07 11:03:58 RaspberryPi-Gateway systemd[1]: Started CcspTr069PaSsp service.
        Jun 07 11:03:58 RaspberryPi-Gateway CcspTr069PaSsp[15895]: Conf file /etc/debug.ini open success
        Jun 07 11:03:58 RaspberryPi-Gateway CcspTr069PaSsp[15895]: rdk_logger_init /etc/debug.ini Already Stack Level Logging processed... not processing again.

        • Yes configured dmcli
        • ps | grep -ir "Ccsp" O/P:
          root@RaspberryPi-Gateway:~# ps | grep -ir "Ccsp"
          269 root 0:12 /usr/sbin/snmpd -f -C -c /usr/ccsp/snmp/snmpd.conf -M /usr/share/snmp/mibs -Le
          409 non-root 0:00 /usr/bin/CcspCrSsp -subsys eRT.
          1725 root 0:27 /usr/bin/CcspPandMSsp -subsys eRT.
          2011 root 0:05 /usr/bin/CcspTandDSsp -subsys eRT.
          2021 non-root 0:03 /usr/bin/CcspEthAgent -subsys eRT.
          2057 root 0:01 /usr/bin/CcspAdvSecuritySsp -subsys eRT.
          2071 root 0:01 /usr/bin/CcspXdnsSsp -subsys eRT.
          2086 non-root 0:19 /usr/bin/CcspLMLite -subsys eRT.
          2195 root 0:00
          Unknown macro: {self_heal_conne}
          /bin/sh /usr/ccsp/tad/self_heal_connectivity_test.sh
          2197 root 0:02
          Unknown macro: {resource_monito}
          /bin/sh /usr/ccsp/tad/resource_monitor.sh
          2207 root 0:27 /usr/bin/CcspWifiSsp -subsys eRT. 2
          15893 non-root 0:01 /usr/bin/CcspTr069PaSsp -subsys eRT.
          20668 root 0:00 grep -ir Ccsp

        Tr69 log:
        230607-11:48:02.422760 [mod=TR69, lvl=WARN] [tid=15921] CcspManagementServer_GetURL # ManagementServerURLID_PSM: http://192.168.0.102:8080/dps/TR069
        230607-11:48:02.425457 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:48:02.425635 [mod=TR69, lvl=WARN] [tid=15921] Manufacturer: Raspberry Pi Foundation , OUI : FFFFFF, ProductClass: XB3, SerialNumber: 10000000fc619a39, ProvisionCode: 10000000fc619a39
        230607-11:48:02.481862 [mod=TR69, lvl=INFO] [tid=15201] ACS Request now at: 1686138482
        230607-11:48:02.812923 [mod=TR69, lvl=INFO] [tid=15201] ACS Request has completed with status code 0, at 1686138482
        230607-11:48:02.846445 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:48:02.869314 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadValueChanged - ValueChanged <eRT.com.cisco.spvtg.ccsp.tr069pa.Undelivered_VC.>
        230607-11:48:02.873659 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadeValueChanged - number of instances <0>
        230607-11:48:03.013253 [mod=TR69, lvl=INFO] [tid=15201] ACS Request now at: 1686138483
        230607-11:48:03.086422 [mod=TR69, lvl=INFO] [tid=15201] ACS Request has completed with status code 0, at 1686138483
        230607-11:48:03.117872 [mod=TR69, lvl=WARN] [tid=15916] TR069 CcspManagementServer_StoreMGMTServerPasswordValuesintoDB 2559 : ManagementServerConnectionRequestPasswordID Changed
        230607-11:48:03.118253 [mod=TR69, lvl=WARN] [tid=15916] TR069 CcspManagementServer_StoreMGMTServerPasswordValuesintoDB 2562 : /nvram/.keys/MgmtCRPwdID file is not generated
        230607-11:48:03.118540 [mod=TR69, lvl=WARN] [tid=15916] CcspManagementServer_GetURL # ManagementServerURLID_PSM: http://192.168.0.102:8080/dps/TR069
        230607-11:48:03.122030 [mod=TR69, lvl=INFO] [tid=15201] ACS Request now at: 1686138483
        230607-11:48:03.235164 [mod=TR69, lvl=INFO] [tid=15201] ACS Request has completed with status code 0, at 1686138483
        230607-11:48:03.240439 [mod=TR69, lvl=INFO] [tid=15201] ACS Request now at: 1686138483
        230607-11:48:03.420619 [mod=TR69, lvl=INFO] [tid=15201] ACS Request has completed with status code 0, at 1686138483
        230607-11:49:47.190886 [mod=TR69, lvl=WARN] [tid=15921] CcspManagementServer_GetURL # ManagementServerURLID_PSM: http://192.168.0.102:8080/dps/TR069
        230607-11:49:47.193383 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:49:47.193540 [mod=TR69, lvl=WARN] [tid=15921] Manufacturer: Raspberry Pi Foundation , OUI : FFFFFF, ProductClass: XB3, SerialNumber: 10000000fc619a39, ProvisionCode: 10000000fc619a39
        230607-11:49:47.246082 [mod=TR69, lvl=INFO] [tid=17389] ACS Request now at: 1686138587
        230607-11:49:47.420666 [mod=TR69, lvl=INFO] [tid=17389] ACS Request has completed with status code 0, at 1686138587
        230607-11:49:47.451460 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:49:47.469629 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadValueChanged - ValueChanged <eRT.com.cisco.spvtg.ccsp.tr069pa.Undelivered_VC.>
        230607-11:49:47.473638 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadeValueChanged - number of instances <0>
        230607-11:49:47.621240 [mod=TR69, lvl=INFO] [tid=17389] ACS Request now at: 1686138587
        230607-11:49:47.778253 [mod=TR69, lvl=INFO] [tid=17389] ACS Request has completed with status code 0, at 1686138587
        230607-11:51:47.277447 [mod=TR69, lvl=WARN] [tid=15921] CcspManagementServer_GetURL # ManagementServerURLID_PSM: http://192.168.0.102:8080/dps/TR069
        230607-11:51:47.279981 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:51:47.280140 [mod=TR69, lvl=WARN] [tid=15921] Manufacturer: Raspberry Pi Foundation , OUI : FFFFFF, ProductClass: XB3, SerialNumber: 10000000fc619a39, ProvisionCode: 10000000fc619a39
        230607-11:51:47.331384 [mod=TR69, lvl=INFO] [tid=20048] ACS Request now at: 1686138707
        230607-11:51:47.480884 [mod=TR69, lvl=INFO] [tid=20048] ACS Request has completed with status code 0, at 1686138707
        230607-11:51:47.512769 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:51:47.530462 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadValueChanged - ValueChanged <eRT.com.cisco.spvtg.ccsp.tr069pa.Undelivered_VC.>
        230607-11:51:47.534362 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadeValueChanged - number of instances <0>
        230607-11:51:47.681244 [mod=TR69, lvl=INFO] [tid=20048] ACS Request now at: 1686138707
        230607-11:51:47.827572 [mod=TR69, lvl=INFO] [tid=20048] ACS Request has completed with status code 0, at 1686138707
        230607-11:53:47.361805 [mod=TR69, lvl=WARN] [tid=15921] CcspManagementServer_GetURL # ManagementServerURLID_PSM: http://192.168.0.102:8080/dps/TR069
        230607-11:53:47.364297 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:53:47.364465 [mod=TR69, lvl=WARN] [tid=15921] Manufacturer: Raspberry Pi Foundation , OUI : FFFFFF, ProductClass: XB3, SerialNumber: 10000000fc619a39, ProvisionCode: 10000000fc619a39
        230607-11:53:47.416434 [mod=TR69, lvl=INFO] [tid=22553] ACS Request now at: 1686138827
        230607-11:53:47.601828 [mod=TR69, lvl=INFO] [tid=22553] ACS Request has completed with status code 0, at 1686138827
        230607-11:53:47.632363 [mod=TR69, lvl=WARN] [tid=15921] bInitialContact switched to <TRUE> as MgmtCRPwdID was missing
        230607-11:53:47.651870 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadValueChanged - ValueChanged <eRT.com.cisco.spvtg.ccsp.tr069pa.Undelivered_VC.>
        230607-11:53:47.655938 [mod=TR69, lvl=INFO] [tid=15921] CcspCwmppoLoadeValueChanged - number of instances <0>
        230607-11:53:47.802235 [mod=TR69, lvl=INFO] [tid=22553] ACS Request now at: 1686138827
        230607-11:53:47.942151 [mod=TR69, lvl=INFO] [tid=22553] ACS Request has completed with status code 0, at 1686138827

        Thanks in advance.

        Regards,
        Gopi.G

        1. Hi Z-Gopi Govindarajan ,

          Created RDKBSUP-1082 - Getting issue details... STATUS to track this issue. 

          Please let me know if you are facing any difficulty in accessing this ticket.

          Regards,
          Priyankaa KVB

  14. Hi Priyankaa K V B i have built the rdk-b image (2022q1_dunfell), flashed it on the sd card using dd command. But when i am booting my raspberry pi 3B+, the monitor isn't displaying anything.


    1. Hi Z-Sahitya Modi ,

      Could you please confirm the below details

      • Flashing is successful ? Did you verify whether the complete image is flashed on the SD card ? 
      • Sharing the flashing steps 

        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
      • Is the network connection stable ?

      FYI : Recently rpi3 got deprecated . With latest release , please go with rpi4.

      Regards,
      Priyankaa KVB

      1. Hi Priyankaa K V B 

        I flashed it through Balena Etcher, it flashed successfully and i verified it also. The network connection is also stable.

        So you are telling me that Raspberry Pi 3B+ is deprecated and we have to use Raspberry Pi 4 device??

        Can you please suggest me an image version that will be compatible with RPI 3B+ ??

  15. Hi Team, I need build steps for RDK-V and flash into rpi