RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
A tutorial to set up your environment and Download Source Code
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 |
|
|
The instructions provided below are meant to be executed via the command line on an Ubuntu machine
# 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.
# 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
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”
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
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.
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> |
---|
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
$ 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
54 Comments
Z-Charlie O'Brien
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?
Z-Moorthy Baskar
there is no tool 'gettext' required. The essential packages installation command is reviewed and modified properly
Ajith James
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
Vic Lin
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?
Z-Nicki
Do you register on https://code.rdkcentral.com/r/login/ ? If yes, please use the account and pwd to get the code.
Vic Lin
Hi Nicki:
I type full email address as user name, so it got failed. It's OK now, thanks for help.
Suttipong Sukijthamapan
Same to me "Unable to sync manifest manifest.xml"
(base) ssukijth@sutti-linux:~/dev/yocto/poky$ repo init -u https://ssukijth@code.rdkcentral.com/r/manifests -m manifest.xml -b rdk-20240922
repo: reusing existing repo client checkout in /home/ssukijth/dev/yocto/poky
Password for 'https://ssukijth@code.rdkcentral.com':
manifests:
fatal: unable to access 'https://code.rdkcentral.com/r/manifests/': The requested URL returned error: 403
manifests: sleeping 4.0 seconds before retrying
Password for 'https://ssukijth@code.rdkcentral.com':
fatal: cannot obtain manifest https://ssukijth@code.rdkcentral.com/r/manifests
================================================================================
Repo command failed: UpdateManifestError
Unable to sync manifest manifest.xml
(base) ssukijth@sutti-linux:~/dev/yocto/poky$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb
repo: reusing existing repo client checkout in /home/ssukijth/dev/yocto/poky
Username for 'https://code.rdkcentral.com': ssukijth
Password for 'https://ssukijth@code.rdkcentral.com':
manifests:
fatal: unable to access 'https://code.rdkcentral.com/r/manifests/': The requested URL returned error: 403
manifests: sleeping 4.0 seconds before retrying
Username for 'https://code.rdkcentral.com': ssukijth
Password for 'https://ssukijth@code.rdkcentral.com':
fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests
================================================================================
Repo command failed: UpdateManifestError
Unable to sync manifest rdkb.xml
(base) ssukijth@sutti-linux:~/dev/yocto/poky$
Is the manifest is available on that directory? or else. Please help. I am able to access on this https://code.rdkcentral.com/r/admin/repos,50 without any issue.
Maksimas Lajauskas
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".
sipra samantray
The manifest path didn't change - https://code.rdkcentral.com/r/plugins/gitiles/manifests/+/refs/heads/rdk-next
Suttipong Sukijthamapan
Error "
Unable to sync manifest rdkb.xml
"
look like manifests files had moved somewhere.
(base) ssukijth@sutti-linux:~/dev/yocto/poky$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb
repo: reusing existing repo client checkout in /home/ssukijth/dev/yocto/poky
Username for 'https://code.rdkcentral.com': ssukijth
Password for 'https://ssukijth@code.rdkcentral.com':
manifests:
fatal: unable to access 'https://code.rdkcentral.com/r/manifests/': The requested URL returned error: 403
manifests: sleeping 4.0 seconds before retrying
Username for 'https://code.rdkcentral.com': ssukijth
Password for 'https://ssukijth@code.rdkcentral.com':
fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests
================================================================================
Repo command failed: UpdateManifestError
Unable to sync manifest rdkb.xml
Z-rajagopal
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.
Z-Floz
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.
Z-rajagopal
Yes I have create the '.netrc' file in home directory and set as per the my user credential configuration on that file also.
Z-Girish
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.
Radhakrishna Anne
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'
Ajith James
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
Damon
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
Priyankaa K V B
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
Damon
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
Damon
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
Priyankaa K V B
Hi Damon ,
Could you please send mail to support@rdkcentral.com or create an INFRA ticket to check access issue
Regards,
Priyankaa KVB
Damon
HI Priyankaa K V B
Thank you. I have send a mail to the support team.
BRs
damon
Damon
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
Priyankaa K V B
Hi Deepthi Suseelan ,
Could you please provide your inputs for the above query
Regards,
Priyankaa KVB
souvik sarkar
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
chace.cai
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
Z-Gopi Govindarajan
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
dutsai0421
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
Z-Gopi Govindarajan
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?
Priyankaa K V B
Hi Z-Gopi Govindarajan ,
Could you please share below details
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
Refer TR-069 Support for RDKB RPI Reference Platform
Regards,
Priyankaa KVB
Z-Gopi Govindarajan
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.
*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
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.
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
2197 root 0:02
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
Priyankaa K V B
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
Z-Sahitya Modi
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.
Priyankaa K V B
Hi Z-Sahitya Modi ,
Could you please confirm the below details
Sharing the flashing steps
FYI : Recently rpi3 got deprecated . With latest release , please go with rpi4.
Regards,
Priyankaa KVB
Z-Sahitya Modi
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+ ??
Anand N
Hi Team, I need build steps for RDK-V and flash into rpi
Wang Wei
Hi team,
Who could kindly help me out? thanks in advance.
I built the 2023q2_dunfell with following commands :(hope it's correct)
$ repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb_extsrc.xml -b rdkb-2023q2-dunfell
$ repo sync -j8 --no-clone-bundle
$ MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment
$ bitbake rdk-generic-broadband-image
===== ERRORS occured ===
always error during zilker_sdk do configuration.
Processing /works/abc/components/opensource/zilker-sdk/source/libs/cslt/src/sheens/js/timeFunctions.js -> /works/abc/components/opensource/zilker-sdk/source/libs/cslt/src/sheens/js/timeFunctions.js.h
| -- Adding unit test testxhCslt
| -- Adding xhBackupRestoreService
| -- Adding xhCommService
| -- Adding unit test testMessageQueue
| -- Adding xhDeviceService
| -- Adding unit test testZigbeeSubsystem
| -- Adding unit test testJsonDatabase
| -- Adding xhAutomationService
| -- Adding unit test testAutomationService
| -- Adding xhPropsService
| -- Adding unit test testPropertyTypesDefinition
| -- Adding xhWatchdogService
| fatal: not a git repository (or any of the parent directories): .git
| -- Configuring done
| CMake Error at buildTools/cmake/modules/AddZilkerAPI.cmake:52 (add_library):
| No SOURCES given to target: xhBackupRestoreServiceAPI
| Call Stack (most recent call first):
| source/services/backupRestore/api/c/CMakeLists.txt:26 (add_zilker_api)
|
these are added in the components/opensource/zilker-sdk/tools/ipcGenerator/ipcGenerator.sh
set -e
set -x
export PATH=$PATH:/usr/bin
echo "1111PATH= $PATH"
export GRADLE_HOME=/works/abc/build-raspberrypi-rdk-broadband/tmp/work/x86_64-linux/gradle-native/4.8.1-r0
export PATH=${GRADLE_HOME}/gradle-4.8.1/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
Suttipong Sukijthamapan
The rdkb_extsrc.xml is not available on my setting. HOw to fix this issue? Thanks
(base) ssukijth@sutti-linux:~/source_code$ repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb_extsrc.xml -b rdkb-2023q2-dunfell
repo: reusing existing repo client checkout in /home/ssukijth/source_code
fatal: manifest 'rdkb_extsrc.xml' not available
fatal: manifest rdkb_extsrc.xml not found
================================================================================
Repo command failed: UpdateManifestError
Unable to sync manifest rdkb_extsrc.xml
Sudhakar Pallela
Hi Suttipong Sukijthamapan
You can change module name as "rdkb-extsrc.xml". Try with below command
================================================================================
repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2023q2-dunfell
================================================================================
Suttipong Sukijthamapan
Thanks, there is not error, this time.
(base) ssukijth@sutti-linux:~/source_code$ repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2023q2-dunfell
repo: reusing existing repo client checkout in /home/ssukijth/source_code
repo has been initialized in /home/ssukijth/source_code
(base) ssukijth@sutti-linux:~/source_code$ ls -ltra
total 24
drwxrwxr-x 3 ssukijth ssukijth 4096 Sep 22 22:04 .
drwxr-x--- 64 ssukijth ssukijth 16384 Sep 23 14:23 ..
drwxrwxr-x 5 ssukijth ssukijth 4096 Sep 23 14:23 .repo
Deepika Ganapathi Bhat
Hi Wang Wei
bitbake -fc compile zilker-sdk
Try with these commands and verify
Wang Wei
Hi Deepika Ganapathi Bhat
1.Ubuntu version is 18.04, which works for 2022q2_dunfell.
2. bitbake -fc clean zilker-sdk ==> no errors,
bitbake -fc compile zilker-sdk ==> same errors as below.
These commands did not work. When I run the command "wget https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.pom ", the pom file can be downloaded.
What might cause script failed to download?
Another question, download failure and " No SOURCES given to target: xhBackupRestoreServiceAPI", which is the root cause?
==== ==== errors same ==== ====
FAILURE: Build failed with an exception.
|
| * Where:
| Build file '/works/abc/components/opensource/zilker-sdk/tools/ipcGenerator/ipcGenerator.gradle' line: 108
|
| * What went wrong:
| Could not determine the dependencies of task ':ipcGenerator:jar'.
| > Could not resolve all files for configuration ':ipcGenerator:compile'.
| > Could not resolve org.slf4j:slf4j-api:1.6.4.
| Required by:
| project :ipcGenerator
| > Could not resolve org.slf4j:slf4j-api:1.6.4.
| > Could not get resource 'https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.pom'.
| > Could not GET 'https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.pom'.
| > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.108.215, repo.maven.apache.org/2a04:4e42:1a:0:0:0:0:215] failed: Network is unreachable (connect failed)
and
-- Adding xhWatchdogService
| fatal: not a git repository (or any of the parent directories): .git
| -- Configuring done
| CMake Error at buildTools/cmake/modules/AddZilkerAPI.cmake:52 (add_library):
| No SOURCES given to target: xhBackupRestoreServiceAPI
| Call Stack (most recent call first):
| source/services/backupRestore/api/c/CMakeLists.txt:26 (add_zilker_api)
Deepika Ganapathi Bhat
Hi Wang Wei
Wang Wei
Hi Deepika Ganapathi Bhat ,
1.I have no access to upload build logs file here. Any other place to upload the log file? I can use curl comamnd and have a try.
2. Our target release verision is 2023q2, and we have build sucess 2022q2 dunfell on this docker Ubantu system. Now we plan to upgrade project from 2022q2 to 2023q2.
3. Do we need to upgrade some specific requirements on host system for 2023q2? (suppose building enviroment is same with 2022q2 dunfell)
Best regards //
Deepika Ganapathi Bhat
Hi Wang Wei
Could you bring below changes and verify the build.
https://code.rdkcentral.com/r/q/CMFSUPPORT-1408
If you are observing pythonnative error, please check with these changes https://code.rdkcentral.com/r/c/rdk/components/generic/rdk-oe/meta-cmf-broadband/+/84784
Wang Wei
Well done Deepika Ganapathi Bhat
After zilker_sdk being removed with https://code.rdkcentral.com/r/q/CMFSUPPORT-1408, rdk-b project builds success.
Appreciate your friendly and timely assistance.
ahmed fersi
HI Community,
after typing the repo cmd line this type of error displayed :
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b rdk-next
File "/home/ahmed/bin/repo", line 88
reexec(f"python{min_major}.{min_minor + inc}")
so anyone can help please !!
Suttipong Sukijthamapan
use this
repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2023q2-dunfell
Praveen V P
Hi Ahmed,
Seems like there’s an issue with the Python configuration in your build environment. Could you please ensure that you’re using Python 2 and then give the repo init another shot?
Thanks,
Praveen
Youssef Kafa
fatal: could not read Username for 'https://gerrit.teamccp.com': No such device or address
when running bitbake rdk-generic-broadband-dev-image
Any suggestions please?
Praveen V P
Hi Youssef Kafa,
Can you please follow below link for the git configurations.
Try Out RDK - RDK - RDK Central Wiki
Thanks,
Praveen
kuldeep chouhan
Please use the following repo init command
$ repo init -u https://user@code.rdkcentral.com/r/manifests -m manifest.xml -b <branch_name>,
getting error not able to setup RDK V .
Please anyone have resolve so help me . :)
Suttipong Sukijthamapan
use this
repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2023q2-dunfell
Suttipong Sukijthamapan
I saw error with I build. Please help.
(base) ssukijth@sutti-linux:~/source_code/build$ bitbake meta-rdk-bsp-emulator
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################| Time: 0:01:09
Parsing of 912 .bb files complete (0 cached, 912 parsed). 1845 targets, 50 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'meta-rdk-bsp-emulator'