RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Author | RDK-M |
Approver | |
Version | 1.0 |
State | Release version |
Date | Sept 14, 2020 |
NOTE: Observing fetch errors in VMs with Ubuntu14.x. Thus, suggesting to use VMs with Ubuntu16.x or higher.
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 rdk-next repo sync -j4 --no-clone-bundle MACHINE=qemux86broadband source meta-cmf/setup-environment bitbake rdk-generic-broadband-morty-image
On Successful build, the ROOTFS (in vmdk format) would be available at the following reference location.
<workspace dir>/build-qemux86broadband-morty/tmp/deploy/images/qemux86broadband-morty/rdk-generic-broadband-image-qemux86broadband-morty-<timestamp>.vmdk
41 Comments
Unknown User (javr.pe)
Please note openjdk-7-jre package is not available for Ubuntu-16.04 anymore. Presumably openjdk-8-jre should be used instead.
While installing the package following error appears:
"Package openjdk-7-jre 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"
Unknown User (mark.welch)
If you don't mind the security issues (since Java 7 is no longer supported), you can install openjdk-7-jre on Ubuntu 16 by following the instructions in https://askubuntu.com/questions/761127/how-do-i-install-openjdk-7-on-ubuntu-16-04-or-higher .
Unknown User (jpcleona)
Am unable to download the source, getting following error.
root@vtguser:/home/RDKB-Rpi# repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b morty
Username for 'https://code.rdkcentral.com': jpcleona
Password for 'https://jpcleona@code.rdkcentral.com':
fatal: remote error: access not permitted
Narayanaswamy Ramaiyer
Unknown User (ymaharana) Could you please check the access for the above user?
Unknown User (ymaharana)
Unknown User (jpcleona) Please not that you are using a personal email address. While most of the RDK components are available free, a handful of components are distributed under the free RDK License Agreement.
To obtain the RDK License Agreement, please fill in the form on the right side of this page and click submit. Upon full execution of the agreement, you will be provided access to the RDK source code components. Please contact RDK Management at info@rdkcentral.com in case you need more information.
Unknown User (jp.cleona)
Am getting following error while trying to sync emulator sources for RDK-B with new account. Please take a look and suggest the solution.
Fetching project components/generic/rdk-oe/meta-rdk-broadband
Username for 'https://code.rdkcentral.com':
remote: Unauthorized
fatal: Authentication failed for 'https://code.rdkcentral.com/r/components/asp/rdk-oe/meta-cmf-bsp-emulator/'
error: Cannot fetch components/asp/rdk-oe/meta-cmf-bsp-emulator from https://code.rdkcentral.com/r/components/asp/rdk-oe/meta-cmf-bsp-emulator
Fetching projects: 40% (38/93)
Fetching project devices/intel-x86-pc/rdkemulator/tdk
Username for 'https://code.rdkcentral.com':
remote: Unauthorized
Unknown User (digvijay.chauhan)
Hi,
I am not able to download rdkb-2019q3 and getting below errors.
root@chauhan-pvf:/home/chauhan/emulator# repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdk-2019q3
fatal: remote error: access at least one ref not permitted
manifests:
I Tried to clone Utopia which I am able to clone properly.
Please help me to fix this issue.
My user name is digvijay.chauhan
Thanks.
Narayanaswamy Ramaiyer
Hi Unknown User (digvijay.chauhan)
Did you tried logging in once to https://code.rdkcentral.com once before trying to checkout the code?
Thanks
Narayanaswamy Ramaiyer
Hi Unknown User (digvijay.chauhan)
Please try with rdkb-2019q3 instead of rdk-2019q3
Unknown User (digvijay.chauhan)
Hi Unknown User (narayanaswamy)
I tried both rdkb-2019q3 and rdkb-20180527 but got the same error, Is it related to some access?
root@chauhan-pvf:/home/chauhan/emulator# repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb-2019q3
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
... A new version of repo (2.5) is available.
... You should upgrade soon:
cp /home/chauhan/emulator/.repo/repo/repo /usr/bin/repo
fatal: remote error: access at least one ref not permitted
manifests:
fatal: remote error: access at least one ref not permitted
fatal: remote error: access at least one ref not permitted
manifests:
fatal: remote error: access at least one ref not permitted
fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests
Unknown User (dtpoirot)
Is there a current set of build instructions? I can build common Yocto just fine.
Is Ubuntu 16.04 LTS really required? Java 7 is not generally available anymore....
I am getting the same string of "fatal: remote error: access at least one ref not permitted" errors.
I can login to https://code.rdkcentral.com/ without any trouble.
Thank you!
Narayanaswamy Ramaiyer
Hello Unknown User (dtpoirot)
RDK-B Emulator build is tested on 12.04 & 14.04 too. If you are looking for getting it working on later versions of Ubuntu LTS, we do have some patches that will help in this regard but require further patch up
For the access issue, if you are able to login to the site without issues and still face the access issue, let us check. Unknown User (ymaharana) could you please help us with checking the access?
Unknown User (dtpoirot)
I am fine with Ubuntu 16.04 LTS.
I get to section 1.2.1 and the `repo init` command fails.
Unknown User (dtpoirot)
`repo sync` is now running...
Checking out projects: 100% (106/106), done.
repo sync has finished successfully.
I selected `meta-rdk-bsp-emulator/conf/machine/qemux86broadband-morty.conf` and it is moving along...
Narayanaswamy Ramaiyer
OK. So the access issue is resolved and proceeding right? Happy to know that
Unknown User (mkrishna)
Hi, we see below error on a newly configured Ubuntu machine. I have cross checked the setup instructions and they are intact. Any idea what could be wrong ? Is this something related to access issue ? Please suggest.
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb-2020q2
fatal: remote error: access at least one ref not permitted
manifests:
fatal: remote error: access at least one ref not permitted
fatal: remote error: access at least one ref not permitted
manifests:
fatal: remote error: access at least one ref not permitted
fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests
Narayanaswamy Ramaiyer
Hello Unknown User (mkrishna)
Have you tried logging in successfully to https://code.rdkcentral.com via browser using your login credentials before attempting the build?
Please share the output of below commands from your build machine, after confirming your credentials are added in ~/.netrc as mentioned in the build documentation ?
git clone "https://code.rdkcentral.com/r/rdkb/components/opensource/ccsp/Utopia"
git clone "https://code.rdkcentral.com/r/manifests"
Unknown User (mkrishna)
~/.netrc has valid credentials.
git clone "https://code.rdkcentral.com/r/manifests" ==> Git clone was sucessful
git clone "https://code.rdkcentral.com/r/rdkb/components/opensource/ccsp/Utopia" ==> Git clone was sucessful
Still
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb-2020q2
fails with same error.
Narayanaswamy Ramaiyer
Hi Unknown User (mkrishna)
this looks like an access issue
Hi Unknown User (ymaharana) could you please check if the access for this user account is all right?
Unknown User (thiago.navarro)
Hi! How can I have credentials to access https://code.rdkcentral.com/? Thank you in advance!
Unknown User (ymaharana)
Hello Thiago,
Please use the same credentials as for wiki. Make sure to login to code.rdkcentral.com with your username (all lowercase) and not email.
Thanks,
Yogo
Unknown User (thiago.navarro)
Thank you! It worked!
Unknown User (caiortp)
Hi,
I already accessed the code.rdkcentral.com, the ~/.netrc is configured but I cannot get the manifest.
repo init -u https://code.rdkcentral.com/r/manifests -b rdkb-extsrc.xml -m rdk-next
fatal: remote error: access at least one ref not permitted
manifests:
None
git clone "https://code.rdkcentral.com/r/manifests"
Cloning into 'manifests'...
fatal: remote error: access at least one ref not permitted
cat ~/.netrc
machine code.rdkcentral.com
login caiortp
password xxxxx
Thank you.
Unknown User (ymaharana)
Hello Unknown User (caiortp) ,
Thank you for reaching out to RDK Support. While most of the RDK components are available free, a handful of components are distributed under the free RDK License Agreement.
To obtain the RDK License Agreement, please fill in the form on the right side of this page and click submit. Upon full execution of the agreement, you will be provided access to the RDK source code components. Please contact RDK Management at info@rdkcentral.com in case you need more information.
Thanks,
RDK Support
Unknown User (caiortp)
Ok, Thank you.
I already have the CLA signed, I'll contact the email.
Unknown User (ho.baek)
I am trying to download RDK by repo sync as below but there is an error ‘access at least one ref not permitted’
Please guide me what is wrong?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$ repo init -u https://code.rdkcentral.com/r/manifests -b rdk-next -m rdkb-extsrc.xml
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Counting objects: 2, done
remote: Finding sources: 100% (54/54)
remote: Total 54 (delta 27), reused 54 (delta 27)
Unpacking objects: 100% (54/54), done.
Downloading manifest from https://code.rdkcentral.com/r/manifests
fatal: remote error: access at least one ref not permitted
manifests: sleeping 4.0 seconds before retrying
fatal: remote error: access at least one ref not permitted
fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$ git clone https://code.rdkcentral.com/r/rdkb/components/opensource/ccsp/Utopia ==> à Success
$ git clone https://code.rdkcentral.com/r/manifests ==> FAILED … fatal: remote error: access at least one ref not permitted
Narayanaswamy Ramaiyer
Hello Unknown User (ho.baek)
Are you having a valid licensee account or registered using your personal account ?
Unknown User (ymaharana) Could you please check access permissions?
Unknown User (ho.baek)
Unknown User (narayanaswamy) I don't have valid license account. So it might be personal account.
Narayanaswamy Ramaiyer
Hello Unknown User (ho.baek)
While most of the RDK components are available free, a handful of components are distributed under the free RDK License Agreement.
To obtain the RDK License Agreement, please fill in the form on the right side of this page and click submit. Upon full execution of the agreement, you will be provided access to the RDK source code components. Please contact RDK Management at info@rdkcentral.com in case you need more information.
Unknown User (ho.baek)
Unknown User (narayanaswamy) Thanks for quick response.
I have submitted RDK License Agreement Form at the morning.
Is there more thing to be required to get a license?
There is no response for License Agreement Form.
Narayanaswamy Ramaiyer
Hi Unknown User (ymaharana) could you please help here?
Tarun Goswami
Hello Unknown User (ymaharana)
After running the command "bitbake rdk-generic-broadband-morty-image" , at the 2352 task, I get following error. Please suggest how to resolve the same. Appreciate your support.
************************************************************
48:42: warning: unused parameter 'tuIns' [-Wunused-parameter]
| CosaDml_GreTunnelIfSetGREInterface(ULONG tuIns, ULONG ins, const char *greif)
| ^~~~~
| ../../../../../../../../../../../../rdkb/components/opensource/ccsp/CcspPandM/custom-pc/comcast/source/TR-181/custom_sbapi/cosa_x_comcast-com_gre_apis.c:1848:55: warning: unused parameter 'ins' [-Wunused-parameter]
| CosaDml_GreTunnelIfSetGREInterface(ULONG tuIns, ULONG ins, const char *greif)
| ^~~
| ../../../../../../../../../../../../rdkb/components/opensource/ccsp/CcspPandM/custom-pc/comcast/source/TR-181/custom_sbapi/cosa_x_comcast-com_gre_apis.c:1848:72: warning: unused parameter 'greif' [-Wunused-parameter]
| CosaDml_GreTunnelIfSetGREInterface(ULONG tuIns, ULONG ins, const char *greif)
| ^~~~~
| At top level:
| ../../../../../../../../../../../../rdkb/components/opensource/ccsp/CcspPandM/custom-pc/comcast/source/TR-181/custom_sbapi/cosa_x_comcast-com_gre_apis.c:121:36: warning: 'ppComponents' defined but not used [-Wunused-variable]
| static componentStruct_t ** ppComponents = NULL;
| ^~~~~~~~~~~~
| Makefile:448: recipe for target 'libCcspPandM_comcast_sbapi_la-cosa_x_comcast-com_gre_apis.lo' failed
| make[6]: *** [libCcspPandM_comcast_sbapi_la-cosa_x_comcast-com_gre_apis.lo] Error 1
| make[6]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999/custom-pc/comcast/source/TR-181/custom_sbapi'
| Makefile:366: recipe for target 'all-recursive' failed
| make[5]: *** [all-recursive] Error 1
| make[5]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999/custom-pc/comcast/source/TR-181'
| Makefile:366: recipe for target 'all-recursive' failed
| make[4]: *** [all-recursive] Error 1
| make[4]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999/custom-pc/comcast/source'
| Makefile:366: recipe for target 'all-recursive' failed
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999/custom-pc/comcast'
| Makefile:366: recipe for target 'all-recursive' failed
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999/custom-pc'
| Makefile:552: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/ccsp-p-and-m-1.99+git999'
| Makefile:440: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: /home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/temp/run.do_compile.27401:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/tcs/morty/build-qemux86broadband/tmp/work/i586-rdk-linux/ccsp-p-and-m/1.99+git999-r0/temp/log.do_compile.27401)
ERROR: Task (/home/tcs/morty/meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-p-and-m.bb:do_compile) failed with exit code '1'
ccsp-dmcli-1.99+git999-r0 do_compile: NOTE: ccsp-dmcli: compiling from external source tree /home/tcs/morty/meta-cmf/../rdkb/components/opensource/ccsp/CcspDmCli
Narayanaswamy Ramaiyer
Hi Unknown User (tarungoswami)
Could you please let us know the Ubuntu VM version used? Also please share the repo init and source command options used
Tarun Goswami
I am using 18.04 Ubuntu
Commands used as below
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b rdk-next
repo sync -j4 --no-clone-bundle
MACHINE=qemux86broadband source meta-cmf/setup-environment
bitbake rdk-generic-broadband-morty-image
Tarun Goswami
Unknown User (narayanaswamy) Will you be able to help? basis information above.
Priyankaa K V B
Hi Unknown User (tarungoswami) ,
The emulator maintenance is for release branches alone
Could you please try with RDK-B_2021q1 and let us know how it works for you.
NOTE: With 2021q1 , if you are facing below error , please port https://code.rdkcentral.com/r/c/components/asp/rdk-oe/meta-rdk-bsp-emulator/+/55550/1/recipes-connectivity/obexpushd/obexpushd_0.11.3.bb and check the build
Regards,
Priyankaa KVB
Tarun Goswami
Thanks Unknown User (priyankaa.kvb) , i was able to generate the X86EMLTRBB_default_20210831115715.vmdk file. When I launch it via Virtual Box, on boot up it shows me two options Console or Serial Connection. On choosing Console option it lands me to login prompt. root works as user and there is no password required.
Just wanted to know is the above right?
I was expecting to open the Web UI based console of RDK CPE Emulator. How do i get that? is there a url on the LAN I can use to open the WebUI ? and what would be default credentials.
Vic Lin
When I download the code via command "sudo python3.6 ~/bin/repo sync -j4 --no-clone-bundle",
it alwany stopped in authentication tips, need to issue user name and password, is it normal?
i.e.,
#1
...
...
* [new tag] RDKB-2021Q2 -> RDKB-2021Q2
* [new tag] RDKB-2021Q2-DUNFELL -> RDKB-2021Q2-DUNFELL
Fetching projects: 1% (2/126) rdkcentral/zilker-sdkUsername for 'https://code.rdkcentral.com': vic.lin
Password for 'https://vic.lin@code.rdkcentral.com': Password for 'https://rrRR1212@@code.rdkcentral.com': Password for 'https://rrRR1212@@code.rdkcentral.com':
error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: expected flush after ref listing
Username for 'https://code.rdkcentral.com': Password for 'https://vic.lin@code.rdkcentral.com':
remote: Counting objects: 43, done
remote: Finding sources: 100% (4/4)
remote: Total 818 (delta 0), reused 815 (delta 0) B/s
Receiving objects: 100% (818/818), 993.65 KiB | 897.00 KiB/s, done.
Resolving deltas: 100% (349/349), done.
#2, after a while
...
...
* [new tag] RDKV_2021Q3 -> RDKV_2021Q3
Fetching projects: 2% (3/126) components/opensource/rbusUsername for 'https://code.rdkcentral.com':
#3, after a while, again
...
...
* [new tag] VIP5202_Feb20 -> VIP5202_Feb20
* [new tag] VIP5202_Mar31 -> VIP5202_Mar31
Fetching projects: 3% (4/126) rdk/components/opensource/oe/meta-browserUsername for 'https://code.rdkcentral.com':
Vic Lin
Solved, this seems related to account authority issue with the build folder.
Unknown User (djkim)
Hi. I have a problem to build RDK-B Emulator image.
I finished to install all utils(apt install) but jre7 can not be installed in ubuntu16.04, so I install it manually using this link → "https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html"
djkim@ubuntu:~/rdk$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-extsrc.xml -b rdk-next
Downloading Repo source from https://gerrit.googlesource.com/git-repo
Traceback (most recent call last):
File "/home/djkim/rdk/.repo/repo/main.py", line 42, in <module>
from git_config import RepoConfig
File "/home/djkim/rdk/.repo/repo/git_config.py", line 774
self._Set(f'superproject.{key}', value)
^
SyntaxError: invalid syntax
djkim@ubuntu:~/rdk$ python --version
Python 2.7.12
djkim@ubuntu:~/rdk$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) Server VM (build 24.80-b11, mixed mode)
djkim@ubuntu:~/rdk$ cat /etc/issue
Ubuntu 16.04.7 LTS \n \l
sipra samantray
Hi Unknown User (djkim) ,
The emulator build is no more maintained for latest RDK-B releases or rdk-next branch. The last stable build for emulator is rdkb-2021q1 branch ( morty ). Could you try building this branch.
https://code.rdkcentral.com/r/plugins/gitiles/docs/+/refs/heads/rdkb-2021q1/releases/rdkb-2021q1/emu.rst